I'm using code similar to the "get MARC record by ISBN" example in
MARC::Doc::Tutorial, and everything is working fine.

However, when I change the query to search by Author, rather than by
ISBN, (using @attr 1=1003 $name), I've noticed that looping through the
results gets dramatically slower as the number of results increases.

The first 18 results come back pretty much instantly. But after that
each successive record takes about 2 seconds to fetch. For an author
with a lot of books, I've seen it take about 4-5 seconds to fetch each
of the later records.

I've done some searching through various docs, but I'm a little lost.
I can't work out if there's some way to fetch everything back in one shot
and use MARC::Batch to loop through, or whether there are some options
I'm meant to set in Z3950 (there are some reference in the zoom docs to
small result sets vs medium result sets etc., but I can't really figure
out what to do with these).

Any pointers gratefully received.

Thanks,

Tony

Reply via email to