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

Re: perl mysql full table scan

by Neighbour (Friar)
on Jul 10, 2013 at 10:07 UTC ( #1043434=note: print w/replies, xml ) Need Help??


in reply to perl mysql full table scan

It depends on what your limiting factor is (any combination):
  • Time
  • Memory
  • Network bandwidth
  • Processing power
If time is not a limiting factor, then it doesn't matter which method you pick :)
If Memory is not a limiting factor, move your database to a ramdisk.
If Network bandwidth is not a limiting factor (but at least one of the others is), you'd have to benchmark both options.
If Processing power is not a limiting factor, you could just let mysql do it's thing (least effort).

Also something that might matter...how often do you have to perform a query like this? If the answer is more than 'occasionally', consider letting mysql index the column.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043434]
help
Chatterbox?
[LanX]: I like http://www.comedix .de/lexikon/db/ nihamavasah.php = never have we water and http://www.comedix .de/lexikon/db/ erindjah.php = Air India xD
[LanX]: work!
[LanX]: thats very strange, I try to change two columns to "unique" and MySQL is complaining even that the data is already unique ???
[karlgoethebier]: Angie Singing
[karlgoethebier]: OK, OT

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2017-05-24 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?