From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Pierre Thibault <pierre(dot)thibault1(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Dynamic data model, locks and performance |
Date: | 2010-07-29 04:11:31 |
Message-ID: | 4C50FF73.8050002@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 29/07/10 11:15, Pierre Thibault wrote:
> What I would like to do is enable users to create their own data model.
Then, really, SQL databases aren't wonderful for your needs. You can use
them for dynamic, user-defined schema, but you'll always be swimming up
hill.
> I thought about using a table where each row would represents a field in
> the dynamic model. The row would contain a fields for each possible data
> type supported but only one of them would be used.
Google "EAV"
This has known problems. It works, but it's kind of like bolting floats
onto a car and trying to use it as a boat. Not very nice.
Really, I'd be researching dynamic schema databases, object stores,
key/value set stores, etc. Such things are outside my personal
experience, though, and I can't really advise you much on technologies.
Beware of the latest No-SQL fad platforms, though; you might land up
being better off with something older and more stable even if it's less
fashionable than CouchDB or whatever is currently "in" today.
--
Craig Ringer
Tech-related writing: http://soapyfrogs.blogspot.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan Sergio Borgonovo | 2010-07-29 05:04:08 | Re: Which CMS/Ecommerce/Shopping cart ? |
Previous Message | raf | 2010-07-29 03:30:15 | Re: postgres-8.4SS, pg_dump from macosx-10.6 has "ssl handshake error" 26% in |