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

optimize filtering process in mutations tab #3737

Merged
merged 1 commit into from
May 10, 2021

Conversation

adamabeshouse
Copy link
Contributor

@adamabeshouse adamabeshouse requested review from alisman and onursumer May 6, 2021 17:27
return germlineConsentedSamples.filter(s =>
sampleIds.includes(s.sampleId)
sampleMap.has(s, ['sampleId', 'studyId'])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamabeshouse don't samples have unique id? in which case we could halve this lookup time? i realize this would be a small optimization compared to what you just did

Copy link
Contributor Author

@adamabeshouse adamabeshouse May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

germlineConsentedSamples dont have the unique id attached to them, but this lookup is still just one level of indexing

@adamabeshouse adamabeshouse merged commit 2dd6bbe into cBioPortal:master May 10, 2021
@adamabeshouse adamabeshouse deleted the 8576-slow branch May 10, 2021 18:02
@inodb inodb added the performance This PR is related to a performance issue label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance This PR is related to a performance issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue in genie query
4 participants