Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: perl mysql full table scan

by kcott (Abbot)
on Jul 10, 2013 at 08:10 UTC ( #1043423=note: print w/ replies, xml ) Need Help??


in reply to perl mysql full table scan

G'day kosie99,

The short answer is to write it both ways and then Benchmark.

I have, in the past, found leaving the matching to Perl to be faster; however, I have not had to do this with MySQL so I can't really provide specific advice. Furthermore, that was quite a long time in the past - things may have changed.

For matching simple substrings, without any fancy pattern matching requirements, consider index instead of using a regular expression.

-- Ken


Comment on Re: perl mysql full table scan

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-07-04 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls