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

Do a migration of database values on start. #431

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Conversation

manthey
Copy link
Member

@manthey manthey commented Mar 26, 2020

We were doing on-demand migrations to have ACLs and groups in annotation models, since originally we didn't have these. Not having them prevents certain optimizations, like getting count of total number of annotations as a header when listing annotations. Although there could be a slow one-time response to this, and, without appropriate indices, the initial start-up will be slower, the benefits outweigh this cost.

As a benefit of this, for instance, the query to display the number of annotations in the image list can return much less data, since it can get the number of annotations from the header.

@manthey manthey force-pushed the database-migration branch from d689aa5 to 6cad8f7 Compare March 27, 2020 11:53
We were doing on-demand migrations to have ACLs and groups in annotation
models, since originally we didn't have these.  Not having them prevents
certain optimizations, like getting count of total number of annotations
as a header when listing annotations.  Although there could be a slow
one-time response to this, and, without appropriate indices, the initial
start-up will be slower, the benefits outweigh this cost.

As a benefit of this, for instance, the query to display the number of
annotations in the image list can return much less data, since it can
get the number of annotations from the header.
@manthey manthey force-pushed the database-migration branch from 6cad8f7 to 22a6ecc Compare March 27, 2020 14:16
@manthey manthey merged commit cefabfa into master Mar 27, 2020
@manthey manthey deleted the database-migration branch March 27, 2020 18:38
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