storage of arbitrary attributes and their names
- From: thuktun@xxxxxxxxx
- Date: 6 Jul 2006 09:40:42 -0700
(I've done a bit of research on the web to try to track down an answer
to this, but I have not managed to find anything conclusive on the
subject. Perhaps I'm not selecting the right search terms.)
For the system my development shop is currently working on, one of the
database entities can have arbitrary, customer-specified name/value
pairs. We didn't want to encode these directly into the database
schema, so we were looking to use a table to store the name/value
pairs.
For a particular customer, though, a particular name might appear a
large number of times, perhaps many millions depending on the size of
the customer. As such, we're concerned there might be a bit of
unnecessary duplication going on in the database and wondered if it
made sense to have a separate table to store the names and refer to
them by foreign key in the attribute table.
However, we're also concerned that name table might become a bottleneck
as viewing code was constantly joining against the table to lookup the
information and insertion code queried and possibly updated the table
to ensure names were present.
Does anyone know what the time/space tradeoffs for this are with SQL
Server? Are there specific settings that would optimize either
approach?
.
- Follow-Ups:
- Re: storage of arbitrary attributes and their names
- From: Mike C#
- Re: storage of arbitrary attributes and their names
- Prev by Date: Database corrupt or Database file corrupt
- Next by Date: need suggestions for data model
- Previous by thread: Database corrupt or Database file corrupt
- Next by thread: Re: storage of arbitrary attributes and their names
- Index(es):
Relevant Pages
|