Re: [indexeddb] Issues stated on the current spec

On Sat, Aug 27, 2011 at 3:35 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> 1. Treat this the same way as inserting the number 2^64-1 into the
> object store. I.e. make it impossible to generate more numbers. The
> object store will have to be removed and recreated without recreating
> the high-valued key.
> 2. Throw a exception if a record is inserted with a non-numeric key in
> a object store which uses generators
> 3. Make generators generate numbers higher than the highest *numeric*
> value ever inserted.
>
> I'm leaning towards 3. The best implementation strategy for generators
> seems to be to record any insertions with explicit keys and make sure
> to update the generator current value to a higher number. To implement
> 3 all you'd need to do is to only do this for numeric keys.

I prefer 3 as well.

 - Hans

Received on Tuesday, 30 August 2011 16:18:43 UTC