koha-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-bugs] [Bug 1980] New: C4::Search::SimpleSearch returns all matchin


From: bugzilla-daemon
Subject: [Koha-bugs] [Bug 1980] New: C4::Search::SimpleSearch returns all matching results and has no way to limit
Date: Tue, 25 Mar 2008 16:31:12 -0700 (PDT)

http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1980

           Summary: C4::Search::SimpleSearch returns all matching results
                    and has no way to limit
           Product: Koha
           Version: rel_3_0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Searching
        AssignedTo: address@hidden
        ReportedBy: address@hidden
         QAContact: address@hidden


Josh pointed out:


I just discovered that SimpleSearch attempts to retrieve all of the MARC
records
for every hit it finds, instead of just the hits that it plans to
display. This can easily
take down your server ... say you have 31 Gigs of MARC data, and 2
Gigs of RAM (which
is the case with my kohavm76 machine that I've been doing demos on).
If you attempt
to do a search that retrieves even a small subset of the 31 gigs of
data, your RAM will
get eaten pretty quickly ... now multiply that by 10-15 users and
you've got a real
problem.
...
Anyway, either SimpleSearch needs to be completely re-written to know about an
offset (reference buildQuery and getRecords for a comprehensive example) so
that
it only returns the set of MARC records it intends to display to the user; or
we
need to replace the use of SimpleSearch with the buildQuery and
getRecord routines
and clean up all the search API in line with what's done in
catalogue/search.pl.


I'm working on a fix for this.




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]