2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Database optimisation when downloading metadata

This commit is contained in:
Adam Zammit
2018-01-04 11:07:57 +11:00
parent 3d5f3b6ce6
commit 0f552f88b0
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
ALTER TABLE `sample_var` ADD INDEX ( `var_id` );
queXS 1.15.10 - Changes since 1.15.9 queXS 1.15.10 - Changes since 1.15.9
Fixes some bugs including optimising the questionnaire outcome page queries. Translations have also been updated (Thank you!) Fixes some bugs including optimising the questionnaire outcome page queries. Translations have also been updated (Thank you!)

View File

@@ -1499,7 +1499,8 @@ CREATE TABLE `sample_var` (
`var_id` bigint(20) unsigned NOT NULL, `var_id` bigint(20) unsigned NOT NULL,
`val` varchar(256) COLLATE utf8_unicode_ci NOT NULL, `val` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`sample_id`,`var_id`), PRIMARY KEY (`sample_id`,`var_id`),
KEY `sample_id` (`sample_id`) KEY `sample_id` (`sample_id`),
KEY `var_id` (`var_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- -------------------------------------------------------- -- --------------------------------------------------------