From: Brandon Shalton <brandon@cydataservices.com>
To: Benjamin Arai <me@benjaminarai.com>
Cc: PostgreSQL <pgsql-general@postgresql.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Partioning tsearch2 a table into chunks and accessing via views
Date: Sat, 25 Aug 2007 14:17:53 -0700
Message-ID: <012c01c7e75d$68c4ef20$c901a8c0@blaptop> (raw)
References: <3147EF26-2649-4FDF-BD86-2DB0AF8460FC@benjaminarai.com>
<0be901c7e6cb$a2b13320$c901a8c0@blaptop>
<46CF85EE.5040805@commandprompt.com>
<F6B156AD-BE6D-4300-871A-E3DE0491AA11@benjaminarai.com>
<46D0564A.7030405@commandprompt.com>
<29A8F3CE-03F9-4E92-A354-6F4FC3C810F4@benjaminarai.com>
>
> 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
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: brandon@cydataservices.com, me@benjaminarai.com, pgsql-general@postgresql.org
Subject: Re: [PERFORM] Partioning tsearch2 a table into chunks and accessing via views
In-Reply-To: <012c01c7e75d$68c4ef20$c901a8c0@blaptop>
* 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