Author Topic: Another kind of SO question  (Read 80 times)

Walter Mitty

  • Trusted Member
  • Wise Sage
  • ******
  • Posts: 1025
    • View Profile
Another kind of SO question
« on: December 23, 2011, 04:51:03 am »
Here's a pointer to another database design question and response that comes up often in SO:

http://stackoverflow.com/questions/8609251/db-design-to-allow-user-to-define-products-product-specs-and-let-themself-inser

The first responder recommends E-A-V.  The prevailing wisdom among today's database experts is that E-A-V is really, really cool.  My own opinion is that E-A-V really, really sucks.  It's an argument that I know that I'm not going to win.  And it could just be a case where time has passed me by. 

In any event,  I've learned to just not answer this kind of question.  What I don't want to be is the kind of participant that takes the same punches over and over again.  I don't want to be a "Palooka".

http://www.politicsforum.org/images/flame_warriors/flame_46.php



Let me qualify my own opinion on this subject:  E-A-V can work out really, really well,  provided you never, ever, want to use data from different users integrated into a single coherent set of data.  When you try to integrate the data, you find that the fact that each user can essentially design his own schema means that this data is not coherent at all.  It's really a bunch of separate databases masquerading as a single one.

Perhaps my own opinion is biased by the fact that people like me get called in when some manager gets the bright idea to collect all that data in the database into a few simple management reports.  That's when E-A-V comes back to bite you.  And I had to  learn to qualify my own thinking:  I changed from "reports are easy" to "reports are easy, provided the data is coherent". 

"Coherent"  is one of those words that's "too philosophical" for many people in IT.



Slinky

  • Trusted Member
  • Guru
  • ******
  • Posts: 386
  • Gold Plated Slinky
    • View Profile
Re: Another kind of SO question
« Reply #1 on: December 27, 2011, 02:50:18 pm »
Ahhh, good ole E-A-Vs. My very first data mart was an EAV monstrosity of about 3 billion rows. Thankfully, it served one purpose, and one internal customer. The joins to get the data back out were horrible. Any query on that thing had a minimum of 6 self-joins. Lots of them got up to 12 joins.  :o

Walter Mitty

  • Trusted Member
  • Wise Sage
  • ******
  • Posts: 1025
    • View Profile
Re: Another kind of SO question
« Reply #2 on: December 27, 2011, 08:28:34 pm »
Thanks for your response.  I guess the basic question is "what are you going to do with the data?"


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf