Repository navigation
Improve file-cache search performance for large caches - #65986
Daddyoftwins1 wants to merge 4 commits into
Conversation
Assisted-by: Codex:gpt-6.1-sol Signed-off-by: Josh Duffy <joshduff.jd@gmail.com>
Assisted-by: Codex:gpt-6.1-sol Signed-off-by: Josh Duffy <joshduff.jd@gmail.com>
4037466 to
9389000
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Retain the upstream last-modified regression alongside bounded-search coverage. Verify that SQLite takes the native fallback and MariaDB reads the configured search budgets. Assisted-by: Codex:gpt-6.2-astra
|
I merged the latest master into this branch at b170a6a and resolved the conflicts in the Files search tests and sample configuration. The focused suite passed all 28 tests on MariaDB 10.11. On SQLite, 23 passed and the five MariaDB-only tests were skipped. The previous Rector runs expired while waiting for approval. Could a maintainer approve CI for this revision and review the bounded file-search change? Assisted by Codex:gpt-6.2-astra |
This PR improves file-cache search performance for the tested large-cache workloads while preserving the compared search results and maintaining compatibility with the current upstream architecture.
The changes update the search implementation for current connection handling and sharding, integrate optional indexes into Nextcloud's native missing-index lifecycle, and add upstream-native regression tests.
Performance
The patched implementation was compared with unchanged Nextcloud 36 development code at the same commit. The controlled synthetic benchmark used 100,000 target files and approximately 504,000 total cache rows.
Selected warm-cache median results:
All search results compared within the benchmark fixture matched. Adding indexes alone did not produce a consistent material improvement in this experiment; the search implementation changes were necessary for the measured gains.
These are controlled synthetic benchmarks. Performance will vary with cache size, workload, and environment. The small-cache slowdown is a known tradeoff.
Validation
Please review the search implementation, optional-index lifecycle, connection and sharding compatibility, and regression coverage.
AI assistance
I was assisted by Codex AI with implementation, automated testing, benchmarking, and code review.
Evidence
Code and benchmark evidence bundle