entity-attribute-value

Entity Attribute Value Database vs. strict Relational Model Ecommerce

一笑奈何 提交于 2019-11-25 23:07:37
问题 It is safe to say that the EAV/CR database model is bad. That said, Question: What database model, technique, or pattern should be used to deal with \"classes\" of attributes describing e-commerce products which can be changed at run time? In a good E-commerce database, you will store classes of options (like TV resolution then have a resolution for each TV, but the next product may not be a TV and not have \"TV resolution\"). How do you store them, search efficiently, and allow your users to

How to pivot a MySQL entity-attribute-value schema

僤鯓⒐⒋嵵緔 提交于 2019-11-25 19:02:24
I need to design tables which stores all the metadata of files (i.e., file name, author, title, date created), and custom metadata (which has been added to files by users, e.g. CustUseBy, CustSendBy). The number of custom metadata fields cannot be set beforehand. Indeed, the only way of determining what and how many custom tags have been added on files is to examine what exists in the tables. To store this, I have created a base table (having all common metadata of files), an Attributes table (holding additional, optional attributes that may be set on files) and a FileAttributes table (which