telefonicaid/fiware-sth-comet

Deal with "killer queries"

Closed this issue · 2 comments

Some query API operations (e.g. on long time windows with millions of samples) can be very resource-instenstive. That may block STH and make it unavailable for other paralell queries or even worse hang the componente completely.

Thus, it would be nice to have some mechanism to check this kind of "killer" queries and deal with them (e.g. killing them, responding with 500 Internal Error or something like that, but freeing STH for other users).

Probably limiting max page size by config where hLimit<=lastN<=config.maxPageSize.

With this approach It could be related/solved along with other pagination issues:
#428

Fixed by PR #437