Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CF8439F99E0; Sat, 25 Aug 2007 15:18:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 63496-05; Sat, 25 Aug 2007 15:18:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by postgresql.org (Postfix) with ESMTP id 8FA999F9C0C; Sat, 25 Aug 2007 15:18:04 -0300 (ADT) Received: from c-66-177-181-30.hsd1.fl.comcast.net [66.177.181.30] (helo=blaptop) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis), id 0MKp8S-1IP0Cu01vC-0008OM; Sat, 25 Aug 2007 14:18:03 -0400 Message-ID: <012c01c7e75d$68c4ef20$c901a8c0@blaptop> From: "Brandon Shalton" To: "Benjamin Arai" Cc: "PostgreSQL" , References: <3147EF26-2649-4FDF-BD86-2DB0AF8460FC@benjaminarai.com> <0be901c7e6cb$a2b13320$c901a8c0@blaptop> <46CF85EE.5040805@commandprompt.com> <46D0564A.7030405@commandprompt.com> <29A8F3CE-03F9-4E92-A354-6F4FC3C810F4@benjaminarai.com> Subject: Re: [PERFORM] Partioning tsearch2 a table into chunks and accessing via views Date: Sat, 25 Aug 2007 14:17:53 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Provags-ID: V01U2FsdGVkX19WXrGUZ6NOuBY51lG/Qirw5u7znVgjNz/BigS gxDHETPLq07drejm8pOt9WfQFgz6Z+GvOC6/FZjb0yQJ4RDtE7 ziUenqX6KRhDtSvqlbFRroiXp86a6X1kWcfBSJnOE4= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL=0.198, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200708/1578 X-Sequence-Number: 119427 > > As stated in the previous email if I use partitioning then queries will > be executed sequentially - i.e., instead of log(n) it would be (# > partitions) * log(n). Right? > depends.. since indexes would be hit for each child table, the time for query is dependent on the amount of data that is indexed in each table. the querying of the parent is still pretty quick given dual processor and a fast array filestorage device. given your situation, i would give the parent/child approach a child. I haven't checked in postgres if it is has it has Joshua had replied, but I do know bizgres does as i have been running this configuration for the last 3 years and it solved my problem of importing 30-60M records in a day and still being able to query the database for data. -brandon http://www.t3report.com - marketing intelligence for online marketing and affiliate programs