Re: 15,000 tables

From: Alex Stapleton <alexs(at)advfn(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Riess <mlriess(at)gmx(dot)de>, pgsql-performance(at)postgresql(dot)org
Subject: Re: 15,000 tables
Date: 2005-12-02 14:16:24
Message-ID: 57292C7A-8300-4CD4-BF1E-62190D36A549@advfn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda pgsql-performance


On 1 Dec 2005, at 16:03, Tom Lane wrote:

> Michael Riess <mlriess(at)gmx(dot)de> writes:
>> (We NEED that many tables, please don't recommend to reduce them)
>
> No, you don't. Add an additional key column to fold together
> different
> tables of the same structure. This will be much more efficient than
> managing that key at the filesystem level, which is what you're
> effectively doing now.
>
> (If you really have 15000 distinct rowtypes, I'd like to know what
> your database design is...)
>

Won't you end up with awful seek times if you just want data which
previously been stored in a single table? E.g. whilst before you
wanted 1000 contiguous rows from the table, now you want 1000 rows
which now have 1000 rows you don't care about in between each one you
do want.

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2005-12-02 14:17:11 Re: Seguridad en tablas
Previous Message Jaime Casanova 2005-12-02 14:16:08 Re: Seguridad en tablas

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Stapleton 2005-12-02 14:20:41 Re: 15,000 tables
Previous Message Teracat 2005-12-02 13:05:26 Network permormance under windows