https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36569

Fridolin Somers <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #7 from Fridolin Somers <[email protected]> ---
Maybe not change charset nor collate, changing columns type looks like a good
enough optimization.

> CREATE INDEX IF NOT EXISTS module_action_idx ON action_logs(module, action);

This is indeed missing from database atomic update.

But looks like having already indexes on module and action is already optimal
for queries :

MariaDB [koha]> explain select * from action_logs where module='MEMBERS' and
action='CREATE';
+------+-------------+-------------+------+-----------------------+------------+---------+-------+-------+-------------+
| id   | select_type | table       | type | possible_keys         | key       
| key_len | ref   | rows  | Extra       |
+------+-------------+-------------+------+-----------------------+------------+---------+-------+-------+-------------+
|    1 | SIMPLE      | action_logs | ref  | module_idx,action_idx | action_idx
| 767     | const | 20348 | Using where |
+------+-------------+-------------+------+-----------------------+------------+---------+-------+-------+-------------+

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to