ramainen/doit-cms — Issue #74: Оптимизация ненужных полных запросов в ORM
Author: ramainen
Created: 2011-10-26 19:07:34+00:00
State: open

SELECT * FROM `pages` WHERE `url` = 'С„С‹РІ'
SELECT * FROM `options`
SHOW COLUMNS FROM `options`
SHOW COLUMNS FROM `menu`
SELECT * FROM `options` WHERE `url` = 'menu'
SELECT * FROM `options` WHERE option_id = '1'
SELECT * FROM `options`
SHOW COLUMNS FROM `index`
SELECT * FROM `options`
SELECT * FROM `options` WHERE `url` = 'index'

Тут три запроса на получение всех данных.