Thanks for pointing out triggers!
So, ...a journal. (I hoped for a solution without it.) Actually, in one implementation, it's what I already use. Seems to be the easier method of computing things like a per-user "activity log".
My challenge with such a journal so far has been: what's the best (actually working/usable) way to interlock eav-table and journal-table? (Suggestions welcome) As one usually has to track who did what, which attributes (attr id) are involved, what was attr name (in case attr name is user changeable), what was value, what are the new values. So rollbacks actually work. But I'm babbling...
Probably that's why, apart from perfomance, many people hate EAV: for versioning, the traditional design offers the fuzzy feeling of having a rigid backlog of old version snapshots, ready to be unearthed at any time, diff'ed against any version... The table model is tempting. But then, there's the natural goodness of freely attributing stuff... I guess that's the ongoing struggle of NoSQL or things like BigTable where you can tweak and extend the column schema to the max. Arg! After babbling, now I'm even going into musing... anyway.
Thank you, Corion!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.