Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: mysql's join too slow; using Perl to compare two tables

by converter (Priest)
on Feb 05, 2006 at 15:27 UTC ( #528074=note: print w/replies, xml ) Need Help??


in reply to mysql's join too slow; using Perl to compare two tables

Are you using indices, and if so, are you certain that the database is doing index scans instead of sequential scans in your query? Before you give up on MySQL and try to solve the problem with Perl, you should have a look at the EXPLAIN and ANALYZE statements.

Since you didn't mention which version of MySQL you're using, I'll take a guess and include Optimizing Queries with EXPLAIN for versions 3.23 through 4.1.

  • Comment on Re: mysql's join too slow; using Perl to compare two tables

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://528074]
help
Chatterbox?
[1nickt]: ... in the calling code ... $rs = $rs->maturity(" stable");. But I don;t enjoy feeling that far away from the SQL and the DB, really.
[1nickt]: The same project (CPAN Testers API) is using experimental signatures (and therefore 5.024) ... which is what replaced Method::Signatures , afaict.
[1nickt]: But the new $job is on an older Perl and therefore using M::S, the syntax of which looks clunky to me, so far.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-11-24 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?