Re: [PERFORM] Nested loop Query performance on PK

2009-07-25 Thread Greg Caulton
On Sun, Jul 26, 2009 at 1:02 AM, Greg Caulton wrote: > Hello, > > It seems to me that the following query should be a lot faster. This runs > in 17 seconds (regardless how many times I run it) > > select ac.* from application_controls_view ac, refs r where > ac.cus

[PERFORM] Nested loop Query performance on PK

2009-07-25 Thread Greg Caulton
Hello, It seems to me that the following query should be a lot faster. This runs in 17 seconds (regardless how many times I run it) select ac.* from application_controls_view ac, refs r where ac.custom_controller_ref_id = r.ref_id and r.ref_key like '%XYZ%'; if I do not use the view the query r

Re: [PERFORM] cant get an index scan with a LIKE

2008-10-06 Thread Greg Caulton
btree (term_index ); thanks again Greg On Mon, Oct 6, 2008 at 7:59 PM, Kevin Grittner <[EMAIL PROTECTED]> wrote: >>>> "Greg Caulton" <[EMAIL PROTECTED]> wrote: > >> but I get a sequential scan when I do where term_index like >> >> select *

[PERFORM] cant get an index scan with a LIKE

2008-10-06 Thread Greg Caulton
Hi, I have a table sct_descriptions which I have vacuumed, analyzed and reindexed. The index is on term_index INFO: analyzing "public.sct_descriptions" INFO: "sct_descriptions": scanned 3000 of 22861 pages, containing 91877 live rows and 0 dead rows; 3000 rows in sample, 700133 estimated total