Re: One large v. many small

From: Noah Silverman <noah(at)allresearch(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: One large v. many small
Date: 2003-01-30 18:24:38
Message-ID: 176C96F6-3480-11D7-A3A3-000393AA8F3C@allresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

OK,

Thanks for the quick responses.

A bit more information.

We are in the business of gathering data for our clients. (We're a news
service). Subsequently, we do a lot of inserting and very rarely do
any deleting. (We periodically clear out results that are over 6 months
old.)

On a give day, we will insert around 100,000 records in total.
(Currently split across all the client tables).

A challenging part of the process is that we have to keep track of
previous content that may be similar. We CAN'T do this with a unique
index (don't ask, it would take too long to explain, but trust me, it
isn't possible). So, we have to query the table first and then compare
the results of that query to what we are inserting. SO, we probably do
close to 1 million queries, but then only make about 100,000 inserts.
The basic flow is 1) our system finds something it likes, 2) query the
table to see if something similar already exists, 3) if nothing similar
exists, insert.

While all this is going on, our clients are accessing our online
reporting system. This system makes a variety of count and record
requests from the database.

As I mentioned in our earlier post, we are attempting to decide if
Postgres will run faster/better/ with one big table, or a bunch of
smaller ones. It really doesn't make much difference to us, we just
want whatever structure will be faster.

Thanks,

-N

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ryan VanderBijl 2003-01-30 19:00:42 Re: serialization errors
Previous Message Andrew Sullivan 2003-01-30 18:02:40 Re: One large v. many small

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff 2003-01-30 19:13:38 Re: One large v. many small
Previous Message Andrew Sullivan 2003-01-30 18:02:40 Re: One large v. many small