Skip to content

Commit

Permalink
these indexes spead up admin page loading
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Sep 14, 2023
1 parent 7b40abb commit 1fde736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions schema/2_1-2_1_1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@

INSERT INTO profile_option_dict (name, description,type,flag) VALUES
('device-specific:geteduroam','show the dedicated geteduroam download page for this device','boolean',NULL);
ALTER TABLE downloads ADD KEY profile_id (profile_id);
ALTER TABLE downloads ADD KEY device_id (device_id);
4 changes: 3 additions & 1 deletion schema/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ CREATE TABLE `downloads` (
`mime` varchar(50) DEFAULT NULL,
`eap_type` int(4),
`openroaming` int(1),
UNIQUE KEY `profile_device_lang` (`device_id`,`profile_id`,`lang`, `openroaming`)
UNIQUE KEY `profile_device_lang` (`device_id`,`profile_id`,`lang`, `openroaming`),
KEY `device_id` (`device_id`),
KEY `profile_id` (`profile_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `user_options` (
Expand Down

0 comments on commit 1fde736

Please sign in to comment.