One or more tables?

From: rokj <rjaklic(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: One or more tables?
Date: 2007-12-02 13:35:39
Message-ID: 96b6c649-9997-498f-b7ae-30248d2cba92@w34g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.

For an example let me say that I have a big (over 1 million) user
"base". Then every user does a lot of inserting/updating of data.
Would it be better to create different tables for insert/updating for
every user or would it be better just to have one big table with all
data (tables would have of course the same columns, ...). How do you
cope with this kind of things?

1.example (1 enormous table)
tablename (id, user_id, datetime, some_data)

2. example (a big number of tables)
tablename_user_id( id, datetime, some_data)

Thank you.

Kind regards,

Rok

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-12-02 13:56:27 Re: Cluster using tablespaces?
Previous Message Michelle Konzack 2007-12-02 13:02:46 Re: 1 cluster on several servers