Re: [sqlite] General index information

2008-12-11 Thread L B
Thanks Igor,your examples really helped me! --- Igor Tandetnik <[EMAIL PROTECTED]> wrote: > "L B" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > Just to better understand, the index on (x,y,z), > would > > it be useful for querie

Re: [sqlite] General index information

2008-12-11 Thread L B
Just to better understand, the index on (x,y,z), would it be useful for queries like select * from table1 inner join table2 on table1.x=table2.x and table1.y = table2.y and table1.z=table2.z or "table1.y = table2.y and table1.z=table2.z" would not benefit the index (so it would be better 3 dif

Re: [sqlite] General index information

2008-12-10 Thread L B
Thank you very much for your reply, Igor. The explanation you made is only valid for sqlite or for SQL in general? Moreover, the query: select * from mytable where X=?; would still benefit the index on (X, Y, Z)? --- Igor Tandetnik <[EMAIL PROTECTED]> wrote: > "L B" <[E

[sqlite] General index information

2008-12-10 Thread L B
Hi all, I would like to know if there is any difference between using 3 indexes on three different fields or just an index which groups them, in terms of physical size and performance. I have seen that sqlite cannot use more than one index at a time, so I was wondering if the second option is alwa

Re: [sqlite] simple? query problem

2008-11-04 Thread L B
May be: select B.* from B left join A on a.id = b.id where A.id is null ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] query performance comparison with access

2008-10-29 Thread L B
I have obtained a great performance improvement now just adding an index in the 2 columns dtfrom and idcatalogue, removing the 2 single indexes on the column dtfrom and idcatalogue. I could not believe, now the query SELECT MAX(DTFROM) AS MAXDT, IDCATALOGUE FROM CRONOCATALOGUES GROUP BY IDCAT

Re: [sqlite] query performance comparison with access

2008-10-29 Thread L B
I have investigated more. It seems that the performance problem is simply related to the query: SELECT MAX(DTFROM) AS MAXDT, IDCATALOGUE FROM CRONOCATALOGUES GROUP BY IDCATALOGUE which takes at first execution 9 seconds in access and 30 seconds in sqlite, and it takes, after first execution (OS c

[sqlite] query performance comparison with access

2008-10-27 Thread L B
Hi all, I have a 500mb database in access, migrated to sqlite. The structure is: --this table has 100 records CREATE TABLE CATALOGUES ( IDCATALOGUE INTEGER PRIMARY KEY AUTOINCREMENT, CATALOGUENAME TEXT, IDPERSONALDATA INTEGER, TYPE INTEGER, ACTIVE INTEGER ); C

Re: [sqlite] in memory or hard disk reading?

2008-04-18 Thread L B
Thanks Doug. Is there any suggestion or rules about parameters to use (cache_size, default_cache_size...) in relation to database size and number of records in a table? - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. __

Re: [sqlite] in memory or hard disk reading?

2008-04-18 Thread L B
Thanks for your reply. So, as I understand, this performance improvement is due to the operating system, not to sqlite itself. Could this improvement be different changing operating system? When Is it convenient to use SQLite page-cache for large database (example 4 gb) and in which terms?

[sqlite] in memory or hard disk reading?

2008-04-18 Thread L B
Hi all, I have a query that, first time is executed, takes 40 seconds to give results. After the first execution, it takes about 15 seconds. My question is: Is the db loaded into memory? I thought db is read from hard disk every time, isn't it? Why this difference in performance? Tha

Re: [sqlite] sqlite-users Digest, Vol 3, Issue 99

2008-04-01 Thread L B
Hi Dennis, may be I understand now. I have enabled mail delivery in my sqlite users account options (which was not enabled before), now I should receive all messages so that I can reply to one of them. May be it was my problem, because I have never received any message from sqlite user m

[sqlite] how to reply?

2008-03-21 Thread L B
Sorry for this post, but I can't find a way to reply to a post. It seems that I can only reply via email to the person who answered me. How to reply and see my answer on this site? thanks - Be a better friend, newshound, and know-it-all with Yahoo! Mobi

[sqlite] group by optimization

2008-03-21 Thread L B
Hi all, I have this query: select CATALOGUES.idcatalogue, CATALOGUES.type, PERSONS.surname, max(HISTORY.startingfrom) as maxdate FROM PERSONS INNER JOIN CATALOGUES ON CATALOGUES.idperson = PERSONS.idperson INNER JOIN HISTORY ON HISTORY.idcatal