The first 5GB will be included, and every GB above that will be charged for. The account limit is TB
The first 5GB will be included, and every GB above that will be charged for. The account limit is TBD but likely > 100GB to start.
rows_written_24h value from wrangler d1 info?SELECT * FROM x ORDER BY timestamp DESC LIMIT y — is there some sort of temporary table being created behind the scenes that gets written to?EXPLAIN for this query, I see OpenEphemeral being called which creates a transient table. Or more simply by using EXPLAIN QUERY PLAN, it shows USE TEMP B-TREE FOR ORDER BY.timestamp removes the b-tree usage. Though sadly miniflare doesn't support rows_read and rows_written in meta, so I could only validate this in production.Rows written measure how many rows were written to D1 database.
meta from a query locally:meta object that D1 itself returns.
rows_written and rows_read into Miniflare so I've opened an issue for it.
UPDATE foo SET counter = counter + 1) rather than fetching and then adding 1 in your code.npx wrangler --env dev d1 execute workers-db --command="DROP TABLE account"account, user, comment but it responds withnear "comment": syntax error at offset 19 [code: 7500]--local flag and once withoutrows_written_24hwrangler d1 infowrite_queries_24h 283
rows_written_24h 8565SELECT * FROM x ORDER BY timestamp DESC LIMIT yEXPLAINOpenEphemeralEXPLAIN QUERY PLANUSE TEMP B-TREE FOR ORDER BYtimestamprows_readrows_readrows_writtenrows_written{
"served_by": "v3-prod",
"rows_read": 3674,
"rows_written": 1836
}{
"served_by": "v3-prod",
"rows_read": 1837,
"rows_written": 0
}{
"served_by": "miniflare.db",
"duration": 1,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 28672
}UPDATE foo SET counter = counter + 1npx wrangler --env dev d1 execute workers-db --command="DROP TABLE account"account, user, commentnear "comment": syntax error at offset 19 [code: 7500]--local