Activity Stream
48,167 MEMBERS
6913 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member

    Default tips for php/mysql search methods?

    Currently I'm using a basic full-text searching with my php / mysql download script, its a basic system but I'm seeing that full-text searching isn't that great and wondering if there are a few tips on how I can improve the quality of it?

    Thanks.
    c0rrup Reviewed by c0rrup on . tips for php/mysql search methods? Currently I'm using a basic full-text searching with my php / mysql download script, its a basic system but I'm seeing that full-text searching isn't that great and wondering if there are a few tips on how I can improve the quality of it? Thanks. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    10gb.in uploadjet.net
    vbulletin you can try installing spinx
    10Gb.in - Affordable Web Hosting Strictly No oversell |
    Kimsufi Reseller With 80 payment options



  4.     
    #3
    Member
    Website's:
    tribupinoy.net pinoyddl.org
    or you can try google.. google is your friend..

  5.     
    #4
    Member
    You can try looking into the Zend Lucene Search as it's easy to implement in almost any PHP project.
    It's creating a search index and you can easily customize the search results / indexed data to your need.

  6.     
    #5
    Member
    What is your problem exactly? I think that fullsearch engine in mysql is good enough. If there is the perfomance problem you can try standalone indexing software like Sphinx...

  7.     
    #6
    Respected Member
    The only way you are going to get quality returns is to use like instead of match against boolean in the select statement.

  8.     
    #7
    Member
    LIKE is actually very inefficient on large datasets as it has to scan the entire index whereas FULLTEXT doesn't (since it is made for searching, LIKE is not). You can see this by EXPLAINing a query, it will check every row in the table

    I'm trying out a few query changes now that might help, but anymore tips would be nice.

    EDIT:
    problem sorted now thanks to JmZ

  9.     
    #8
    Respected Member
    Hmm. I have 280,000 posts and it eats through it in seconds.

    You have to make sure you have full text indexing also.

    Glad you got it working to your liking tho.

  10.     
    #9
    Member
    You must mean milliseconds, if a query takes seconds, it is not a good query.

    Also, LIKE shouldn't make use of a FULLTEXT index and most probably doesn't.
    Try a few million rows, then the difference in performance is clear, LIKE is terrible for searching.

  11.     
    #10
    Respected Member
    Sorry don't have a few million on site.

    You obviously are talking on a dedicated server. Not a shared server

    I tried your site 5 times during the day and it took over 4 seconds to load each time. Seems long for the small amount of queries and small amount of images.

    Also searched for movie and it took 8 seconds to load. Hmmm..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Videobb earnin methods.
    By p0ssessed in forum File Host Discussion
    Replies: 9
    Last Post: 14th Dec 2011, 07:09 AM
  2. Search Google Tips
    By Raw in forum Tutorials and Guides
    Replies: 2
    Last Post: 19th Nov 2011, 06:51 AM
  3. paypal methods to withdraw
    By icestorm in forum Paypal
    Replies: 5
    Last Post: 23rd May 2011, 05:19 AM

Tags for this Thread

BE SOCIAL