in reply to Re: Searching with MySQL (and REGEXPs)
in thread Searching with MySQL (and REGEXPs)
I didn't go for one of the modules on CPAN as I wanted something simple, the text search is in addition to 4 combo boxes (finish, material, mfg, and size in this case) and most users either leave it blank or just enter 1 or 2 words. I've got keys on the important fields and searching through 5,000 records takes < 0.2 seconds for a complicated query with 5 LIKEs and 2 REGEXPs.
I don't think this will scale fantastically for larger data sets where using some kind of fulltext index will really pay off.
Just for kicks I ran a quick test on a table with 550,000 rows, a simple LIKE/REGEXP takes 3.5 seconds while a REGEXP takes 12.
gav^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Searching with MySQL (and REGEXPs)
by perrin (Chancellor) on Apr 02, 2002 at 05:58 UTC |