Permalink
Browse files

Update SQL indexes creation command

AFAK, route_alias became page_alias.

cf. 'Page' model definition, [commit b1521d7](sonata-project@b1521d7)
  • Loading branch information...
1 parent 480e286 commit 2a613552ae597202b0fe07ed31bbba2570418a9c @ronanguilloux committed Mar 5, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Resources/doc/reference/performance.rst
@@ -12,10 +12,10 @@ length requirement. So if you want to speed up queries you need to manually add
.. code-block:: sql
ALTER TABLE `page__snapshot` ADD INDEX `idx_snapshot_route_name` (`route_name` (32), `site_id`);
- ALTER TABLE `page__snapshot` ADD INDEX `idx_snapshot_route_alias` (`route_alias` (32), `site_id`);
+ ALTER TABLE `page__snapshot` ADD INDEX `idx_snapshot_page_alias` (`page_alias` (32), `site_id`);
ALTER TABLE `page__snapshot` ADD INDEX `idx_snapshot_url` (`url` (32), `site_id`);
ALTER TABLE `page__page` ADD INDEX `idx_page_route_name` (`route_name` (32), `site_id`);
- ALTER TABLE `page__page` ADD INDEX `idx_page_route_alias` (`route_alias` (32), `site_id`);
+ ALTER TABLE `page__page` ADD INDEX `idx_page_page_alias` (`page_alias` (32), `site_id`);
ALTER TABLE `page__page` ADD INDEX `idx_page_url` (`url` (32), `site_id`);
Snapshots

0 comments on commit 2a61355

Please sign in to comment.