News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Arnold Daniels' Blog:
An alternative way of EAV modeling
July 31, 2008 @ 12:54:23

Arnold Daniels has posted some thoughts on a topics recently featured in a cover story by php|architect - EAV modeling.

I had seen this db structure in other project, but didn't know that it was called EAV. For those who don't read php|architect, EAV describes a method of saving a large set of attributes, only some of which apply to an individual entity. Normally you would create a table, with a row for each entity and save each attribute in a column. With EAV you save each attribute as a row.

He suggests two ways to do the modeling - the more "common" way and an alternative way that splits up the data types to make querying simpler (into scalars and arrays). A sample database structure and example query for it are included.

0 comments voice your opinion now!
eav modeling database attribute query common alternative method



Similar Posts

WebRefernece: Script GUI for PHP

DevShed: Using Method Call Overloading in PHP 4

Chris Hartjes' Blog: Custom CakePHP 1.2 Pagination Queries

Dave Marshall's Blog: Log memory usage using declare and ticks in PHP

Nick Halstead's Blog: How to make AuctionAd$ dynamic with PHP


Community Events









Don't see your event here?
Let us know!


package conference mysql zendframework cakephp zend release framework releases application database security code job developer PHP5 book ajax PEAR example

All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework