[whatwg] Asynchronous database API feedback
Maciej Stachowiak
mjs at apple.com
Tue Dec 11 14:57:10 PST 2007
On Dec 11, 2007, at 12:08 PM, Scott Hess wrote:
> 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.
That sounds like an interesting option to consider.
Regards,
Maciej
More information about the whatwg
mailing list