Skip to content

Add genome and pangenome counts to CollectionRelease#18

Merged
JeanMainguy merged 3 commits into
mainfrom
add_genome_count_in_release
Mar 23, 2026
Merged

Add genome and pangenome counts to CollectionRelease#18
JeanMainguy merged 3 commits into
mainfrom
add_genome_count_in_release

Conversation

@JeanMainguy
Copy link
Copy Markdown
Member

Store genome_count and pangenome_count in the database instead of computing them on every API call.

Changes:

  • Added pangenome_count and genome_count fields to CollectionRelease model
  • Created Alembic migration to add columns and populate existing data
  • Updated add_collection_release to compute and store counts automatically
  • Simplified CRUD code to read counts directly from database

@JeanMainguy JeanMainguy force-pushed the add_genome_count_in_release branch from 837db16 to 9d1ec18 Compare March 17, 2026 18:09
@JeanMainguy JeanMainguy merged commit bf20233 into main Mar 23, 2026
3 checks passed
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