Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
No such thing as a small change
 
PerlMonks  

[OT] Re^3: How to improve MYSQL search performance of perl?

by trammell (Priest)
on Aug 19, 2005 at 12:07 UTC ( [id://485192]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: How to improve MYSQL search performance of perl?
in thread How to improve MYSQL search performance of perl?

MySQL will choose the appropriate index for the tables involved in your query; in my experience it chooses correctly most of the time. I see from another post in this thread that your query is:
select topic FROM table1 WHERE uri LIKE '$q'
You can find out what indexes are used by MySQL in this query by running the command
EXPLAIN SELECT topic FROM table1 WHERE uri LIKE 'something'
where "something" is one of your parameters. You can see what indexes are defined on your table by running the command
SHOW CREATE TABLE table1;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://485192]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.