From: | Kent Dorfman <kent(dot)dorfman766(at)gmail(dot)com> |
---|---|
To: | Lok P <loknath(dot)73(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Design strategy for table with many attributes |
Date: | 2024-07-04 20:35:30 |
Message-ID: | 322e1d7a-7c86-a3e4-4c01-7aaa9b053255@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 7/4/24 15:37, Lok P wrote:
> Or say, what is the maximum number of columns per table we should
> restrict? Should we break the single transaction into multiple tables
> like one main table and other addenda tables with the same primary key
> to join and fetch the results wherever necessary?
900 columns makes my head hurt badly...
The neophyte will design a table with a separate field for each type of
phone number that may be encountered. The experienced designer will
move all phone numbers to its own table, where each entry/row contains a
reference link, a "number_type" field, and a field with the actual
number in it...Three fields in a table that is manageable and can be
queried/modified without stressing the database server.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2024-07-04 20:50:23 | Re: Design strategy for table with many attributes |
Previous Message | Adrian Klaver | 2024-07-04 20:06:45 | Re: Configure autovacuum |