X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7E3955E46C1 for ; Wed, 25 Aug 2004 20:51:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95479-08 for ; Wed, 25 Aug 2004 23:51:07 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id DA8865E46EE for ; Wed, 25 Aug 2004 20:51:05 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6176004; Wed, 25 Aug 2004 16:52:27 -0700 Content-Type: text/plain; charset="iso-8859-15" From: Josh Berkus Organization: Aglio Database Solutions To: =?iso-8859-15?q?Herv=E9=20Piedvache?= , pgsql-performance@postgresql.org Subject: Re: TSearch2 and optimisation ... Date: Wed, 25 Aug 2004 16:50:53 -0700 User-Agent: KMail/1.4.3 References: <200408260048.32274.footcow@noos.fr> In-Reply-To: <200408260048.32274.footcow@noos.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200408251650.53233.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/348 X-Sequence-Number: 7984 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