Bug 3445: add more indexes on the action_logs table
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Tue, 19 Nov 2013 10:21:13 +0000 (11:21 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 21:12:04 +0000 (21:12 +0000)
commit6f728fb05062fc549a635a82970f7dc10f0f9748
tree1c75d0378f6806c4ba401a32a4332aa055595a50
parent54a17d97dcdcf31e9d4228c89473c82373e48e68
Bug 3445: add more indexes on the action_logs table

This patch adds database indexes for action_logs table to speed up the
"log viewer" page.

Removes the existing index on timestamp+user to add an index on each
column since search colums are separately defined in log viewer form.

Test plan:
- Update database
- Play with log viewer : /cgi-bin/koha/tools/viewlog.pl
- Perform searches with only one filter defined
- Also check you see indexes with SQL query :
    SHOW CREATE TABLE action_logs

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Rephrased the updatedatabase message a bit:
Add indexes to action_logs table
Passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl