Hacker News new | ask | show | jobs
by atombender 1575 days ago
They're not alone in this approach. BigQuery and DynamoDB also meter data usage based on the amount of data processed during a query.
4 comments

BigQuery allows you to specify maximum billed bytes for a query to avoid situations like this. You can also purchase slots for fixed cost unlimited queries.
Authzed[0] also does somewhat similar with SpiceDB[1], but charges based on query complexity for the levels of nesting in the graph traversal, rather than the actual number of rows affect. A flat query is easy to compute, thus cheap.

[0]: https://authzed.com/pricing

[1]: https://github.com/authzed/spicedb

One difference with DynamoDB is that there's no query planner, so you can have a pretty good sense of how many items you'll hit and how big that read is.
Athena as well