Re: [sqlite] Index without backing table

2014-11-04 Thread Paul
> On Mon, 03 Nov 2014 11:50:17 +0200 > Paul wrote: > > > > > Would be nice to have ability to store both key and payload in the > > > > index. (Let's call it index-only table) > > > > This could be a feature that sets some limitations on a table, > > > > like being unable to have

Re: [sqlite] Index without backing table

2014-11-03 Thread James K. Lowden
On Mon, 03 Nov 2014 11:50:17 +0200 Paul wrote: > > > Would be nice to have ability to store both key and payload in the > > > index. (Let's call it index-only table) > > > This could be a feature that sets some limitations on a table, > > > like being unable to have more than one

Re: [sqlite] Index without backing table

2014-11-03 Thread Paul
3 November 2014, 13:56:36, by "Richard Hipp" : > On Mon, Nov 3, 2014 at 6:48 AM, Clemens Ladisch wrote: > > > Paul wrote: > > > Are additional indices, created for WITHOUT ROWID, potentially less > > > efficient and more cumbersome? > > > > For tables with a rowid, the index

Re: [sqlite] Index without backing table

2014-11-03 Thread Richard Hipp
On Mon, Nov 3, 2014 at 6:48 AM, Clemens Ladisch wrote: > Paul wrote: > > Are additional indices, created for WITHOUT ROWID, potentially less > > efficient and more cumbersome? > > For tables with a rowid, the index stores the indexed columns and the > rowid. For WITHOUT

Re: [sqlite] Index without backing table

2014-11-03 Thread Paul
3 November 2014, 13:48:30, by "Clemens Ladisch" : > Paul wrote: > > Are additional indices, created for WITHOUT ROWID, potentially less > > efficient and more cumbersome? > > For tables with a rowid, the index stores the indexed columns and the > rowid. For WITHOUT ROWID

Re: [sqlite] Index without backing table

2014-11-03 Thread Clemens Ladisch
Paul wrote: > Are additional indices, created for WITHOUT ROWID, potentially less > efficient and more cumbersome? For tables with a rowid, the index stores the indexed columns and the rowid. For WITHOUT ROWID tables, the index stores the indexed columns and the primary key. Regards, Clemens

Re: [sqlite] Index without backing table

2014-11-03 Thread Paul
> > On 3 Nov 2014, at 9:50am, Paul wrote: > > > So, to be clear, WITHOUT ROWID table will have it's PRIMARY KEY > > as a replacement for ROWID and table itself is an index? > > It would appear that the answer is "yes". I'm not going to go beyond the > official documentation

Re: [sqlite] Index without backing table

2014-11-03 Thread Simon Slavin
On 3 Nov 2014, at 9:50am, Paul wrote: > So, to be clear, WITHOUT ROWID table will have it's PRIMARY KEY > as a replacement for ROWID and table itself is an index? It would appear that the answer is "yes". I'm not going to go beyond the official documentation at

Re: [sqlite] Index without backing table

2014-11-03 Thread Paul
> > > Would be nice to have ability to store both key and payload in the > > index. (Let's call it index-only table) > > This could be a feature that sets some limitations on a table, like > > being unable to have more than one index or inefficient table scans, > > but it will also give some

Re: [sqlite] Index without backing table

2014-11-01 Thread James K. Lowden
On Sat, 01 Nov 2014 11:06:51 +0200 Paul wrote: > Would be nice to have ability to store both key and payload in the > index. (Let's call it index-only table) > This could be a feature that sets some limitations on a table, like > being unable to have more than one index or

Re: [sqlite] Index without backing table

2014-11-01 Thread Paul
Hi Edward, To be specific about my case: What I really wanted is to have Key -> Value mapping (B-tree). I love how SQLite can handle compound keys. So for example, if my key is a compound key (A, B), I can query values by A as well as by (A, B). This is very useful. Imagine a case when Key

Re: [sqlite] Index without backing table

2014-10-31 Thread Richard Hipp
On Fri, Oct 31, 2014 at 8:35 AM, Alessandro Marzocchi < alessandro.marzoc...@gmail.com> wrote: > I think what he wants is a way to create an index on a virtual table. > SQLite cannot build an index on a virtual table because SQLite has no idea if and when the content of the table will change and

Re: [sqlite] Index without backing table

2014-10-31 Thread Dominique Devienne
On Fri, Oct 31, 2014 at 1:35 PM, Alessandro Marzocchi < alessandro.marzoc...@gmail.com> wrote: > I think what he wants is a way to create an index on a virtual table. > +1 to that. --DD ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Index without backing table

2014-10-31 Thread Paul
31 October 2014, 14:19:56, by "Richard Hipp" : > I don't really understand what you are asking, but I suspect that > http://www.sqlite.org/withoutrowid.html is probably the answer you are > looking for. I have just realized, how stupid my question is. Actually I don't even

Re: [sqlite] Index without backing table

2014-10-31 Thread Alessandro Marzocchi
ders need to perform a sort, e.g. SELECT ... ORDER BY C; > > > > -Ursprüngliche Nachricht- > > Von: Paul [mailto:de...@ukr.net] > > Gesendet: Freitag, 31. Oktober 2014 11:30 > > An: General Discussion of SQLite Database > > Betreff: [sqlite] Index wi

Re: [sqlite] Index without backing table

2014-10-31 Thread Richard Hipp
form a full table/index scan, e.g. SELECT ... > WHERE C=15; > All other orders need to perform a sort, e.g. SELECT ... ORDER BY C; > > -Ursprüngliche Nachricht- > Von: Paul [mailto:de...@ukr.net] > Gesendet: Freitag, 31. Oktober 2014 11:30 > An: General Discussion of SQL

Re: [sqlite] Index without backing table

2014-10-31 Thread Hick Gunter
Database Betreff: [sqlite] Index without backing table Is there a way to have index without table? Is it possible to achieve this with virtual talbe tricks but without implementing B-tree myself? I need this both for space effciency and to minimize disk I/O (by avoiding table updates

[sqlite] Index without backing table

2014-10-31 Thread Paul
Is there a way to have index without table? Is it possible to achieve this with virtual talbe tricks but without implementing B-tree myself? I need this both for space effciency and to minimize disk I/O (by avoiding table updates). ___ sqlite-users