pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Riess <mlriess@gmx.de>
To: pgsql-performance@postgresql.org
Subject: Re: 15,000 tables
Date: Thu, 01 Dec 2005 17:28:44 +0100
Message-ID: <dmn8bs$254u$1@news.hub.org> (raw)
In-Reply-To: <11360.1133453022@sss.pgh.pa.us>
References: <dmmujf$2rgd$1@news.hub.org>
	<11360.1133453022@sss.pgh.pa.us>

Hi Tom,

> Michael Riess <mlriess@gmx.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.

Been there, done that. (see below)

> 
> (If you really have 15000 distinct rowtypes, I'd like to know what
> your database design is...)

Sorry, I should have included that info in the initial post. You're 
right in that most of these tables have a similar structure. But they 
are independent and can be customized by the users.

Think of it this way: On the server there are 500 applications, and each 
has 30 tables. One of these might be a table which contains the products 
of a webshop, another contains news items which are displayed on the 
website etc. etc..

The problem is that the customers can freely change the tables ... add 
columns, remove columns, change column types etc.. So I cannot use 
system wide tables with a key column.


Mike



view thread (32+ messages)  latest in thread

Message-ID: <dmn8bs$254u$1@news.hub.org>
Permalink:  ../dmn8bs$254u$1@news.hub.org/
Also on:    postgresql.org/message-id/dmn8bs$254u$1@news.hub.org

 · 

reply

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: mlriess@gmx.de
  Subject: Re: 15,000 tables
  In-Reply-To: <dmn8bs$254u$1@news.hub.org>

* 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