[sqlite] How to optimize select queries

2006-01-02 Thread Ritesh Kapoor
Hi, I need to optimize/speed up my 'select' queries. The query creates about 3 to 6 left joins from 7 different tables depending on the different conditions passed. The problem is that this is taking a lot of time. The table column's are of both varchar and integer types - on which

Re: [sqlite] Building sqlite 3.2.8 on redhat 9

2006-01-02 Thread Lloyd Thomas
I have compilted tcl, but had a problem with tk. having compiled sqlite3 I get a new error trying to run sqlite3 = 'sqlite3: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or diretory' Any Ideas? Lloyd - Original Message - From:

Re: [sqlite] Building sqlite 3.2.8 on redhat 9

2006-01-02 Thread Arjen Markus
Lloyd Thomas wrote: I have compilted tcl, but had a problem with tk. having compiled sqlite3 I get a new error trying to run sqlite3 = 'sqlite3: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or diretory' That seems a common problem

Re: [sqlite] Building sqlite 3.2.8 on redhat 9

2006-01-02 Thread Lloyd Thomas
There does not seem to be a library file in /usr/lib/ called libsqlite3.so.0. would that be the problem. Please bear with me I am a linux newbie. Lloyd - Original Message - From: Arjen Markus [EMAIL PROTECTED] To: sqlite-users@sqlite.org Sent: Monday, January 02, 2006 12:13 PM

Re: [sqlite] limiting table size?

2006-01-02 Thread Dennis Cote
Julien LEFORT wrote: This looks like a great solution. Just another point, what if I want to fill this ring buffer automatically by using triggers on other tables, and be able to reset the counter of the ring buffer when I arrive at the max integer value of the primary key. --Create

Re: [sqlite] How to optimize select queries

2006-01-02 Thread Dennis Cote
Ritesh Kapoor wrote: Hi, I need to optimize/speed up my 'select' queries. The query creates about 3 to 6 left joins from 7 different tables depending on the different conditions passed. The problem is that this is taking a lot of time. The table column's are of both varchar and integer

[sqlite] Prevent the error message box from popping up?

2006-01-02 Thread Tsolakos Stavros
Hi all. I am new both to this list and sqlite. Great tool. I apologize if the question is a bit stupid, but I searched the whole site without being able to find answer. How can I prevent this message box from popping up under Windows? I would like sqlite3_exec fail silently and only report

Re: [sqlite] Column alignment in bash with utf8

2006-01-02 Thread drh
Eddy [EMAIL PROTECTED] wrote: Am I doing something wrong ? Is it a know bug of sqlite3 ? Please distinguish between SQLite the C library and sqlite the command-line shell that you can use to access databases. We work very hard to make sure that SQLite the C library is free of bugs. But

Re: [sqlite] Column alignment in bash with utf8

2006-01-02 Thread Matt Wilson
On Mon, Jan 02, 2006 at 04:47:31PM -0500, [EMAIL PROTECTED] wrote: I suppose you could argue that this is a bug in the command-line shell. I won't contradict you. But being a monolingual american, I have no clue how to reproduce the problem, much less fix it. You just need to compensate for

[sqlite] undelete records?

2006-01-02 Thread Kimball Larsen
I have an sqlite 2.1 format database file with records in it that have been marked deleted (I believe the term for this is that their pages are on the freelist) Is there any simple way to get these records back? Or are they gone forever? Autovacuum was not on, and with a hex editor I can see

[sqlite] optimization request: ORDER BY with LIMIT clause

2006-01-02 Thread Joe Wilson
Sqlite 3.2.7 does not seem to perform a fairly straightforward database optimization for queries involving an ORDER BY clause with a LIMIT clause. Given a table or view with a large number of rows, such as View1 below: CREATE TABLE t1(a,b,c); INSERT INTO t1 VALUES(4, 5, 6); INSERT INTO t1