Hacker News new | ask | show | jobs
by jd_mongodb 1575 days ago
Aggregations by their nature are designed to work on a substantial footprint of data. As a result changing the query model is unlikely to speed up the operation of aggregation. In fact, as most of these libraries require the data to be shipped to the client (whereas aggregation queries run on the server) you will likely see substantially reduced performance.
1 comments

Hydra doesn't ship data to the client in order to then do further work like aggregations -- that's the whole point of Hydra -- but that also means that you won't be able to "workaround" a performance issue with an underlying data store. For that, we'd need to find a way to replicate the data to a data store that can solve the aggregation performance issue.