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

Refactor aggregate taxon model #5

Open
esteinig opened this issue Nov 4, 2023 · 0 comments
Open

Refactor aggregate taxon model #5

esteinig opened this issue Nov 4, 2023 · 0 comments
Assignees
Labels
dev Development related issues and tasks refactor

Comments

@esteinig
Copy link
Owner

esteinig commented Nov 4, 2023

State

Currently the cerebro.taxa section of the Cerebro data model is a HashMap<taxid, Taxon> where type taxid = String. This is a result of the aggregation function which uses sequential HashMaps to group taxa by their taxid.

Problem

HashMap is not able to be queried efficiently using MongoDB aggregation pipelines. Downstream applications eventually use a Vec<Taxon> particularly endpoints on the API.

Refactoring to Vec is necessary, but at this stage may affect a number of dependent subsystems.

@esteinig esteinig self-assigned this Nov 4, 2023
@esteinig esteinig added the dev Development related issues and tasks label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Development related issues and tasks refactor
Projects
None yet
Development

No branches or pull requests

1 participant