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

Mark Hofstetter <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Needs Signoff

--- Comment #16 from Mark Hofstetter <[email protected]> ---
just tested it again with both mariadb and mysql and it "works for me" (tm)

please consider that sometimes statements appear to run longer but in reality
the execution time is far less

please try again with the statment provided by kyle 

SELECT
    b.biblionumber,
    b.title,
    bi.publicationyear,
    it.description AS itemtype_desc,
    m.tagfield,
    m.tagsubfield,

    (SELECT COUNT(*) FROM items i2
     JOIN biblioitems bi2 ON i2.biblioitemnumber = bi2.biblioitemnumber
     WHERE bi2.biblionumber = b.biblionumber) AS item_count,

    (SELECT COUNT(*) FROM marc_subfield_structure m2
     WHERE m2.frameworkcode = b.frameworkcode
       AND m2.liblibrarian LIKE '%title%') AS title_related_tags,

    (SELECT COUNT(*) FROM biblio b3
     WHERE b3.title LIKE CONCAT('%', b.title, '%')) AS fuzzy_title_overlap

FROM biblio b
JOIN biblioitems bi ON b.biblionumber = bi.biblionumber
JOIN marc_subfield_structure m
     ON m.frameworkcode = b.frameworkcode
CROSS JOIN itemtypes it   /* intentional explosion */
WHERE m.liblibrarian LIKE '%a%'   /* force full scans */
ORDER BY b.biblionumber, m.tagfield, m.tagsubfield

and/or use very short (0.001) time settings

-- 
You are receiving this mail because:
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