Re: [Bug 12321] New: Add compound keys to IndexedDB

2011-03-18 Thread Keean Schupke
I like BDB's solution. You have one primary key you cannot mess with (say an integer for fast comparisons) you can then add any number of secondary indexes. With a secondary index there is a callback to generate a binary blob that is used for indexing. The callback has access to all the fields of

Re: [IndexedDB] Spec changes for international language support

2011-03-18 Thread Keean Schupke
See my proposal in another thread. The basic idea is to copy BDB. Have a primary index that is based on an integer, something primitive and fast. Allow secondary indexes which use a callback to generate a binary index key. IDB shifts the complexity out into a library. Common use cases can be

Re: [Bug 12321] New: Add compound keys to IndexedDB

2011-03-18 Thread Glenn Maynard
On Fri, Mar 18, 2011 at 12:27 PM, Aryeh Gregor simetrical+...@gmail.comwrote: On Thu, Mar 17, 2011 at 10:03 PM, Jeremy Orlow jor...@chromium.org wrote: Here's one ugliness with A: There's no way to specify ascending or descending for the individual components of the key. So there's no way

Re: [Bug 12321] New: Add compound keys to IndexedDB

2011-03-18 Thread Aryeh Gregor
On Fri, Mar 18, 2011 at 12:51 PM, Glenn Maynard gl...@zewt.org wrote: Most SQL engines (Postgresql, SQLite) support CREATE INDEX idx ON tbl (date DESC, name ASC) .  This allows ORDER BY date DESC, name ASC (eg. newest events first, events per date sorted by name) and its reverse, name DESC,

Re: [Bug 12321] New: Add compound keys to IndexedDB

2011-03-18 Thread Jeremy Orlow
On Fri, Mar 18, 2011 at 1:45 AM, Keean Schupke ke...@fry-it.com wrote: I like BDB's solution. You have one primary key you cannot mess with (say an integer for fast comparisons) you can then add any number of secondary indexes. With a secondary index there is a callback to generate a binary

RE: [IndexedDB] Spec changes for international language support

2011-03-18 Thread Pablo Castro
From: keean.schu...@googlemail.com [mailto:keean.schu...@googlemail.com] On Behalf Of Keean Schupke Sent: Friday, March 18, 2011 1:53 AM See my proposal in another thread. The basic idea is to copy BDB. Have a primary index that is based on an integer, something primitive and fast. Allow

Re: API for matrix manipulation

2011-03-18 Thread Chris Marrin
On Mar 15, 2011, at 5:08 PM, Tab Atkins Jr. wrote: On Tue, Mar 15, 2011 at 5:00 PM, Chris Marrin cmar...@apple.com wrote: I think it would be nice to unify the classes somehow. But that might be difficult since SVG and CSS are (necessarily) separate specs. But maybe one of the API gurus

Re: [IndexedDB] Spec changes for international language support

2011-03-18 Thread Jonas Sicking
On Fri, Mar 18, 2011 at 12:29 PM, Pablo Castro pablo.cas...@microsoft.com wrote: From: keean.schu...@googlemail.com [mailto:keean.schu...@googlemail.com] On Behalf Of Keean Schupke Sent: Friday, March 18, 2011 1:53 AM See my proposal in another thread. The basic idea is to copy BDB. Have a

RE: [IndexedDB] Spec changes for international language support

2011-03-18 Thread Pablo Castro
From: Jonas Sicking [mailto:jo...@sicking.cc] Sent: Friday, March 18, 2011 1:57 PM However there is another problem to consider here. Can switching collation on a objectStore or a unique index can affect its validity? I.e. if you switch from a case sensitive to a case insensitive

Re: [IndexedDB] Spec changes for international language support

2011-03-18 Thread Keean Schupke
On 18 March 2011 19:29, Pablo Castro pablo.cas...@microsoft.com wrote: From: keean.schu...@googlemail.com [mailto:keean.schu...@googlemail.com] On Behalf Of Keean Schupke Sent: Friday, March 18, 2011 1:53 AM See my proposal in another thread. The basic idea is to copy BDB. Have a primary