[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

[sqlite] Maximum Size of Record

2008-12-10 Thread Satish
Hi Igor, Can I know the Maximum size of Record in sqlite or Can I know the maximum size of NUMBER,TEXT and BLOB Data types. Regards, G.Satish. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mail

Re: [sqlite] General index information

2008-12-10 Thread P Kishor
On 12/10/08, L B <[EMAIL PROTECTED]> wrote: > 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 in

Re: [sqlite] General index information

2008-12-10 Thread Igor Tandetnik
"L B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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. Yes. In both cases, there are queries that will

Re: [sqlite] Maximum Size of Record

2008-12-10 Thread Martin.Engelschalk
Yes, i think so. Satish schrieb: > Hi, > I have seen the link which you sent.I didn't found any thing in > which you sent regarding the size of number or text > Field.In the link which u sent there mentioned the size limit of blob I > didn't found any size limit regarding text and number.Can

Re: [sqlite] Maximum Size of Record

2008-12-10 Thread P Kishor
On 12/10/08, Satish <[EMAIL PROTECTED]> wrote: > Hi, > I have seen the link which you sent.I didn't found any thing in > which you sent regarding the size of number or text > Field.In the link which u sent there mentioned the size limit of blob I > didn't found any size limit regarding t

Re: [sqlite] Maximum Size of Record

2008-12-10 Thread Satish
Hi, I have seen the link which you sent.I didn't found any thing in which you sent regarding the size of number or text Field.In the link which u sent there mentioned the size limit of blob I didn't found any size limit regarding text and number.Can I assume the size of number and text as u

Re: [sqlite] Maximum Size of Record

2008-12-10 Thread Martin.Engelschalk
Hi, See http://www.sqlite.org/limits.html Martin Satish schrieb: > Hi Igor, > > Can I know the Maximum size of Record in sqlite or Can I > know the maximum size of NUMBER,TEXT and BLOB Data types. > > > > Regards, > > G.Satish. > > ___

Re: [sqlite] Maximum Size of Record

2008-12-10 Thread Igor Tandetnik
"Satish" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Can I know the Maximum size of Record in sqlite or Can > I know the maximum size of NUMBER,TEXT and BLOB Data types. You got your answer about text and blob. As to numbers, you can store either 64-bit signed int

Re: [sqlite] reporting number of changes

2008-12-10 Thread Edzard Pasma
Possibly my previous post was too short. Any way I have a satisfactory solution now. My question araised when trying to change the apswtrace tool available to Python users. This gathers execution times via a sqlite3_profile callback function. When I call sqlite3_changes from this profiler functi

[sqlite] SQL question with SQLite

2008-12-10 Thread jm cuaz
Hello, In a SELECT statement with multiple tables, is it possible to replace WHERE clauses used to avoid cross joins with GROUP BY + HAVING clauses (with the same criteria) for the same purpose (no cross join) ? Are the two methods roughly equivalent in performance ? We ask this because we won

Re: [sqlite] General index information

2008-12-10 Thread D. Richard Hipp
On Dec 10, 2008, at 7:48 AM, Igor Tandetnik wrote: > >> I have seen that sqlite cannot use more than one index >> at a time, so I was wondering if the second option is >> always the best solution. > > Not always. If you have a single index on (X, Y, Z), it can't be used > for queries like > > sele

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" <[EMAIL PROTECTED]> wrote

Re: [sqlite] SQL question with SQLite

2008-12-10 Thread Ken
If you want help with your SQL. You should post it along with your question. There are a lot of really good SQL experts on here that will be able to help you. --- On Tue, 12/9/08, jm cuaz <[EMAIL PROTECTED]> wrote: > From: jm cuaz <[EMAIL PROTECTED]> > Subject: [sqlite] SQL question with SQL

Re: [sqlite] General index information

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

Re: [sqlite] SQL question with SQLite

2008-12-10 Thread Jay A. Kreibich
On Tue, Dec 09, 2008 at 04:58:38PM +0100, jm cuaz scratched on the wall: > In a SELECT statement with multiple tables, is it possible to replace > WHERE clauses used to avoid cross joins with GROUP BY + HAVING clauses > (with the same criteria) for the same purpose (no cross join) ? No. That

[sqlite] Audit

2008-12-10 Thread Ken
Hi list, I'd like ideas / recommendations on implementing and auditing to track delta changes to tables. I have about 6 tables in my db with different fields/columns and PK's. My original thought was to have a single audit table for all of them such as audit_delta ( id integer, tab text, operat

Re: [sqlite] Audit

2008-12-10 Thread Brad Stiles
> I'd like ideas / recommendations on implementing and auditing to track delta > changes to tables. Here's one possibility for auditing. http://www.sqlite.org/cvstrac/wiki?p=UndoRedo Another possibility is to have audit tables are identical copies of the tables being tracked, except for some tr

Re: [sqlite] Audit

2008-12-10 Thread Brad Stiles
> I'd like ideas / recommendations on implementing and auditing to track delta > changes to tables. Here's one possibility for auditing: http://www.sqlite.org/cvstrac/wiki?p=UndoRedo Another possibility is to have audit tables are identical copies of the tables being tracked, except for some tra

Re: [sqlite] Audit

2008-12-10 Thread Alexey Pechnikov
Hello! Imho it's better to create audit table for single table. For example, we can attach audit database "audit" and create all tables from main db (without constraints, triggers and checks). Before drop or edit record ID in table T execute "insert into audit.T select * from T where rowid=I

[sqlite] primary key is indexed by default ?

2008-12-10 Thread Richard Kim
Hi Just wondering that if you set primary key in table, the column is indexed by default in sqlite ? thanks a lot Richard K ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] primary key is indexed by default ?

2008-12-10 Thread Igor Tandetnik
Richard Kim <[EMAIL PROTECTED]> wrote: > Just wondering that if you set primary key in table, the column is > indexed by default in sqlite ? Yes. PRIMARY KEY and UNIQUE constraints are enforced by automatically generating a unique index. Igor Tandetnik

[sqlite] Sqlite3Explorer Sqlite Report Designer

2008-12-10 Thread Rajesh Nair
Dear Cariotoglou Mike, Are you in vaccation? I am attaching the previous emails that I have send. If you are trying or planning to work on the same please inform, so that I can hope that some thing is going to happen -- Forwarded message -- From: Rajesh Nair <[EMAIL PROTECTED]>

[sqlite] Combination Key

2008-12-10 Thread Rajesh Nair
Can I define a combination-key in sqlite. If yes, how? Sqlite is allowing me to declare more than one PRIMARY KEY. -- Regards Rajesh Nair ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users