There's more than one way to do things | |
PerlMonks |
Faster Search Engineby drewboy (Sexton) |
on Jul 22, 2001 at 09:32 UTC ( [id://98769]=perlquestion: print w/replies, xml ) | Need Help?? |
drewboy has asked for the wisdom of the Perl Monks concerning the following question:
hey everyone. i'm a newbie here. anyway, i'm using a search engine software called 'links 2.0', based on the perl language, installed on a unix system. my site hasn't opened up yet, though i'm pretty much done with hacking and modifying. i'm in the process of adding links to the database. however, as the database builds up, the search gets much slower, sluggish to be blunt. i heard that using mysql is faster, although i don't have the money for that.
so basically my question is, how do i make my search engine perform better, faster and more efficiently? i've been searching through the forums related to this software and have been reading about perl core dumps and the grep function, but no definite codes have been thought up to make it work. my search.cgi is a 21 kb file that goes through a 70kb database with around 200 links, each with an ID, Title, Category, Description, and Keywords. here are some codes to guide you:
i wonder if i could somehow modify the code above to the make the search faster. if you want the whole search.cgi file, you can view it at http://www.textcentral.com/search.txt. any kind of answer is highly appreciated. thanks perl gurus...
Back to
Seekers of Perl Wisdom
|
|