W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: IndexedDB, what were the issues? How do we stop it from happening again?

From: Tobie Langel <tobie@fb.com>
Date: Wed, 6 Mar 2013 17:55:33 +0100
To: Jarred Nicholls <jarred@webkit.org>
CC: Glenn Maynard <glenn@zewt.org>, Alex Russell <slightlyoff@google.com>, public-webapps WG <public-webapps@w3.org>
Message-ID: <E955B327375D4913AC1D0C50EE4E81EE@fb.com>
On Wednesday, March 6, 2013 at 5:51 PM, Jarred Nicholls wrote:
> This is an entirely different conversation though. I don't know the answer to why sync interfaces are there and expected, except that some would argue that it makes the code easier to read/write for some devs. Since this is mirrored throughout other platform APIs, I wouldn't count this as a fault in IDB specifically.

Sync APIs are useful to do I/O inside of a Worker.

They're also critical for data consistency in some scenarios, e.g. updating the database after a successful xhr request when a worker is about to be terminated.

--tobie
Received on Wednesday, 6 March 2013 16:57:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT