layout question

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: layout question
Date: 2010-06-12 20:56:34
Message-ID: 20100612225634.522780cc@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi list,

I must build a kind of ERP and I wonder what's the best DB layout,
especially about quotations/orders/delivery orders/invoices/RMAs/credit
notes.

It must be very scalable (say from 10 invoice a day to 2,000 or even more.)

As these docs' structures are very close, what is the best:
to have one table per kind of doc and to copy info from one to another,
or to have only one table with a flag telling the doc's type and external
sequences to keep numbering coherent? (also means the docs' lines table
will be pretty huge.)

JY
--
The San Diego Freeway. Official Parking Lot of the 1984 Olympics!

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mladen Gogala 2010-06-13 08:54:22 Global temporary tables surprise
Previous Message machielr 2010-06-10 09:28:12 PGPOOL2