Featured Post
Entity Attribute Value Model
- Get link
- X
- Other Apps
By
Rishoo Mittal
-
EAV (Entity-Attribute Value) Model
It is a
data model to describe entities where number of attributes for the entities
could be very large in amount.
EAV
helps us to overcome the limitations of conventional database model.
Ex: Organization
‘ABC’ defines the entity ‘Address’ as:
Organization
‘ABC’: Address
|
||||
Line1
|
Line2
|
State
|
Country
|
Zip
|
Organization
‘XYZ’: Address
|
|||||||
Line1
|
Line2
|
Line3
|
City
|
State
|
Country
|
Zip
|
Phone
|
A
conventional database table design (one fact per column or set of facts per
row) is unsuitable for such type of data, because of:
·
the
need to continually add new tables or columns whenever new facts need
incorporation
·
database
vendor limitations on the number of columns per table
Therefore
to deal with the dynamic nature of the data we make use of EAV model.
The
Dynamic Data refers to the data whose structure doesn’t remains constant and
keeps changing from organization to organization.
Understanding EAV model
In
this one each row stores the single fact about an entity. Whereas, in
conventional model a row consist of each column per attribute and each column
consist of a fact which means a set of facts in a row.
Model
comprises of two main parts:
EAV metadata
It
stores data about data. The structure of any data entity is stored in metadata.
The metadata changes as a modification is made in the data entity.
EAV data
It
is the data in the entities. It makes use of the metadata to relate
different attributes of an entity. An EAV table constitutes of an entity, the
attribute and the associated value of that attribute. Conceptually it’s a table
with three columns.
Benefits of EAV
representation:
·
Flexibility:
No limits on number of attributes per entity. Hence, make the table or entity
generic.
·
Space-efficient:
Need not reserve space for attributes whose values are null.
Modeling dynamic data
using EAV model
Ex:
Ex:
EAV metadata tables
Entity types tables:
Entity_id
|
Name
of Entity
|
Description
|
Label
|
TreeDepth
|
101
|
Investigator
|
Profile
of Investigator
|
Null
|
0
|
102
|
Profile
|
Profile
|
Null
|
1
|
105
|
Profile
Details
|
Profile
Details
|
Null
|
2
|
Entity_Type_id
|
Name
of Entity
|
Description
|
Label
|
TreeDepth
|
1
|
String
|
String
Entity
|
Null
|
|
2
|
Date
|
Date
Entity
|
Null
|
|
3
|
Number
|
Number
Entity
|
Null
|
|
4
|
Boolean
|
Boolean
Entity
|
Null
|
|
5
|
List
of Values
|
Select
Single value from a List
|
Null
|
|
6
|
Multi-Select
|
Select
Multiple Value from a list
|
Null
|
Attribute table:
Attribute_id
|
Name
of Attribute
|
Parent_id
|
Entity_Type_id
|
4
|
First
Name
|
102
|
1
|
5
|
Prefix
|
102
|
5
|
EAV Data Tables (String_attribute)
Entity_id
|
Attribute_id
|
Value
|
102
|
4
|
Rishoo
|
102
|
5
|
Er.
|
Other Related Links:
EAV(Entity-Attribute Value) Model
EAV versus Row modeling
Downsides of EAV data model over class row model
Opting classic row modeling or EAV data modeling?
Related Posts
Opting classic row modeling or EAV data modeling?
By
Rishoo Mittal
-
Few of the circumstances are listed below where EAV scores over conventional tables: · The data type of individual attributes varies. Like in above example EAV is used because the requirements vary from client to client like some may want an extra address like added to existing address format. · The categories of data are numerous, growing or fluctuating, but the number of instances (records/rows) within each category is very small. Here, with conventional modeling, the database’s Entity-Relationship Diagram might have hundreds of tables: the tables that contain thousands/ millions of rows/instances are emphasized visually to the same extent as those with very few rows. The latter are candidates for conversion to an EAV representation. Other Related Links: EAV(Entity-Attribute Value) Model EAV versus Row modeling Downsides of EAV data model over class row model Optin...
Motorola Sues Microsoft over 16 patents...
By
Rishoo Mittal
-
As if there weren't already enough patent suits related to smartphone technologies, Motorola just announced its widely anticipated countersuit against Microsoft. Its subsidiary Motorola Mobility filed complaints with two US District Courts (Southern District of Florida and Western District of Wisconsin). Motorola already litigates with Apple in those and other courts. According to Motorola, the patents relate to technologies in the fields of operating systems, video codecs, email, instant messaging, object-oriented software architectures, WiFi, and graphical passwords. Motorola claims Windows, the Live messenger, Windows Phone, Outlook and other Microsoft products infringe. Motorola's action is no surprise given that all of the companies sued over patent infringement by Android — with the exception of Google — have already countersued.
Dell Stops selling Ubuntu powered PCs Online
By
Rishoo Mittal
-
Dell has stopped selling consumer PCs preloaded with Ubuntu from its website, and doesn't know when they're coming back. A search for Ubuntu on the Dell UK website returns only one laptop — the Dell Latitude 2100 from the company's business range. Dell insists that it's continuing to sell Ubuntu systems, but only over the phone, and has no idea when — or even if — the Ubuntu PCs will return online. 'We've recently made an effort to simplify our offerings online, by focusing on our most popular bundles and configuration options, based on customer feedback for reduced complexity and a simple, easy purchase experience,' Dell told PC Pro. 'We're also making some changes to our Ubuntu pages, and as a result, they are currently available through our phone-based sales only.' The move comes after Dell put a page on its website advising customers only to go for Ubuntu if they were interested in open-source programming.
EAV versus Row modeling
By
Rishoo Mittal
-
Following are main features/downsides EAV has over classic row modeling technique. A row-modeled table is homogeneous. I t will always carry same type of data in contrast to EAV modeled table where this cannot be an issue. The data type of the value column/s in a row-modeled table is pre-determined by the nature of the facts it records. In contrast, in an EAV table, the conceptual data type of a value in a particular row depends on the attribute in that row. A Row modeling technique data increase only in one direction i.e. from Upside-down whereas in EAV data model data increase in both directions i.e. from upside down as well as from left-right. Other Related Links: EAV(Entity-Attribute Value) Model EAV versus Row modeling Downsides of EAV data model over class row model Opting classic row modeling or EAV data modeling?
Is 'Quadroid' the New 'Wintel'?
By
Rishoo Mittal
-
Wintel' is the term that for years defined Windows-based computers running Intel chips. Now a similar expression is emerging for smartphones: 'Quadroid,' a term that refers to the Qualcomm chips used inside smartphones running the Android mobile operating system. The term, recently coined in a report by the PRTM consultancy, could catch on, largely because Qualcomm provides 77% of the chips in phones running Google's Android, which is expected to take the No. 2 slot in 2010. And the Quadroid alliance is expected to grow. Like Wintel has for PCs, Quadroid could push down profit margins for smartphone manufacturers, some analysts say. That might seem like a good thing to consumers, but may not be so good for many phone makers.
Comments
Post a Comment
Let's discuss and learn more