[whatwg] Asynchronous database API feedback

Scott Hess shess at google.com
Tue Dec 11 12:08:39 PST 2007

On Dec 11, 2007 11:22 AM, Aaron Boodman <aa at google.com> wrote:
> Or does
> globalStorage not guarantee that data is written when the setter
> returns?

A thing I've been thinking about for Gears would be the ability to
spin up an in-memory/async "session" database, with the sense of
"session" being the same as for "session cookie".  For this database,
when control returns from an update statement, the data is _not_
guaranteed to be on disk, and if your browser crashes it is explicitly
guaranteed to be gone.  So far, so useless, except if you allowed the
system to attach that database to a persistent database.  In such a
system, you could do synchronous operations against the session
database, and bulk async operations to propagate the data to the
persistent database.


More information about the whatwg mailing list