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

Re: IndexedDB: updates through cursors on indexes that change the key

From: Keean Schupke <keean@fry-it.com>
Date: Wed, 2 Feb 2011 01:26:07 +0000
Message-ID: <AANLkTi=due6faURwFRaDq_SYuBVKeBCWbFa6K_bBX8C+@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: ben turner <bent.mozilla@gmail.com>, public-webapps@w3.org, Jeremy Orlow <jorlow@chromium.org>, Hans Wennborg <hans@chromium.org>
So whats the benefit of allowing a cursor to modify the data under it?

Cheers,
Keean.

On 2 February 2011 01:17, Jonas Sicking <jonas@sicking.cc> wrote:

> On Tue, Feb 1, 2011 at 4:48 PM, Keean Schupke <keean@fry-it.com> wrote:
> > Sorry, sent that before I was finished.
> >
> > Seems prone to problems in environments with multiple parallel accesses
> to
> > the same database.
>
> As long as you're inside a transaction, no other environments (be they
> separate tabs running in a separate process, workers running in a
> separate thread, or separate components running in the same page) will
> be able to mutate the data under you.
>
> / Jonas
>
Received on Wednesday, 2 February 2011 01:26:39 GMT

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