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

index score column and faster row counting #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bwhall61
Copy link

Added indexing to the scores in the SQLAlchemy database for faster ordering
Commented out some variables that were unused
Implemented a faster way to count the number of molecules in the database (just for showing the number of pages in the UI I think)

@bwhall61
Copy link
Author

I can add another commit later - but I realized some other columns in the sqlalchemy db maybe should be indexed.

Molecule:
run_id

Grade:
mol_id
hp_settings_id
timestamp

These are all used to exclude and filter molecules in get_ordered_molecules and indexing them makes submitting scores and switching between pages much faster. I don't think the impact of having many indices in the db will matter too much for us?

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