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

--- Comment #4 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 203792
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203792&action=edit
Bug 42585: Add analyzer infrastructure

Librarians write saved SQL reports that pull all of items, sort the
whole borrowers table, or buffer millions of rows into the Plack
worker. There's no warning. They click Run, the database or the app
server falls over, and the report never finishes.

This patch adds the runner, the analysis context, the check base
class and the registry every check will hang off, along with the
placeholder, EXPLAIN and server statistics helpers. No checks are
registered yet, they come in the following patches.

Test Plan:
1) Apply this patch
2) prove t/Koha/Reports/Analyzer/ t/db_dependent/Koha/Reports/Analyzer/
3) In a koha-shell, run:
   perl -MKoha::Reports::Analyzer=analyze -MData::Dumper -e \
     'print Dumper analyze({ sql => "SELECT 1" })'
4) Note the empty findings list, the runner works but no checks are
   registered yet!

-- 
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/

Reply via email to