-
Notifications
You must be signed in to change notification settings - Fork 31
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
Research indexing and optimizing queries to improve frontend performance #1450
Comments
Observations 1st - the Django Debug Toolbar DDT sql explain times are significantly longer the pgadmin for the same query. there is overhead for each index on write. Think admin bulk import and saves on Asset Transcriptions campaign - Observation -> The the first slow query in the campaign Possible solution -> the counts for transcription_status could be a calculated index(es)? QQ -> ...are the proper indexes in place for postgres to combine them efficiently? QQ --> would an index on each concordia_* [_asset, _item, _project] of id, FK, and published=T be more efficient? QQ --> Probably need more code review? /---
I propose removing unused indexes due to the overhead when writing to the database - might also help the import process speed. /---
/--- /--- |
Missing Index query
|
Unused Indexes query
|
As I expected - results running the missing index and unused indexes against the production database returned different result (use patterns and more resources available in prod....)
|
The above queries are applicable for removing unused index keys, we will also need to apply index keys to tables that effect the way campaigns/projects and other related items get called. |
User story/persona
As a user, item/asset tiles and transcription page are sometimes slow to load when I'm exploring and finding something to work on. The buttons that allow me to find a new page, go to the next reviewable asset or go to the next transcribeable asset can also be slow to load.
Is your feature request related to a problem? Please describe.
Research Indexing certain columns and optimizing queries to improve load times.
Additional context
The text was updated successfully, but these errors were encountered: