w3c / IndexedDB

Indexed Database API
https://w3c.github.io/IndexedDB/
Other
240 stars 62 forks source link

Async LocalStorage (transactionless key-value API over IDB) #91

Closed nolanlawson closed 5 years ago

nolanlawson commented 8 years ago

This is a thing that webdevs perennially ask for, mostly because of ergonomics.

Would such an API also have any performance benefits due to the lack of transaction overhead? Is there overhead? Would this be a moot point because it would have to live alongside transaction-ful code anyway?

See also:

inexorabletash commented 8 years ago

See also: https://gist.github.com/inexorabletash/280016e79188b6a28247

nolanlawson commented 8 years ago

Hah yes, I totally forgot that you proposed this already. One step ahead of me. :smiley:

domenic commented 6 years ago

Hey, I've got a proposal for this that I think is pretty complete: https://domenic.github.io/async-local-storage/ . Many thanks to @inexorabletash for guiding me through various IDB intricacies.

This is specifically done as a layered API, since it does not need any features not already found in IDB, and so can take advantage of the infrastructure there.

Let me know what you think, and feel free to file issues on the tracker or chime in on existing discussions there!

inexorabletash commented 6 years ago

Also pinging @aliams on this topic.

inexorabletash commented 5 years ago

Closing out in favor of https://wicg.github.io/kv-storage/