Re: [PERFORM] Beginner Question

2007-04-10 Thread Mike Gargano
Yeah, I have a lot of similar problems where an index that I have to speed up one query is used in another query where it actually slows it down. Is there any way to ignore indexes for certain queries? We've been appending empty strings and adding zero's to the column data to force it int

Fwd: [PERFORM] Not Picking Index

2007-02-16 Thread Mike Gargano
This is very similar to the problem I posted to this list yesterday. Apparently, if you append an empty string to the column data in your WHERE clause it will force the planer to treat it as a filter and not an index cond. It's extremely ugly, but this method doesn't seem to be anymore

[PERFORM] strange issue for certain queries

2007-02-15 Thread Mike Gargano
Hello, I'm experiencing some very unusual speed problems while executing a particular query. Appending an empty string to one of the fields in the query speeds up the execution by a 1000 fold. According to the planner this alternate query is much more costly too. Here are the EXPLAIN