https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43208
--- Comment #1 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 202852 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202852&action=edit Bug 43208: Use MySQL-compatible timestamps in log viewer filters The log viewer sends date filters as ISO 8601 timestamps (2026-07-31T00:00:00Z) via the q parameter. These values bypass the datetime conversion in attributes_from_api because they are nested inside DBIC operator keys (-and) which are not found in columns_info. MySQL cannot use the index on the timestamp column when comparing against the "T" separator format, causing full table scans on large action_logs tables. This patch formats the timestamps as "YYYY-MM-DD HH:MM:SS" which MySQL handles natively, allowing proper index usage. Test plan: 1. Apply patch 2. Have a site with many rows in action_logs (100k+) 3. Go to Tools -> Log viewer 4. Select a module (e.g. CRONJOBS), set a date range, search => SUCCESS: Results return in seconds, not minutes 5. Open browser dev tools, Network tab, verify the q parameter uses space-separated datetimes (not T/Z) 6. Sign off :-D Signed-off-by: Tomás Cohen Arazi <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
