Re: [w3c/IndexedDB] Allow more explicit control over transaction lifetimes (#34)

We discussed this at TPAC 2024 again and I believe there was more or less consensus on this option:

> `IDBDatabase.transaction()` add an option `manualCommit: true`; `commit()` must be called explicitly.

The advantages are that it's simple to understand and implement.

The main drawback is that it's a footgun to make it possible to wedge an entire database by forgetting to call `commit()`. Offsetting this is that (a) this is a non-default, i.e. advanced, usage pattern and (b) most IDB usage is via wrapper libraries that will hopefully make it harder to misuse. However I filed #425 to see if we can create a secondary safety mechanism to protect against misuse.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/34#issuecomment-2369803301
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/34/2369803301@github.com>

Received on Monday, 23 September 2024 23:58:57 UTC