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

Query improvements #1040

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Query improvements #1040

merged 2 commits into from
Aug 30, 2021

Conversation

eikek
Copy link
Owner

@eikek eikek commented Aug 30, 2021

No description provided.

The join to retrieve the attachment count per item turned out to be
very expensive. And it is not used anymore for the result, only to
support fulltext search. It is now removed from the query. The
DISTINCT keyword is also removed, because it is not necessary and it
is expensive. With the DISTINCT removed, a new index (provided in the
previous commit) can now be used to avoid sorting items.
@eikek eikek added this to the Docspell Next milestone Aug 30, 2021
@mergify mergify bot merged commit 68f3d61 into master Aug 30, 2021
@eikek eikek deleted the query-improvements branch September 6, 2021 09:20
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.

1 participant