[Koha-bugs] [Bug 8437] Large database backups and large exports from export.pl fail under plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 22 04:42:25 CEST 2020


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

--- Comment #35 from David Cook <dcook at prosentient.com.au> ---
One alternative could be to use
https://metacpan.org/pod/Plack::App::CGIBin::Streaming. 

Another would be a custom handler using CGI::Emulate::PSGI::Streaming:
cpan2deb CGI::Emulate::PSGI::Streaming
apt install ./libcgi-emulate-psgi-streaming-perl_1.0.0-1_all.deb

I'm exploring the second option now (via a custom Koha::Plack::App::StreamCGI
module)...

It seems like the custom handler is returning an empty koha.mrc file after
about 10 seconds, and I've only processed about 6000 out of 40000 records...

Of course, as soon as I say that, suddenly it seems to start working without me
doing anything different. 

Although I notice that usually my custom handler doesn't load some Javascript
or CSS quite right... and I hit the "Export bibliographic records" button from
a different window...

But still... progress... I've streamed 10,000 bib records (10MB) out of Starman
via Apache.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list