[Koha-devel] persistence via Plack - was: DBIx::Class vs current Koha's DBI performance

Nathan Gray kolibrie at graystudios.org
Wed Oct 27 18:20:18 CEST 2010


On Wed, Oct 27, 2010 at 07:51:46AM -0700, Fouts, Clay wrote:
> Getting Koha to run persistently (and to do so safely!) seems like a higher
> priority in my estimation than the conversion to DBIC, if for no other
> reason than pervasive use of DBIC is going to seriously impede CGI
> performance. In mean time, I find that applying small, judicious use of
> local caching often gives a high return on very little time and additional
> code while not interfering with the API.

I have been playing with Plack recently.  It makes use of PSGI,
an interface such as CGI or FastCGI or mod_perl that sits between
an application and the webserver.  The benefit of PSGI is that
once an application targets it, it opens up a lot of
possibilities with regard to webservers and persistence.

  http://plackperl.org

One of the most informative talks listed is:

  Plack: Superglue for Perl web frameworks and servers
  http://www.slideshare.net/miyagawa/plack-at-oscon-2010

As a quick test, there are some Plack modules that allow you to
test out CGI scripts in a Plack environment:

  http://search.cpan.org/dist/Plack/lib/Plack/App/WrapCGI.pm
  http://search.cpan.org/dist/Plack/lib/Plack/App/CGIBin.pm

-kolibrie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: </pipermail/koha-devel/attachments/20101027/f756f633/attachment.pgp>


More information about the Koha-devel mailing list