W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: [IndexedDB] Asynchronous inline key generation for autoIncrement'ing objectStores

From: ben turner <bent.mozilla@gmail.com>
Date: Tue, 11 May 2010 12:02:11 -0700
Message-ID: <AANLkTimbGbqmJP7udbm_FQ1b_11R8DvKV13R2w1g4gYD@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
On Tue, May 11, 2010 at 11:10 AM, Jeremy Orlow <jorlow@chromium.org> wrote:

> I agree this is a problem and I largely agree with your solution.  My only
> concern is performance of cloning data which will (in most cases) not even
> be used.  I wonder if the result of put should (instead of being the
> structured clone + the generated number) simply be the generated key.  When
> the keys are not auto-generated, it'd be undefined.  In the rare case the
> person wants to get the rest of the object back, they can subsequently do a
> get.

Hm, sorry if I was unclear. I think we're in total agreement. The
result of put() as currently spec'd for the async API is the key
value, not the object+key. I agree that we should keep that, and if
the user needs the object+key then they can do a subsequent get().

-Ben
Received on Tuesday, 11 May 2010 19:02:44 GMT

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