W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[indexeddb] What happens after we reach the AutoInc maximum value?

From: Israel Hilerio <israelh@microsoft.com>
Date: Sat, 13 Aug 2011 00:26:26 +0000
To: "public-webapps@w3.org" <public-webapps@w3.org>
CC: Jim Wordelman <jaword@microsoft.com>, Adam Herchenroether <aherchen@microsoft.com>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E3D1FE739@TK5EX14MBXC113.redmond.corp.microsoft.com>
Assuming that we've created an object store with the auto-increment flag set to true, what is the expected behavior when we reach some type of max auto-increment value?  Do we want to recycle and start again from zero or do we stop at the largest number and allow duplicates which will generate a constraint error?

It seems that if we were to start again from zero and increment the value every time we find a constraint error, we could reuse the primary key of previous records that were deleted.

What are your thoughts?

Received on Saturday, 13 August 2011 00:26:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC