Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-15 Thread Jonas Sicking
On Mon, Feb 14, 2011 at 11:38 PM, Pablo Castro wrote: > (sorry for my random out-of-timing previous email on this thread. please see > below for an actually up to date reply) > > -Original Message- > From: Jonas Sicking [mailto:jo...@sicking.cc] > Sent: Monday, February 07, 2011 3:31 PM >

RE: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-14 Thread Pablo Castro
(sorry for my random out-of-timing previous email on this thread. please see below for an actually up to date reply) -Original Message- From: Jonas Sicking [mailto:jo...@sicking.cc] Sent: Monday, February 07, 2011 3:31 PM On Mon, Feb 7, 2011 at 3:07 PM, Jeremy Orlow wrote: > On Mon, Fe

RE: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-14 Thread Pablo Castro
>> From: jor...@google.com [mailto:jor...@google.com] On Behalf Of Jeremy Orlow >> Sent: Sunday, February 06, 2011 12:43 PM >> >> On Tue, Dec 14, 2010 at 4:26 PM, Pablo Castro >> wrote: >> >> From: jor...@google.com [mailto:jor...@google.com] On Behalf Of Jeremy Orlow >> Sent: Tuesday, December

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-07 Thread Jonas Sicking
On Mon, Feb 7, 2011 at 3:07 PM, Jeremy Orlow wrote: > On Mon, Feb 7, 2011 at 2:49 PM, Jonas Sicking wrote: >> >> On Sun, Feb 6, 2011 at 11:41 PM, Jeremy Orlow wrote: >> > On Sun, Feb 6, 2011 at 11:38 PM, Jonas Sicking wrote: >> >> >> >> On Sun, Feb 6, 2011 at 2:31 PM, Jeremy Orlow >> >> wrote:

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-07 Thread Jeremy Orlow
On Mon, Feb 7, 2011 at 2:49 PM, Jonas Sicking wrote: > On Sun, Feb 6, 2011 at 11:41 PM, Jeremy Orlow wrote: > > On Sun, Feb 6, 2011 at 11:38 PM, Jonas Sicking wrote: > >> > >> On Sun, Feb 6, 2011 at 2:31 PM, Jeremy Orlow > wrote: > >> > On Sun, Feb 6, 2011 at 2:03 PM, Shawn Wilsher > >> > wro

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-07 Thread Jonas Sicking
On Sun, Feb 6, 2011 at 11:41 PM, Jeremy Orlow wrote: > On Sun, Feb 6, 2011 at 11:38 PM, Jonas Sicking wrote: >> >> On Sun, Feb 6, 2011 at 2:31 PM, Jeremy Orlow wrote: >> > On Sun, Feb 6, 2011 at 2:03 PM, Shawn Wilsher >> > wrote: >> >> >> >> On 2/6/2011 12:42 PM, Jeremy Orlow wrote: >> >>> >> >

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-07 Thread Shawn Wilsher
On 2/7/2011 12:32 AM, Glenn Maynard wrote: Is that a safe assumption to design around? The API might later be bound to other languages fortunate enough not to be stuck in UTF-16. As I recall, we've already made design decisions based on the fact that the primary consumer of this API is going to

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-07 Thread Glenn Maynard
On Mon, Feb 7, 2011 at 2:38 AM, Jonas Sicking wrote: > One problem with putting a limit is that it basically forces > implementations to use a specific encoding, or pay a hefty price. For > example if we choose a 64K limit, is that of UTF8 data or of UTF16 > data? If it is of UTF8 data, and the i

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-06 Thread Jeremy Orlow
On Sun, Feb 6, 2011 at 11:38 PM, Jonas Sicking wrote: > On Sun, Feb 6, 2011 at 2:31 PM, Jeremy Orlow wrote: > > On Sun, Feb 6, 2011 at 2:03 PM, Shawn Wilsher > wrote: > >> > >> On 2/6/2011 12:42 PM, Jeremy Orlow wrote: > >>> > >>> My current thinking is that we should have some relatively large

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-06 Thread Jonas Sicking
On Sun, Feb 6, 2011 at 2:31 PM, Jeremy Orlow wrote: > On Sun, Feb 6, 2011 at 2:03 PM, Shawn Wilsher wrote: >> >> On 2/6/2011 12:42 PM, Jeremy Orlow wrote: >>> >>> My current thinking is that we should have some relatively large >>> limitmaybe on the order of 64k?  It seems like it'd be very d

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-06 Thread Jeremy Orlow
On Sun, Feb 6, 2011 at 2:03 PM, Shawn Wilsher wrote: > On 2/6/2011 12:42 PM, Jeremy Orlow wrote: > >> My current thinking is that we should have some relatively large >> limitmaybe on the order of 64k? It seems like it'd be very difficult >> to >> hit such a limit with any sort of legitimate

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-06 Thread Shawn Wilsher
On 2/6/2011 12:42 PM, Jeremy Orlow wrote: My current thinking is that we should have some relatively large limitmaybe on the order of 64k? It seems like it'd be very difficult to hit such a limit with any sort of legitimate use case, and the chances of some subtle data-dependent error would

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2011-02-06 Thread Jeremy Orlow
On Tue, Dec 14, 2010 at 4:26 PM, Pablo Castro wrote: > > From: jor...@google.com [mailto:jor...@google.com] On Behalf Of Jeremy > Orlow > Sent: Tuesday, December 14, 2010 4:23 PM > > >> On Wed, Dec 15, 2010 at 12:19 AM, Pablo Castro < > pablo.cas...@microsoft.com> wrote: > >> > >> From: public-web

RE: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-14 Thread Pablo Castro
From: jor...@google.com [mailto:jor...@google.com] On Behalf Of Jeremy Orlow Sent: Tuesday, December 14, 2010 4:23 PM >> On Wed, Dec 15, 2010 at 12:19 AM, Pablo Castro >> wrote: >> >> From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] >> On Behalf Of Jonas Sicking >> Se

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-14 Thread Jeremy Orlow
On Wed, Dec 15, 2010 at 12:19 AM, Pablo Castro wrote: > > From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] > On Behalf Of Jonas Sicking > Sent: Friday, December 10, 2010 1:42 PM > > >> On Fri, Dec 10, 2010 at 7:32 AM, Jeremy Orlow > wrote: > >> > Any more thoughts on thi

RE: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-14 Thread Pablo Castro
From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jonas Sicking Sent: Friday, December 10, 2010 1:42 PM >> On Fri, Dec 10, 2010 at 7:32 AM, Jeremy Orlow wrote: >> > Any more thoughts on this? >> >> I don't feel strongly one way or another. Implementation wi

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 7:32 AM, Jeremy Orlow wrote: > Any more thoughts on this? I don't feel strongly one way or another. Implementation wise I don't really understand why implementations couldn't use keys of unlimited size. I wouldn't imagine implementations would want to use fixed-size alloca

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-10 Thread Jeremy Orlow
Any more thoughts on this? On Mon, Nov 22, 2010 at 12:05 PM, Jeremy Orlow wrote: > Something working (but with degraded performance) is better than not > working at all. Especially when keys will often come from user data/input > and thus simple web apps will likely not handle the exceptions la

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-22 Thread Jeremy Orlow
Something working (but with degraded performance) is better than not working at all. Especially when keys will often come from user data/input and thus simple web apps will likely not handle the exceptions large keys might generate. Throughout the rest of IndexedDB, we've taken quite a bit of car

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-20 Thread Jonas Sicking
On Fri, Nov 19, 2010 at 8:13 PM, Bjoern Hoehrmann wrote: > * Jonas Sicking wrote: >>The question is in part where the limit for "ridiculous" goes. 1K keys >>are sort of ridiculous, though I'm sure it happens. > > By "ridiculous" I mean that common systems would run out of memory. That > is differe

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-20 Thread Keean Schupke
Just a thought, because the spec does not limit the key size, does not mean the implementation has to index on huge keys. For example you may choose to index only the first 1000 characters of string keys, and then link the values of key collisions together in the storage node. This way things are k

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-19 Thread Bjoern Hoehrmann
* Jonas Sicking wrote: >The question is in part where the limit for "ridiculous" goes. 1K keys >are sort of ridiculous, though I'm sure it happens. By "ridiculous" I mean that common systems would run out of memory. That is different among systems, and I would expect developers to consider it up t

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-19 Thread Jonas Sicking
On Fri, Nov 19, 2010 at 7:03 PM, Bjoern Hoehrmann wrote: > * Pablo Castro wrote: Just looking at this list, I guess I'm leaning towards _not_ limiting the maximum key size and instead pushing it onto implementations to do the hard work here.  If so, we should probably have some norm

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-19 Thread Bjoern Hoehrmann
* Pablo Castro wrote: >>> Just looking at this list, I guess I'm leaning towards _not_ limiting the >>> maximum key size and instead pushing it onto implementations to do the hard >>> work here. If so, we should probably have some normative text about how >>> bigger >>> keys will probably not be

RE: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-11-19 Thread Pablo Castro
-Original Message- From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of bugzi...@jessica.w3.org Sent: Friday, November 19, 2010 4:16 AM >> Just looking at this list, I guess I'm leaning towards _not_ limiting the >> maximum key size and instead pushing