Re: using callbacks with connect_cached

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Hi David,

To make sure my problem was not tied to mod_perl, I modified sligthly
the SQLite app that you published on this page :

http://www.justatheory.com/computers/databases/sqlite/

so that it uses connect_cached, connecting 3 times for a simple select
on the 'try' table.

Here is a paste of the modified code, followed by its output :

http://pastebin.com/aR8YH1zR

As you can see, no caching happens when any callback is present in the
connect method (connected, connect_cached.new, or
connect_cached.reused).

-- 
Salutations, Vincent Veyron 
http://marica.fr/ 
Gestion des contrats, des contentieux juridiques et des sinistres
d'assurance
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.