AW: [sqlite] Index size in file

2007-10-04 Thread Michael Ruck
An: sqlite-users@sqlite.org Betreff: Re: [sqlite] Index size in file Let's assume that my whole database can be in the cache. If my indexes have duplicate data, then I will either need a bigger cache or have to page out row data in favour of index data. In that case it will either be sl

Re: [sqlite] Index size in file

2007-10-04 Thread John Stanton
Kees Nuyt wrote: On Wed, 3 Oct 2007 15:39:06 +0200, you wrote: I created an index on a TEXT column as I want to be able to I noticed a large increase in the file size. Looking at the binary of the file, I see that the index has a copy of all the data being indexed. 1. Is this necassary? 2. I

Re: [sqlite] Index size in file

2007-10-04 Thread Clive . Bluston
posed to referencing the original data. Clive John Stanton <[EMAIL PROTECTED]> on 05/10/2007 00:54:21 Please respond to sqlite-users@sqlite.org To: sqlite-users@sqlite.org cc:(bcc: clive/Emultek) Subject: Re: [sqlite] Index size in file Trevor Talbot wrote: > On 10/4/07

Re: [sqlite] Index size in file

2007-10-04 Thread Kees Nuyt
On Wed, 3 Oct 2007 15:39:06 +0200, you wrote: > > > >I created an index on a TEXT column as I want to be able to >I noticed a large increase in the file size. >Looking at the binary of the file, I see that the index has a copy of all the >data being indexed. >1. Is this necassary? >2. Is there a w

Re: [sqlite] Index size in file

2007-10-04 Thread John Stanton
Trevor Talbot wrote: On 10/4/07, John Stanton <[EMAIL PROTECTED]> wrote: A B-Tree index holds keys in sorted sequence. They are in random sequence in the database. That requires holding the keys in the B-Tree nodes. Actually, it doesn't strictly require that; it could store references to t

Re: [sqlite] Index size in file

2007-10-04 Thread Grzegorz Makarewicz
[EMAIL PROTECTED] wrote: > Regarding: > >>> Looking at the binary of the file, I see that the index has a copy of >>> all the data being indexed. >>> 1. Is this necassary? >>> > > Unless you're programming for a cellphone or some other embedded gadget, > you might want to calculate the co

RE: [sqlite] Index size in file

2007-10-04 Thread Clive . Bluston
c: clive/Emultek) Subject: RE: [sqlite] Index size in file Regarding: >>Looking at the binary of the file, I see that the index has a copy of >>all the data being indexed. >>1. Is this necassary? Unless you're programming for a cellphone or some other embedded gadget, you m

RE: [sqlite] Index size in file

2007-10-04 Thread Griggs, Donald
Regarding: >>Looking at the binary of the file, I see that the index has a copy of >>all the data being indexed. >>1. Is this necassary? Unless you're programming for a cellphone or some other embedded gadget, you might want to calculate the cost (on the margin) of the disk storage for the estima

Re: [sqlite] Index size in file

2007-10-04 Thread Trevor Talbot
On 10/4/07, John Stanton <[EMAIL PROTECTED]> wrote: > A B-Tree index holds keys in sorted sequence. They are in random > sequence in the database. That requires holding the keys in the B-Tree > nodes. Actually, it doesn't strictly require that; it could store references to the keys. An obvious

Re: [sqlite] Index size in file

2007-10-04 Thread Clive . Bluston
gt; on 04/10/2007 20:02:16 Please respond to sqlite-users@sqlite.org To: sqlite-users@sqlite.org cc:(bcc: clive/Emultek) Subject: Re: [sqlite] Index size in file A B-Tree index holds keys in sorted sequence. They are in random sequence in the database. That requires holding the keys

Re: [sqlite] Index size in file

2007-10-04 Thread John Stanton
an index in memory? Clive John Stanton <[EMAIL PROTECTED]> on 03/10/2007 17:36:58 Please respond to sqlite-users@sqlite.org To: sqlite-users@sqlite.org cc:(bcc: clive/Emultek) Subject: Re: [sqlite] Index size in file An index which does not hold keys is not an index. If you

Re: [sqlite] Index size in file

2007-10-04 Thread Clive . Bluston
possible to create an index in memory? Clive John Stanton <[EMAIL PROTECTED]> on 03/10/2007 17:36:58 Please respond to sqlite-users@sqlite.org To: sqlite-users@sqlite.org cc:(bcc: clive/Emultek) Subject: Re: [sqlite] Index size in file An index which does not hold keys is not an

Re: [sqlite] Index size in file

2007-10-03 Thread John Stanton
An index which does not hold keys is not an index. If you don't want to allocate space for indexing then you put up with slow performance and use row searches. [EMAIL PROTECTED] wrote: I created an index on a TEXT column as I want to be able to I noticed a large increase in the file size. L

[sqlite] Index size in file

2007-10-03 Thread Clive . Bluston
I created an index on a TEXT column as I want to be able to I noticed a large increase in the file size. Looking at the binary of the file, I see that the index has a copy of all the data being indexed. 1. Is this necassary? 2. Is there a way to keep the index only in memory and not in the file.

Re: [sqlite] Index size

2007-06-25 Thread drh
"Andre du Plessis" <[EMAIL PROTECTED]> wrote: > I have a question on index size, I have a table that by doing some > testing the DB have grown to 250MB, might not seem too large, as the > table have 4million records in it. But for this DB this table would grow > a lot larger than that. So I did som

[sqlite] Index size

2007-06-25 Thread Andre du Plessis
I have a question on index size, I have a table that by doing some testing the DB have grown to 250MB, might not seem too large, as the table have 4million records in it. But for this DB this table would grow a lot larger than that. So I did some tests with a simple table 3 fields FIELD1 is a inte