Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: DBD::Sqlite queries slow - and gives wrong results

by vagabonding electron (Deacon)
on Dec 17, 2017 at 15:02 UTC ( #1205738=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/perl
    use strict;
    ...
    $start = time;
    
    $dbh->disconnect;
    
  2. or download this
    Time till connect: 0.0150408744812012
    Time till load: 4.3910698890686
    ...
    Time till execute: 0.110021829605103
    Answer: 40000
    Time after loop: 0.16477108001709
    
  3. or download this
    my $sql = "select Name, Writeups from employees e, groups g where e.Le
    +vel = g.Level and g.Level = 'Pope (28)' order by e.Writeups desc ";
    
    ...
    print "Time after loop: ", time() - $start, $/;
    $start = time;
    $dbh->disconnect;
    
  4. or download this
    Time till connect: 0.0147781372070313
    Time till load: 4.42248010635376
    Answer: 40000
    Time after loop: 0.415067911148071
    
  5. or download this
    #!/perl
    use strict;
    ...
        });
    
    $dbh->disconnect;
    
  6. or download this
                Rate selectall  PrepExec
    selectall 2.88/s        --      -26%
    PrepExec  3.90/s       35%        --
    
  7. or download this
                Rate selectall  PrepExec
    selectall 2.69/s        --      -25%
    PrepExec  3.57/s       33%        --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1205738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-03-04 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (108 votes). Check out past polls.

    Notices?