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

Posgtres Needs Indices #502

Open
baileyckelly opened this issue Mar 11, 2019 · 0 comments
Open

Posgtres Needs Indices #502

baileyckelly opened this issue Mar 11, 2019 · 0 comments
Labels
data model Changes to the underlying data representation

Comments

@baileyckelly
Copy link
Contributor

We need to add indexes to the dataservice postgres instance - especially with the growth of the link tables (biospecimen_genomic_file for example).

We should start with having indexes on the foreign keys where we're doing joins.

Commonly used ones:
Biospecimen: participant_id
Diagnosis: participant_id
Phenotype: participant_id
biospecimen_genomic_file: biospecimen_id & genomic_file_file
biospecimen_diagnosis: biospecimen_id & diganosis_id
family_relationship: participant1_id & participant2_id
sequencing_experiment_genomic_file: sequencing_experiment_id & genomic_file_id
task_genomic_file: genomic_file_id & task_id

@baileyckelly baileyckelly added the data model Changes to the underlying data representation label Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Changes to the underlying data representation
Projects
None yet
Development

No branches or pull requests

1 participant