|
Monday 04 April 2011 2:35:59 am
Comment67144
You are more than welcome to ask questions. About the table ezcontentobject_attribute:you can use contentclassattribute_id. It holds one value per class_attribute, so depending on your db configuration it can become pretty messy to split it in one-subtable per-value. The fast option would be to partition by range, so that you can create eg. one subtable for values 1-50, one for 51-100, etc... The 'optimal' option would be, I think, to partition by list, and give for every subtable the list of attributes that make up a single ez content class. A bit of a chore to do, but you can easily write a php script, or even faster, an ezp template, that loops over every class and gives as output the correct sql commands with the list of contentclassattribute_ids. (If you do the script, please share it!) About ezcontentobject_version: it's a pity that we do not have useful columns to partition by. If the site is multilingual, using language_mask would make sense. You could partition by version+status if your content gets edited a lot. A 'blind' range partitioning with 100k-to-1M rows per table can be done Whatever you do, please test any change you get in performances, when - viewing an object - creating an object - editing it
Principal Consultant International Business
Member of the Community Project Board
|