Skip to content

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