Igor Tandetnik wrote:
> 
> pierr wrote:
>> Following 2 statements took 400ms to be excuted on a 350M MIPS CPU
>> and it is a memory database:
>>
>> "DELETE FROM tblEvent_type WHERE eguid in (SELECT rowid FROM
>> tblEvent_basic WHERE sguid=11);";
>> "DELETE FROM tblEvent_group WHERE eguid in (SELECT rowid FROM
>> tblEvent_basic WHERE sguid=11);";
>> (An index has been created on tblEvent_group(eguid) , no other index
>> so far.)
> 
> You might benefit from an index on tblEvent_basic(sguid). An index on 
> tblEvent_group(eguid) may actually hurt performance.
> 
> 
Igor,
This is really what I found. Why an index on tblEvent_group(eguid) hurted
the performance?


-- 
View this message in context: 
http://www.nabble.com/how-to-break-subquery-into-2-simple-query-tp24422352p24435644.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to