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

Slow file search on large databases #1033

Open
stephan271 opened this issue Mar 8, 2023 · 0 comments
Open

Slow file search on large databases #1033

stephan271 opened this issue Mar 8, 2023 · 0 comments
Assignees

Comments

@stephan271
Copy link
Member

Issue Name

SlowFileSearch

Summary

If you query in the File view by one of the "contains" columns the query can take very long

Steps to Reproduce

Query just by filename in the first column on a large databse (>100 M Files)

Current Behaviour

Query does not return within client timeout

Expected Behaviour

Query returns before timeout

Extra Details

As an intermediate solution all "contain" conditions should be replaced by "startsWith" conditions, because in this case the resulting regexp query can make use of the indices (, e.g. /^sometext/ rather than /sometext/). Queries are usually also much faster, if first a fulltext query is done. For the future asking for at least one condition for one of the current "contains" columns before submitting a search would also mitigate the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants