Re: [sqlite] In-Memory Database: Delete rows on a Table increases the memory usage.

2007-08-09 Thread Babu, Lokesh
Does anybody knows the exact code, a little hack where can I free up the memory, I don't want it to use it for future requests. Even drop table consumes memory. :-(. If we are doing in-memory database operation, why do we want to maintain the free'd memory pages? I think If Mr. Hipp answers, it

Re: [sqlite] In-Memory Database: Delete rows on a Table increases the memory usage.

2007-08-20 Thread Babu, Lokesh
ter solution, please let me know. On 8/9/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > > --- "Babu, Lokesh" <[EMAIL PROTECTED]> wrote: > > Does anybody knows the exact code, a little hack where can I free up the > > memory, I don't want it to use it for future

Re: [sqlite] Unique ids for each record

2007-08-20 Thread Babu, Lokesh
refer *In-Memory Database: Delete rows on a Table increases the memory usage * More help needed or didn't understand, let me know. On 8/17/07, Sreedhar.a <[EMAIL PROTECTED]> wrote: > > Thanks Marcus > > > > I am working in 3.3.6 version. > > I created a table with id as integer primary key

[sqlite] Regenerating ROWID...?

2007-08-31 Thread Babu, Lokesh
I was trying the following piece of code (see below), The requirement here is very simple, I want the t_id field or ROWID field to be regenerated sequentially even after delete has been performed. In the below code, I have created a table with 3 fields, Inserted 1000 records, Deleted some middle

Re: [sqlite] Regenerating ROWID...?

2007-08-31 Thread Babu, Lokesh
Thanks Simon, Time being I was looking for the same. Thanks again for the help. On 8/31/07, Simon Davies <[EMAIL PROTECTED]> wrote: > On 31/08/2007, Babu, Lokesh <[EMAIL PROTECTED]> wrote: > > I was trying the following piece of code (see below), > > > > The r

[sqlite] Regarding FTS1

2007-09-03 Thread Babu, Lokesh
Dear All, Does anyone help me out, What is FTS1, How to use FTS1, If any sample programs to use FTS1 and understand better. Thanks in advance. - To unsubscribe, send email to [EMAIL PROTECTED]

[sqlite] why a VIEW doesn't contain a ROWID

2007-09-03 Thread Babu, Lokesh
Dear all, Why a VIEW doesn't contain a ROWID field. Even though if it is accessed, it contains (null) value. How to initialise this or how to make it work as in TABLE. - To unsubscribe, send email to [EMAIL PROTECTED]

[sqlite] how to iterate on SELECT query results

2007-09-03 Thread Babu, Lokesh
Dear all, After doing some SELECT operation on a TABLE, say we get 100 result items out of 1000 records, Is there any way where I can iterate through this result set. i.e., Get N items out of 100, say get previous 10, get next 10, etc, This should be done without creating a temporary table or

Re: [sqlite] why a VIEW doesn't contain a ROWID

2007-09-03 Thread Babu, Lokesh
This I know, but the thing is, I want the ROWID in VIEW to be sequential even after a SELECT with some condition has been executed, ie., from 1 to n. Just like in normal table. In your case it is not like that. By the way, what I mean to say is, why don't we have default ROWID in VIEW like as in

Re: [sqlite] unique id maximum value limiting

2007-09-03 Thread Babu, Lokesh
#ifdef SQLITE_INT64_TYPE typedef SQLITE_INT64_TYPE sqlite_int64; typedef unsigned SQLITE_INT64_TYPE sqlite_uint64; #elif defined(_MSC_VER) || defined(__BORLANDC__) typedef __int64 sqlite_int64; typedef unsigned __int64 sqlite_uint64; #else typedef long long sqlite_int64; typedef

Re: [sqlite] Regarding FTS1

2007-09-03 Thread Babu, Lokesh
Hi Scott, Thanks for the information. One more question, As you said, Full text builds an index of data, so I hope you have done some memory analysis too, could you please tell me the memory usage based on your analysis. On 9/4/07, Scott Hess <[EMAIL PROTECTED]> wrote: > On 9/2

[sqlite] In-Memory Database - problem with DROP TABLE

2007-09-20 Thread Babu, Lokesh
Dear All, I have a piece of code which is shown below, Im doing In-Memory database operation I have done these settings in SQLite, in btree.h SQLITE_DEFAULT_AUTOVACUUM = 1, TEMP_STORE=2 in sqliteint.h (this should be made compulsory, if concentrating only on in-memorydatabase, where no disk is

[sqlite] Fwd: In-Memory Database - problem with DROP TABLE

2007-09-23 Thread Babu, Lokesh
Dear All, I have a piece of code which is shown below, Im doing In-Memory database operation I have done these settings in SQLite, in btree.h SQLITE_DEFAULT_AUTOVACUUM = 1, TEMP_STORE=2 in sqliteint.h (this should be made compulsory, if concentrating only on in-memorydatabase, where no disk is

[sqlite] In-memory database: manually modifying ROWID value increases memory.

2007-10-15 Thread Babu, Lokesh
Dear All, Say I have 3 columns in one Table, with one INTEGER, two TEXT columns, If ROWID is manually inserted and made descending for 1 records from 1 to 1, (or even if random number for ROWID - both these cases), the memory occupied is more. Why is this so? Is that indexing happens, If

Re: [sqlite] In-memory database: manually modifying ROWID value increases memory.

2007-10-17 Thread Babu, Lokesh
fragmentation. > > > > Which sqlite version, operating system, and malloc implementation are > you using? > > > > --- "Babu, Lokesh" <[EMAIL PROTECTED]> wrote: > > > >> Say I have 3 columns in one Table, with one INTEGER, two TEXT columns, >

Re: [sqlite] In-memory database: manually modifying ROWID value increases memory.

2007-10-17 Thread Babu, Lokesh
integer keys and all data at the > leaves) > > ** and the new entry is the right-most entry in the tree (it has the > > ** largest key) then use the special balance_quick() routine for > > ** balancing. balance_quick() is much faster and results in a tighter > > *

[sqlite] Database file analysis

2007-11-02 Thread Babu, Lokesh
Hi all, Does anyone analysed the sqlite3 database output file by opening the file in some hex editor. Is it possible to create one such database file without using sqlite.i.e., is it possible to write the contents without using sqlite and later read the contents using sqlite. or say if I have a