Re: [sqlite] Simple question about optimization

2007-12-10 Thread Clodo
Thanks Dan, your answer it's exactly what i want to know. Thanks again! On 10/12/2007, Kees Nuyt <[EMAIL PROTECTED]> wrote: On Mon, 10 Dec 2007 12:22:53 +0100, Clodo <[EMAIL PROTECTED]> wrote: In this case: - CREATE TABLE test ( Field01 text PRIMARY KEY NOT NULL,

Re: [sqlite] Simple question about optimization

2007-12-10 Thread Dan
On 10/12/2007, Kees Nuyt <[EMAIL PROTECTED]> wrote: On Mon, 10 Dec 2007 12:22:53 +0100, Clodo <[EMAIL PROTECTED]> wrote: In this case: - CREATE TABLE test ( Field01 text PRIMARY KEY NOT NULL, Field02 text ); insert into test values ('alpha','beta'); update test

Re: [sqlite] Simple question about optimization

2007-12-10 Thread Cesar D. Rodas
On 10/12/2007, Cesar D. Rodas <[EMAIL PROTECTED]> wrote: > > What Kess Nuyt is asking is if you want to replace a column with a data, > which is the data, will SQLite update it or SQLite is smart enough for > avoid write the same thing?, very important for keep executing time, > because write

Re: [sqlite] Simple question about optimization

2007-12-10 Thread Cesar D. Rodas
What Kess Nuyt is asking is if you want to replace a column with a data, which is the data, will SQLite update it or SQLite is smart enough for avoid write the same thing?, very important for keep executing time, because write something to HDD is very expensive. I hope I understand well your

Re: [sqlite] Simple question about optimization

2007-12-10 Thread Kees Nuyt
On Mon, 10 Dec 2007 12:22:53 +0100, Clodo <[EMAIL PROTECTED]> wrote: >In this case: > >- >CREATE TABLE test ( > Field01 text PRIMARY KEY NOT NULL, > Field02 text >); > >insert into test values ('alpha','beta'); > >update test set Field01='alpha', Field02='gamma';

[sqlite] Simple question about optimization

2007-12-10 Thread Clodo
In this case: - CREATE TABLE test ( Field01 text PRIMARY KEY NOT NULL, Field02 text ); insert into test values ('alpha','beta'); update test set Field01='alpha', Field02='gamma'; - In the "update" statement, i re-set the primary field