Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Search reindexing performance regression #6085

Merged
merged 3 commits into from
Apr 19, 2023

Conversation

aduffeck
Copy link
Contributor

@aduffeck aduffeck commented Apr 19, 2023

We've fixed a regression in the search service reindexing step, causing the whole space to be reindexed instead of just the changed resources.

Stats from testing (this was with a really small space, the effects for larger spaces will be more dramatic):

Upload file into the space root with 24 files and 2 subdirs (warm cache):
Before:                                             After:
+-----------+------------------+-------+            +-----------+------------------+-------+
| Function  | last 5 second(s) | total |            | Function  | last 5 second(s) | total |
+-----------+------------------+-------+            +-----------+------------------+-------+
| Chtimes   |                1 |    11 |            | Chtimes   |                1 |    14 |
| Create    |                0 |     5 |            | Create    |                0 |     5 |
| Open      |               13 |    46 |            | Open      |               12 |   100 |
| OpenFile  |                0 |     0 |            | OpenFile  |                0 |     0 |
| Lstat     |              117 |   229 |            | Lstat     |               59 |   476 |
| MkdirAll  |                3 |    26 |            | MkdirAll  |                3 |    43 |
| ReadFile  |                2 |     7 |            | ReadFile  |                2 |    13 |
| Readlink  |               99 |   255 |            | Readlink  |                8 |   206 |
| Rename    |                0 |     0 |            | Rename    |                0 |     8 |
| Remove    |                2 |    22 |            | Remove    |                2 |    36 |
| RemoveAll |                0 |     0 |            | RemoveAll |                0 |     0 |
| Stat      |              110 |   187 |            | Stat      |               12 |   104 |
| Symlink   |                4 |    19 |            | Symlink   |                4 |    35 |
| WriteFile |                0 |     0 |            | WriteFile |                0 |     0 |
+-----------+------------------+-------+            +-----------+------------------+-------+

This is a regression introduced with the experimental search backport.
@sonarcloud
Copy link

sonarcloud bot commented Apr 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@micbar micbar merged commit 632fa05 into owncloud:master Apr 19, 2023
ownclouders pushed a commit that referenced this pull request Apr 19, 2023
Fix Search reindexing performance regression
@micbar micbar mentioned this pull request May 3, 2023
89 tasks
@ScharfViktor ScharfViktor mentioned this pull request May 4, 2023
86 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants