From: | Віталій Тимчишин <tivv00(at)gmail(dot)com> |
---|---|
To: | Andreas Hartmann <andreas(at)apache(dot)org> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Modeling a table with arbitrary columns |
Date: | 2009-10-30 10:18:26 |
Message-ID: | 331e40660910300318q1ad33d1bifa0fbe730f38c0c7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
2009/10/29 Andreas Hartmann <andreas(at)apache(dot)org>
> Hi everyone,
>
> I want to model the following scenario for an online marketing application:
>
> Users can create mailings. The list of recipients can be uploaded as
> spreadsheets with arbitrary columns (each row is a recipient). I expect the
> following maximum quantities the DB will contain:
>
> I see basically two approaches to store the recipients:
>
> A) A single table with a fixed number of generic columns. If the
> spreadsheet has less columns than the table, the values will be null.
>
> B) Two tables, one for the recipients and one for the values:
>
One more option is to use arrays (and single table).
From | Date | Subject | |
---|---|---|---|
Next Message | Grzegorz Jaśkiewicz | 2009-10-30 12:35:18 | Re: sub-select in IN clause results in sequential scan |
Previous Message | Greg Smith | 2009-10-30 01:39:26 | Re: AMD, Intel and RAID controllers |