[dancer-users] random web page breakages

Nikos Vaggalis nikos.vaggalis at gmail.com
Tue Apr 28 09:10:30 BST 2015


on a similar note, should Mysql be built with the -with-thread-safe-client
on ?


On Tue, Apr 28, 2015 at 9:16 AM, Andrew Solomon <andrew at geekuni.com> wrote:

> I'm a bit confused here. When should we use
> https://metacpan.org/pod/Dancer2::Plugin::Database and when should we use
> https://metacpan.org/pod/DBIx::Connector ?
>
> Unless I've missed something it looks as though Dancer2::Plugin::Database
> doesn't depend on DBIx::Connector - what's the reason for that?
>
> Andrew
>
>
> On Tue, Apr 28, 2015 at 1:04 AM, Russell Jenkins <
> russell.jenkins at strategicdata.com.au> wrote:
>
>> On 27/04/2015 3:39 am, Nikos Vaggalis wrote:
>>
>>> Is that indicating a global DBI handle that is reused and cleaned up at
>>> some time, having to do with Starman's preforking? The thing is that in my
>>> Model I initialize the database and statement handles within the subs scope
>>> and not globally.
>>>
>>> DBD:mysql 4.031
>>> DBI 1.633
>>>
>>>
>> If you are doing the database connection management yourself, I strongly
>> suggest you look at DBIx::Connector.
>> Its fork (and thread) safe, so you don't have to worry about such issues
>> :)
>>
>>
>> Hope that helps,
>>   Russell.
>>
>>
>> _______________________________________________
>> dancer-users mailing list
>> dancer-users at dancer.pm
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>>
>
>
>
> --
> Andrew Solomon
>
> Mentor at Geekuni http://geekuni.com/
> http://www.linkedin.com/in/asolomon
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150428/712c1554/attachment.html>


More information about the dancer-users mailing list