2, December 2008

Whats the best way to do a search? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  Databases  >  MySQL
Topic: Whats the best way to do a search?
« previous next »
Pages: [1] Print

Author Topic: Whats the best way to do a search?  (Read 646 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« on: Feb 18, 2006, 10:41:32 AM »

I've got a database with a lot of articles and I want to add a search function to the website. What would be the best way to achieve this? The database size is still fairly small but will increase.


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8266
42583 credits
Members referred : 3



« Reply #1 on: Feb 18, 2006, 12:22:09 PM »

Well that depends.

The fastest way for the database, is by having some small VARCHAR fields in your table that indicate keywords.

Those fields should be indexes. But this way will not have the best results.

The best it would be if you would use the article's title or/and text, but this would create a huge overload on the server (that also depends of traffic of course), but you could do this better by creating some kind of cached results for the queries.

Hope my post helps Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1540
Tags : articles databases Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  Databases  >  MySQL
Topic: Whats the best way to do a search?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 02, 2008, 12:32:08 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.937
Total Topics: 7.679
Total Members: 4.444
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Naviator

39 Guests, 5 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.