Re: Increasing pattern index query speed - Mailing list pgsql-performance

From Andrus
Subject Re: Increasing pattern index query speed
Date
Msg-id B0DF162C81E84748A71F9FA153ED7BA2@andrusnotebook
Whole thread Raw
In response to Re: Increasing pattern index query speed  (Richard Huxton <dev@archonet.com>)
Responses Re: Increasing pattern index query speed
Re: Increasing pattern index query speed
List pgsql-performance
Richard,

> And the results were?

Results are provided in bottom of the message to which you replied.

> One problem at a time. Let's get the pattern-matching speed problems on
> your live server sorted, then we can look at different queries.

First message in this thread described the issue with query having
additional condition

AND dok.kuupaev BETWEEN '2008-11-21' AND  '2008-11-21'

It seems that this problem occurs when pattern matching and BETWEEN
conditions are used in same query.

According to Scott Garey great recommendation I added

ALTER TABLE rid ALTER COLUMN toode SET STATISTICS 1000;

This fixes testcase in live server, see my other message.
Is it OK to run

ALTER TABLE rid ALTER COLUMN toode SET STATISTICS 1000

in prod database or should I try to decrease 1000 to smaller value ?
rid is big increasing table and is changed frequently, mostly by adding
rows.

Andrus.


pgsql-performance by date:

Previous
From: "Andrus"
Date:
Subject: Re: Increasing pattern index query speed
Next
From: "Chavdar Kopoev"
Date:
Subject: many to many performance