Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • How to make bad news go away ??????? (In: Members Lounge)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    There are 0 guests and 1 members in the forums right now.
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    primanocte
    Joined: Nov 03, 2005
    # Posts: 1

    View the profile for primanocte Send primanocte a private message

    Posted: 2005-Nov-03 10:12
    Edit Message Delete Message Reply to this message

    Hi

    I'm making a search engine and i am using joins for the search.
    this is the query if i search on the keywords "foo" "bar" "test"



    Code: [copy]





    as you can see i have to join the search_keywords and search_keyword_reference for every keyword i enter.
    This makes it a bit slow.

    I have tried this:


    Code: [copy]





    where i join the search_keywords and search_keyword_reference only once (as i would expect should be enough) but it doesn't work this way.

    It appears that he only searches for the first keyword en for the second and third keyword he searches in the first keyword. So "foo" and "bar" doesn't return anything. But "automobile" and "auto" does.

    Has anybody any idea how i can optimize the first code with less joins and make it a bit quicker? thanks


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions