Skip to content
Permalink
Browse files

Add indexes to db_acl.sql in skel directory.

Copy changes in app/Config/Schema into the skel directory.

Refs #4052
  • Loading branch information...
markstory committed Jul 22, 2014
1 parent b129ce5 commit 9b8e6403fde46f20b6b5cf943e85c733ac3d0f93
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/Cake/Console/Templates/skel/Config/Schema/db_acl.sql
@@ -38,4 +38,16 @@ CREATE TABLE aros (
lft INTEGER(10) DEFAULT NULL,
rght INTEGER(10) DEFAULT NULL,
PRIMARY KEY (id)
);
);

/* this indexes will improve acl perfomance */
CREATE INDEX idx_acos_lft_rght ON `acos` (`lft`, `rght`);

CREATE INDEX idx_acos_alias ON `acos` (`alias`);

h
CREATE INDEX idx_aros_lft_rght ON `aros` (`lft`, `rght`);

CREATE INDEX idx_aros_alias ON `aros` (`alias`);

CREATE INDEX idx_aco_id ON `aros_acos` (`aco_id`);

0 comments on commit 9b8e640

Please sign in to comment.
You can’t perform that action at this time.