Skip to content

Search query by gene takes about an order of magnitude longer than by modification #193

@eboileau

Description

@eboileau

A clear and concise description of what the bug is.

Search > Modification > m6A > HEK293 > psi-co-mAFiA

https://scimodom.dieterichlab.org/api/v0/modification/query?modification=1&organism=2&technology[]=16&rnaType=WTS&taxaId=9606&geneFilter[]=gene_name%2BA1BG%2BstartsWith&firstRecord=0&maxRecords=10

vs.

Search > Gene/Chrom > H. sapiens > A1BG

https://scimodom.dieterichlab.org/api/v0/modification/query/gene?rnaType=WTS&taxaId=9606&geneFilter[]=gene_name%2BA1BG%2BstartsWith&firstRecord=0&maxRecords=10

Even w/o gene selection for the modification search it is faster, and the query returns significantly more records.

This is something I observed earlier, but seems worst now, though it might just be a matter of perception. Maybe we ought to re-write/optimize the query...

Additional context

On branch feature/ms15-api, but this is happening on production.

What browser were you using?

Firefox

What version of Sci-ModoM were you using?

branch (specify above)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions