[Koha-bugs] [Bug 36033] Table pseudonymized_transactions needs more indexes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Feb 10 22:54:01 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36033
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #4 from David Nind <david at davidnind.com> ---
Results of the query before and after the patch is applied
==========================================================
Before:
+------+-------------+----------------------------+--------+---------------+---------+---------+----------------------------------------------------+------+-------------+
| id | select_type | table | type | possible_keys |
key | key_len | ref | rows |
Extra |
+------+-------------+----------------------------+--------+---------------+---------+---------+----------------------------------------------------+------+-------------+
| 1 | SIMPLE | pseudonymized_transactions | ALL | NULL |
NULL | NULL | NULL | 1 |
Using where |
| 1 | SIMPLE | items | eq_ref | PRIMARY |
PRIMARY | 4 | koha_kohadev.pseudonymized_transactions.itemnumber | 1 |
|
+------+-------------+----------------------------+--------+---------------+---------+---------+----------------------------------------------------+------+-------------+
After:
+------+-------------+----------------------------+--------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+---------+----------------------------------------------------+------+------------------------------------+
| id | select_type | table | type | possible_keys
| key | key_len | ref
| rows | Extra |
+------+-------------+----------------------------+--------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+---------+----------------------------------------------------+------+------------------------------------+
| 1 | SIMPLE | pseudonymized_transactions | ref |
pseudonymized_transactions_items_ibfk_4,pseudonymized_transactions_ibfk_5,pseudonymized_transactions_ibfk_6
| pseudonymized_transactions_ibfk_5 | 67 | const
| 1 | Using index condition; Using where |
| 1 | SIMPLE | items | eq_ref | PRIMARY
| PRIMARY | 4 |
koha_kohadev.pseudonymized_transactions.itemnumber | 1 |
|
+------+-------------+----------------------------+--------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+---------+----------------------------------------------------+------+------------------------------------+
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list