Questions tagged [eav]
Entity-Attribute-Value. A data model with a potentially big number of attributes of which only few apply to a single entity.
18
questions
74
votes
5
answers
14k
views
Is there a name for this database schema of key values?
We process a routine data feed from a client who just refactored their database from a form that seems familiar (one row per entity, one column per attribute) to one that seems unfamiliar to me (one ...
6
votes
1
answer
1k
views
Design for scientific data. Data table with hundreds of columns or data table with a generic value column and hundreds of rows (EAV)?
I am trying to improve the data storage in biomedical science lab where I recently started working. The existing workflow is atrocious, involving many differently formatted Excel sheets that all get ...
1
vote
1
answer
811
views
To EAV or not to EAV?
I am working on an application which records data from different forms. New forms can (and will be) constructed dynamically by an admin. I am wondering what would be the correct way to save this data ...
6
votes
2
answers
3k
views
Which is better for long term database scalability: adding columns or having key/value store
For application, which has few (5-10) settings at the moment but will have a lot more (up to 100) in the future which would be better approach:
to add new columns to settings table every time new ...
15
votes
4
answers
11k
views
Proper way to store a value that could be multiple different types
I have an Answers table and a Questions table.
The Answers table has a value, but depending on the question, this value could be a bit, nvarchar, or number (so far). The Question has a notion of what ...
11
votes
3
answers
21k
views
Inventory database structure when inventory items have varying attributes
I'm building an inventory database to store enterprise hardware information. The devices the database keeps track of range from workstations, laptops, switches, routers, mobile phones, etc. I'm using ...
1
vote
5
answers
1k
views
Should I have a column for every data type or 1 column that stores everything
I have a database table that currently looks like this:
PageField
-Id (Int, PK)
-FieldType (String) Can be Text, Decimal, Integer or Bit
-Value (This stores the value regardless of the FieldType, so ...
1
vote
1
answer
284
views
Disadvantage of Changing database schema - Insert or delete new columns/tables in middle
As a read in lot of links , for e-commerce shopping sites, as it may require to add lot of attributes in regular basis, is it okay if we go with Flat tables ?
Whats the disadvantage of changing ...
18
votes
3
answers
72k
views
Schema design for products with multiple variants/attributes?
I'm using MySQL. The idea is similar to shopify with a different concept, so users are going to add their own products with multiple types of variants and attributes.
From all the research I've done ...
13
votes
2
answers
10k
views
Alternative to EAV for dynamic fields in a star schema data warehouse
I need to support dynamic fields and values in a big datawarehouse for storing API requests log, my user case is that I need to store all API requests query string and able to perform query against ...
7
votes
2
answers
9k
views
Efficient query for an advanced EAV model
I'm kind of stuck on how to build an effecient query which returns the data of the following EAV structure.
Today, a product table already exists, containing 4 fixed fields. We want to upgrade the ...
6
votes
1
answer
462
views
Why is an additional filtered statistic being ignored (EAV schema)?
I'm trying to improve a row estimate for this sub-query (of a larger query). The estimate is showing 1266 rows. The actual is 117k rows. This particular property (EAV schema) only has two values ...
5
votes
2
answers
1k
views
Solutions for reporting off of an EAV structured database?
Existing setup SQL Server 2005 with standard EAV table that users want to slice and dice with a BI tool (Cognos).
Is there any hope that we can transform this data into a format that we can report ...
3
votes
1
answer
318
views
What's the best way to store and search through many product specifications
Let's say I have a lot of products and all of those products have a lot of specifications. These specifications can change at any time (e.g. "colour" could suddenly be available for new products) and ...
1
vote
1
answer
2k
views
How should I handle Products with different attributes in my database structure?
We have an e-commerce site (web application) built with PHP.
There are different types of products like mobiles, tshirts, watches, books.
A mobile can have attributes like, for example, ram, model ...
0
votes
1
answer
257
views
EAV table question
What's the best design for taxonomies in EAV tables?
taxonomy
id autoincrement
name unique
terms
id autoincrement
tax_id references taxonomy(id)
name text unique
value text
...
0
votes
1
answer
53
views
pulling multiple entries from a match of two tables
I have two tables, attributes and attributes_entries
attributes hold the title and attribute_entries hold the value of that title.
if I do:
SELECT attribute_entries.title AS ent_title,
...
0
votes
1
answer
79
views
How to find an entry from filtering with two associated tables
This questions has spinned off of another question I probably did not ask correctly from the get go.
I have some tables, where attributes and attributes_entries that hold a pair of dynamic values for ...