-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite: Don't bill for internal queries. #3605
Conversation
LGTM |
Nice... When I was thinking about how to implement something similar, I was considering adding a "reportingId" value to queries, which could then be passed as an additional parameter to I guess I also don't know enough about the query stats recording to know if running "ROLLBACK" as a system query -- after running some user queries -- results in significant overhead that we'd want included in user metrics. But maybe that's not a big deal, as long as the stats of the initial execution get recorded and are roughly proportional to what the rollback metrics would be. |
The overhead of ROLLBACK is pretty minimal, the WAL just gets truncated back to an earlier point. In fact, any writes that end up rolled back never even leave the local machine, so you could argue a rollback should actually roll back the billing counters! But that would be complicated to implement and awkward to explain. |
c0bcee8
to
5675a1a
Compare
(rebased) |
5675a1a
to
8f02131
Compare
(resolved Joe's comment) |
ok this time the internal build failure looks legit, I guess I will need to look into it. |
We bill for: - SQL queries issued via the JavaScript SQL API. - DO old-style key/value storage operations. Anything else, we assume is an internal query, and not billed.
8f02131
to
91d2ef8
Compare
We bill for:
Anything else, we assume is an internal query, and not billed.