From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Grzegorz Blinowski <g.blinowski@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: poor pefrormance with regexp searches on large tables
Date: Wed, 10 Aug 2011 10:27:57 -0500
Message-ID: <4E425D2D020000250003FD32@gw.wicourts.gov> (raw)
In-Reply-To: <CAF=aNMHHzBKE8_P0LykDb8Bvk7eHKdytcZ9xAkz=gtpeTj87+w@mail.gmail.com>
References: <CAF=aNMHHzBKE8_P0LykDb8Bvk7eHKdytcZ9xAkz=gtpeTj87+w@mail.gmail.com>
Grzegorz Blinowski <g.blinowski@gmail.com> wrote:
> Some performance params from postgresql.conf:
Please paste the result of running the query on this page:
http://wiki.postgresql.org/wiki/Server_Configuration
For a start, the general advice is usually to start with
shared_buffers at the lesser of 25% of system RAM or 8 GB, and
adjust from there based on benchmarks. So you might want to try 4GB
for that one.
Just to confirm, you are using 2 Phase Commit? (People sometimes
mistake the max_prepared_transactions setting for something related
to prepared statements.)
I concur with previous advice that using one regular expression
which matches all of the terms is going to be a lot faster than
matching each small regular expression separately and then combining
them.
-Kevin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, g.blinowski@gmail.com
Subject: Re: poor pefrormance with regexp searches on large tables
In-Reply-To: <4E425D2D020000250003FD32@gw.wicourts.gov>
References: <CAF=aNMHHzBKE8_P0LykDb8Bvk7eHKdytcZ9xAkz=gtpeTj87+w@mail.gmail.com> <4E425D2D020000250003FD32@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox