node-tastypie / tastypie-rethink

Rethinkdb Resource Type for the Tastypie framework
MIT License
1 stars 1 forks source link

ReQL count() makes list endoints really slow #2

Open esatterwhite opened 8 years ago

esatterwhite commented 8 years ago

get_list runs a count query after the filters are applied to make client side paging easier. Unfortunately the count query in rethink is still really slow. Maybe there should be an option to exclude the count from the meta data in the response. If people don't want to use the count data, they don't have to suffer through the performance penalty.

esatterwhite commented 8 years ago

We could also run the two queries in parallel. They are currently run serially