energine-cmf / energine

Energine is a content management system which allows to support web-applications (including websites) of any level of complexity. Energine is based on Energine CMF — a power full toolkit for web-application development using XML/XSLT transformations.
http://energine.org
MIT License
13 stars 3 forks source link

Optimization MYSQL tables on high load projects #46

Open wildex opened 10 years ago

wildex commented 10 years ago

If entity table have more, than N entires, we can archive old entities in "archive" tables. In main table should be only N top entires, that can be accessed by users. For example if there is more than 10 000 entires in apps_news table, older entries should be placed in appsnews{yyyy_mm_dd} table, same with its translations and uploads tables. (Если в таблице БД храниться большое количество записей, то имеет смысл создавать временную таблицу, где можно хранить старые записи. Например в основной таблице до 10 000 актуальных новостей, а остальные (более старые) - во временной таблице.)