Re: [sqlite] Aggregate and query limit

2007-08-18 Thread Mina R Waheeb
Hi, Yes, You are right. How SQLite will know the position of the row 990 unless it ordered by indexed field. That takes me to another point, How SQLite exactly interpret the query, I read in the documentation "After the parser assembles tokens into complete SQL statements, it calls the code

Re: [sqlite] To increase search speed

2007-08-18 Thread Ken
I think method 3 shows the best promise: Obviously M4 is out since it is in memory only. Besides caching should help improve the performance. The qustion that begs to be asked is: What are your performance goals? And what are your performance numbers ie timings for each of the

Re: [sqlite] Columns from nested joins aren't properly propagated

2007-08-18 Thread Bruno S. Oliveira
=/ Well... that was just to confirm that there's no way to make those queries work... As we say, hope is the last to die... Thanks a lot for your attention. Bruno On 8/17/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > Given that this issue has existed for years, and many simple workarounds > are

Re: [sqlite] Increasing performance of joins with a group by clause?

2007-08-18 Thread John Machin
On 19/08/2007 4:01 AM, Jef Driesen wrote: Suppose I have two related tables: CREATE TABLE events ( id INTEGER PRIMARY KEY NOT NULL, place_id INTEGER ); CREATE TABLE places ( id INTEGER PRIMARY KEY NOT NULL, name TEXT ); INSERT INTO places (id, name) VALUES (1, 'Place A');

[sqlite] Re: Increasing performance of joins with a group by clause?

2007-08-18 Thread Igor Tandetnik
Jef Driesen <[EMAIL PROTECTED]> wrote: Is there a difference between using a primary key or another index for a join? There is a slight difference. When SQLite looks up by ROWID (which INTEGER PRIMARY KEY column maps to) it jumps directly to the record, and has all the fields in it easily

Re: [sqlite] To increase search speed

2007-08-18 Thread RaghavendraK 70574
use sqlite statements. regards ragha ** This email and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use

Re: [sqlite] Aggregate and query limit

2007-08-18 Thread Joe Wilson
--- Mina R Waheeb <[EMAIL PROTECTED]> wrote: > Do you mean the LIMIT in SQLite is not optimized? and the performance > of selecting from table contains 1000 rows match the query condation > equal selecting the same condation with limit 990,10? Pretty much, yes, as it should be. LIMIT is

[sqlite] Unusual use of the LIKE operator (long)

2007-08-18 Thread Rod Dav4is
Conventional usage is as follows: ... WHERE column-name LIKE "string" Which, of course, selects rows where the values in the named column match the string, which can, and usually does, have wildcards. I have been using an inverted arrangement: ... WHERE "string" LIKE column-name This

Re: [sqlite] Aggregate and query limit

2007-08-18 Thread Nuno Lucas
On 8/18/07, Mina R Waheeb <[EMAIL PROTECTED]> wrote: > Hi, > Thanks for reply. I'm still confused about that. I don't know much > about SQLite internals, But what i understanded from your reply that > SQLite fetch any row match the query condation and then apply to it > the GROUP BY then apply

Re: [sqlite] Odd error on "BEGIN IMMEDIATE"

2007-08-18 Thread Scott Derrick
OK, I understand. Must have miss read teh docs.. thanks, Scott Trevor Talbot wrote: On 8/17/07, Scott Derrick <[EMAIL PROTECTED]> wrote: exec a "BEGIN IMMEDIATE", with a sleep loop if I can't acquire the reserved lock. Then prepare, step, finalize, exit the function When I come back