Re: [PERFORM] Query performance on ILIKE with AND operator...

2005-10-10 Thread Federico Simonetti (Liveye)
Sorry but this does not seem to improve performance, it takes even more time, have a look at these data: explain analyze SELECT * FROM ViewHttp WHERE (vchost || txcontenttype) ilike '%www.%html%' ORDER BY iDStart DESC, iSensorID DESC, iForensicID DESC, iSubID DESC OFFSET 0 LIMIT 201 "Limit 

Re: [PERFORM] Query performance on ILIKE with AND operator...

2005-10-10 Thread Tom Lane
"Federico Simonetti (Liveye)" <[EMAIL PROTECTED]> writes: > I'm encountering a quite strange performance problem. The problem stems from the horrid misestimation of the number of rows fetched from detail0009: > "-> Seq Scan on detail0009 (cost=0.00..20500.11 > rows=26 width=

[PERFORM] Query performance on ILIKE with AND operator...

2005-10-10 Thread Federico Simonetti (Liveye)
Hello all, I'm encountering a quite strange performance problem. Look at the following two queries and their execution times. The only difference is the first query has OR operator and the second query has AND operator. Any ideas? Thank you in advance, Federico [FIRST QUERY: EXEC TIME 0.015 SEC