Help for this page

Select Code to Download


  1. or download this
    eval {
        $dbh->do(...);
    ...
            # not connection related error
        }
    }
    
  2. or download this
    unless (fork()) {
        $dbh->{InactiveDestroy} = 0;
        exit;
    }
    wait();
    
  3. or download this
    sub query {
        $dbh->selectrow_array(q{ SELECT now() });
    ...
                  Rate ping+query      query
    ping+query  6349/s         --       -39%
    query      10327/s        63%         --