[sqlite] Reg number of tables.

2006-09-08 Thread chetana bhargav
Hi, I wanted to know will there be any performance impact if the number of tables in a DB grow. I am planning to have around 8-9 tables in a single DB, so want to make sure does it have any affect. Is there any number for optimal usage. Apart from tables we may have indexes (of course not

Re: [sqlite] Prepared statements and temp ffiles

2006-09-08 Thread Jay Sprenkle
On 9/8/06, A. Klitzing <[EMAIL PROTECTED]> wrote: Jay Sprenkle schrieb: > On 9/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> The only way I know to provide some approximation of random >> access cursors for queries like the above is to store the >> complete result of the query in a tem

Re: [sqlite] Performance Question: Ordering of columns

2006-09-08 Thread Dennis Cote
Slater, Chad wrote: Does the ordering of columns in a table have any impact on performance? Chad, Not significantly if your rows have less than a couple of hundred bytes of data. If they are larger than that they will spill into overflow page(s). It takes longer to insert and select data

[sqlite] Performance Question: Ordering of columns

2006-09-08 Thread Slater, Chad
Hello, Does the ordering of columns in a table have any impact on performance? Chad - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Prepared statements and temp ffiles

2006-09-08 Thread A. Klitzing
Jay Sprenkle schrieb: On 9/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The only way I know to provide some approximation of random access cursors for queries like the above is to store the complete result of the query in a temporary table. You can always do so by prepending: Did anyon

Re: [sqlite] Prepared statements and temp ffiles

2006-09-08 Thread Jay Sprenkle
On 9/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The only way I know to provide some approximation of random access cursors for queries like the above is to store the complete result of the query in a temporary table. You can always do so by prepending: Did anyone suggest doing that to

RE: [sqlite] Bug in SQlite ?

2006-09-08 Thread Rob Richardson
What assertion failure are you seeing? What is the exact message? Can you use a debugger to step into the code where the assertion failure happens? RobR - To unsubscribe, send email to [EMAIL PROTECTED]

Re: [sqlite] UPDATE reports SQL logic error or missing database

2006-09-08 Thread drh
Simon Posnjak <[EMAIL PROTECTED]> wrote: > Hi again! > > I found what the problem is that sqlite returns the wrong error code. > What happens is next (in version 3.3.7): > -vdbe.c:2593 -> sqlite3BtreeCursor returns code 6 (table locked) => rc = 6 > -vdbe.c:2606 -> switch checks rc value > -vdbe.c

RE: [sqlite] UPDATE reports SQL logic error or missing database

2006-09-08 Thread Denis Povshedny
Hello Simon! Just for your information. I have often receive this error (SQL logic error or missing database) when some constraints failed or keys aren't unique. I use 3.3.4; earlier with version 3.2.8 I had correct responses for non-uniqueness failures. So I think when you update data there may b

Re: [sqlite] UPDATE reports SQL logic error or missing database

2006-09-08 Thread Simon Posnjak
Hi again! I found what the problem is that sqlite returns the wrong error code. What happens is next (in version 3.3.7): -vdbe.c:2593 -> sqlite3BtreeCursor returns code 6 (table locked) => rc = 6 -vdbe.c:2606 -> switch checks rc value -vdbe.c:2642 -> falls to default which is goto abort_due_to_