-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): add more indexes to optimize versions endpoint performance
For document or collection versions we want the query times to be really fast. Since for both types of queries we do LEFT JOINS to retrieve relevant versions, index the `publication_version` and `publication_has_publication_versions` ids. Add a couple of additional indexes for the `document_change` and `library_change` tables.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters