Jump to content

how to make url search query efficiently?


ivytony

Recommended Posts

I'm trying to create an application using PHP + MySQL which allows people to find a url stored in the database. Suppose there are thousands of urls stored in the database (like http://www.phpfreaks.com/forums/index.php/board,62.0.html, http://www.phpfreaks.com/forums/index.php/board,7.0.html, http://www.phpfreaks.com/forums/index.php/board,1.0.html, etc), how can I make the search for a particular url more efficiently?

 

Can I still use this:

 

Select url from url_table where url='$search_url'
?

 

Is this efficient when there are many many urls stored in database?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.