.batch() only counts as one subrequest I assume, regardless of the number of statements? https://developers.cloudflare.com/d1/platform/client-api/#dbbatchsuccess is handled.run/batch, but first/all don't have it
success: true is forced in the typings, so presumably it's not even useful?batch ran sequencially? Would it work if I read a row in the 1st batched statement, but delete the same row in the 2nd statement? success: boolean, // true if the operation was successful, false otherwiseresult.meta.duration and then the time for the D1 API call without your application code?
.json(), I will test without that - success can only be true in the TypeScript typingsconst response = await env.DB.prepare(`
UPDATE Promotions
SET content = ?, last_update_time = ?
WHERE promo_id = ?
`).bind(JSON.stringify(page), currentTimeInSeconds, page.id).run();