Subject: Re: [sqlite] Any way to do this faster?
[EMAIL PROTECTED] wrote:
>
> I will need an index on that field later, but
> I could drop it prior to the delete and create
> a new one after.
>
>
Don't do that. If you need the index, then leave it as is.
> Thinking abo
[EMAIL PROTECTED] wrote:
I will need an index on that field later, but
I could drop it prior to the delete and create
a new one after.
Don't do that. If you need the index, then leave it as is.
Thinking about it I am not sure in any case of the
value of an index after deletes on a table.
Brian Johnson wrote:
Another way of saying what Dennis said (I had to read his reply twice before I
understood it):
Point taken. :-)
I often think I'm being too wordy in my replies, but when I try to make
my statements more succinct they seem to be confusing.
I guess I just don't have th
> also, as Dennis said .. unless you have
> some other reason for that index on
> Table B, get rid of it.
I will need an index on that field later, but
I could drop it prior to the delete and create
a new one after.
Thinking about it I am not sure in any case of the
value of an index after delete
Another way of saying what Dennis said (I had to read his reply twice before I
understood it):
your query: for every record in TableB it returns ALL the records in tableA
and then looks through them
Dennis's query: for every record in TableB it checks tableA directly for the
existence of that ID
---Original Message-
> From: Dennis Cote [mailto:[EMAIL PROTECTED]
> Sent: 26 March 2007 16:12
> To: sqlite-users@sqlite.org
> Subject: Re: [sqlite] Any way to do this faster?
>
>
> RB Smissaert wrote:
>> Simplified I have the following situation:
>>
>>
h 2007 16:12
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Any way to do this faster?
RB Smissaert wrote:
> Simplified I have the following situation:
>
> 2 tables, tableA and tableB both with an integer field, called ID,
holding
> unique integer numbers in tableA and non-uniqu
Thanks Dennis, will try that when I get chance (at work now) and will
report back about the difference
it made.
RBS
> RB Smissaert wrote:
>> Simplified I have the following situation:
>>
>> 2 tables, tableA and tableB both with an integer field, called ID,
>> holding
>> unique integer numbers in
RB Smissaert wrote:
Simplified I have the following situation:
2 tables, tableA and tableB both with an integer field, called ID, holding
unique integer numbers in tableA and non-unique integer numbers in tableB.
Both tables have an index on this field and for tableA this is an INTEGER
PRIMARY K
Simplified I have the following situation:
2 tables, tableA and tableB both with an integer field, called ID, holding
unique integer numbers in tableA and non-unique integer numbers in tableB.
Both tables have an index on this field and for tableA this is an INTEGER
PRIMARY KEY.
Now I need to dele
10 matches
Mail list logo