From: | Jochen Erwied <jochen(at)pgsql-performance(dot)erwied(dot)eu> |
---|---|
To: | Fabio La Farcioli <fabio(dot)lafarcioli(at)molinoalimonti(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Number of tables |
Date: | 2009-08-20 07:49:12 |
Message-ID: | 1286032546.20090820094912@erwied.eu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Thursday, August 20, 2009, 9:01:30 AM you wrote:
> i am developing a web app for thousands users (1.000/2.000).
> Each user have a 2 table of work...I finally have 2.000 (users) x 2
> tables = 4.000 tables!
If all tables are created equal, I would rethink the design. Instead of
using 2 tables per user I'd use 2 tables with one column specifying the
user(-id).
Especially changes in table layout would require you to change up to 2000
tables, which is prone to errors...
--
Jochen Erwied | home: jochen(at)erwied(dot)eu +49-208-38800-18, FAX: -19
Sauerbruchstr. 17 | work: joe(at)mbs-software(dot)de +49-2151-7294-24, FAX: -50
D-45470 Muelheim | mobile: jochen(dot)erwied(at)vodafone(dot)de +49-173-5404164
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-08-20 08:15:47 | Re: Number of tables |
Previous Message | Fabio La Farcioli | 2009-08-20 07:01:30 | Number of tables |