← Back to release summary

IndexedDB transaction explicit commit API call

Category
Offline / Storage
Type
New or changed feature
Status
Enabled by default (Chrome 76)
Intent stage
Prepare to ship

Summary

Adds a commit() function to IDBTransaction objects, which explicitly marks a transaction as not accepting further requests. Currently, IndexedDB only commits a transaction after all associated requests have had their completion event handlers executed, and no new requests have been queued by the event handlers. Developers can use the explicit commit() function to shave a few event loop cycles off of the latency of their transactions.

Standards & signals

Explainers: https://andreas-butler.github.io/idb-transaction-commit/EXPLAINER

View on chromestatus.com