pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Hervé Piedvache <footcow@noos.fr>
To: pgsql-performance@postgresql.org
Subject: Re: TSearch2 and optimisation ...
Date: Wed, 25 Aug 2004 16:50:53 -0700
Message-ID: <200408251650.53233.josh@agliodbs.com> (raw)
In-Reply-To: <200408260048.32274.footcow@noos.fr>
References: <200408260048.32274.footcow@noos.fr>

Herve'

> The request takes about 4 seconds ... I have about 1 400 000 records in
> article and 36 000 records in site table ... it's a Bi-Pentium III 933 MHz
> server with 1 Gb memory ... I'm using Postgresql 7.4.5
> For me this result is very very slow I really need a quicker result with
> less than 1 second ...
> The next time I call the same request I have got the result in 439 ms ...
> but If I replace "Postgresql" in my find with "Linux" for example I will
> get the next result in 5 seconds ... :o(

Hmmm.  It sounds like your system is unable to keep all of the data cached in 
memory.  What else do you have going on on that machine?

> Explain gives me this result :

Please do "EXPLAIN ANALYZE" so that we can see where time is actually spent.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (8+ messages)  latest in thread

Message-ID: <200408251650.53233.josh@agliodbs.com>
Permalink:  ../200408251650.53233.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200408251650.53233.josh@agliodbs.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, footcow@noos.fr
  Subject: Re: TSearch2 and optimisation ...
  In-Reply-To: <200408251650.53233.josh@agliodbs.com>

* 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