kbaseattic / relation_engine_spec

Specifications and config for the KBase Relation Engine
https://kbase.us
MIT License
0 stars 7 forks source link

Species/strain query #125

Closed jayrbolton closed 4 years ago

jayrbolton commented 4 years ago

A simpler and hopefully faster query to be used in species/strain autocompletes in the UI

This only searches species/strain (doc.rank == "species" OR doc.strain)

jayrbolton commented 4 years ago

I have some timings I'll post in a minute

jayrbolton commented 4 years ago

@MrCreosote Here is a sample of times for the old search_sci_name query, all in ms:

45.011
45.011
45.011
45.011
68.140

Here is a sample of times for this stripped down query (gives the same search results as above)

9.838
10.189
15.054
8.064
15.536
7.241

So it's definitely quicker