Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0AE3475DAD for ; Fri, 1 Nov 2002 09:41:29 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 5E2A1474E44 for ; Fri, 1 Nov 2002 09:41:26 -0500 (EST) Received: (qmail 24976 invoked from network); 1 Nov 2002 14:29:11 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 1 Nov 2002 14:29:11 -0000 Received: (qmail 13345 invoked by uid 99); 1 Nov 2002 14:41:22 -0000 Received: from 203.145.130.142 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Fri, 1 Nov 2002 20:11:22 +0530 (IST) Message-ID: <1040.203.145.130.142.1036161682.squirrel@mail.trade-india.com> Date: Fri, 1 Nov 2002 20:11:22 +0530 (IST) Subject: Re: [pgsql-performance] Is dump-reload the only cure? From: To: In-Reply-To: <1036159864.5794.5.camel@jester> References: <1584.203.145.130.142.1036149343.squirrel@mail.trade-india.com> <1036155160.3550.8.camel@jester> <1062.203.145.130.142.1036155816.squirrel@mail.trade-india.com> <1036159864.5794.5.camel@jester> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/8 X-Sequence-Number: 6196 Thanks for the insight Rod. is there any other place i can know more abt these principles? But if the table is clustered then the pages are stored catagiously with respect to that column rite? > On Fri, 2002-11-01 at 08:03, mallah@trade-india.com wrote: >> >> Hi Rod , >> >> Does it means that index scan is used for less frequenlty occuring data? yes my table was not >> clustered. >> >> can u tell me what does 0.00..6788.24 and rows and width means? >> >> in explain out put cost=0.00..6788.24 rows=30001 width=4 >> >> >> I have one more table where i face the similar problem , i have not dump - reloaded it yet , >> will post again if i face the problem. > > Keep in mind that an index scan is very expensive in regards to a single tuple. It has to run > through (fetch) the index pages, then fetch the pages from the table. Since the table fetches > are random, the harddrive will probably incur a seek for each tuple found in the index. The > seeks add up much quicker than a sequential scan (without nearly as many seeks or drive head > movements). > > -- > Rod Taylor ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/