If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Any hope for multiple range optimization? 4.0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-06, 22:27
mr_fern mr_fern is offline
Registered User
 
Join Date: Jul 2005
Posts: 3
Any hope for multiple range optimization? 4.0

I run a community site. One of the slowest features on the site right now is the user search. And has a couple hundred new accounts are being made daily, it only will get worse.

Thing is they have multiple options to look for one another.

They can search by age, by distance, by dating status, by sexual orientation, by whether they have pictures uploaded, whether they're currently online, etc.

I was really hoping to be able to create a multi-column index on the major search fields to optimize lookups, but it doesn't seem possible. The fields are all optional. So if they don't specify something, it's not included (unless I just create a range for the unspecified values). But that's where the problem lies, once you hit a range on a key_partx, key_partx+1 through key_partn are no longer utilized to optimize the query.

Is there anything I can do for this sort of problem?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On