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

Implement a faster query for sorted samples with search enabled and editing disabled #164

Merged
merged 23 commits into from
Sep 30, 2024

Conversation

qu8n
Copy link
Collaborator

@qu8n qu8n commented Sep 30, 2024

This PR simply merges the samples-query-optimization branch to master.

mandawilson and others added 23 commits September 26, 2024 16:20
Refactor the samples query to call Neo4j directly
We previously used dataloader to make a single query for samples via
the OGM. Otherwise, the `samples` and `samplesConnection` sub-queries
would be call it twice.

With the new approach, we use two slightly different queries to get
samples data and the count of samples. We could use dataloader to access
the oncotree cache, but this operation is very fast (< 0.05ms).
@qu8n qu8n marked this pull request as ready for review September 30, 2024 12:56
@qu8n qu8n requested a review from ao508 September 30, 2024 13:22
@ao508 ao508 merged commit 833dff8 into master Sep 30, 2024
2 checks passed
@qu8n qu8n deleted the samples-query-optimization branch October 9, 2024 19:55
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.

3 participants