-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add index on addressbookid #37152
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
Add index on addressbookid #37152
Conversation
…ssbooks and contacts
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Codecov Report
@@ Coverage Diff @@
## master #37152 +/- ##
=========================================
Coverage 64.85% 64.85%
- Complexity 19136 19139 +3
=========================================
Files 1267 1268 +1
Lines 74895 74902 +7
Branches 1331 1331
=========================================
+ Hits 48575 48581 +6
- Misses 25928 25929 +1
Partials 392 392
Continue to review full report at Codecov.
|
0226e16 to
e43325c
Compare
|
added some unit tests just to be sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
|
@micbar shall we merge as part of 10.5? |
|
Note: this is (correctly) after the release-10.4.1 branch point - good. I raised issue #37178 |
|
@pmaier1 migration complexity -> we need to build index on |
Fixes owncloud/enterprise#3625. The work should add index for
'addressbookid' 'name' 'value'that allows to improve scan performance of search addressbook query when e.g. end of term wildcard (term%) is used.Please note combinations that allow to fully utilize index according to #36225, and comment explaining why index cannot be utilized in these cases https://github.com/owncloud/enterprise/issues/3625#issuecomment-573861541:
accounts.enable_medial_search=true-%value%- index ignoredaccounts.enable_medial_search=false-value%- index usedHowever, query with this index should be faster in general too regardles of wildcard on
value, due to index on'addressbookid', 'name', that will prefilter searchTargeting 10.5 (@micbar )