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

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    heroturko.biz softpk.com gfxtra.biz hotfilegfx.com

    Default i need help sql

    My sql suspended because it solved the problem


    This error show has been godaddy hosting provider
    PHP Code: 
    SELECT  SQL_NO_CACHE COUNT(*) AS count FROM dle_post WHERE dle_post.approve AND  dle_post.date '2012-03-27 23:01:57' AND (short_story LIKE  '%pro%tools%9%' OR full_story LIKE '%pro%tools%9%' OR dle_post.xfields  LIKE '%pro%tools%9%' OR title LIKE '%pro%tools%9%')

    EXPLAIN:
    id select_type table type possible_keys key key_len ref rows Extra
    1 SIMPLE dle_post ALL date    95693 Using where

    This query examines 95693 rows


    please help me
    softpk Reviewed by softpk on . i need help sql My sql suspended because it solved the problem This error show has been godaddy hosting provider SELECT SQL_NO_CACHE COUNT(*) AS count FROM dle_post WHERE dle_post.approve AND dle_post.date < '2012-03-27 23:01:57' AND (short_story LIKE '%pro%tools%9%' OR full_story LIKE '%pro%tools%9%' OR dle_post.xfields LIKE '%pro%tools%9%' OR title LIKE '%pro%tools%9%') EXPLAIN: id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE dle_post ALL date 95693 Using where Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Obviously this query was taking too long and caused mysql to time out with all those like statements against 95K records.

    I don't use DLE so I can't comment on the structure.

    If this is some type of plugin than it needs to be rewritten and maybe add fulltext indices if there aren't any for those fields.

  4.     
    #3
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    By default, unless you did any changes in DLE, all those 4 fields are fulltext. You might want to add total limit to search for maybe.
    PHP Code: 
    SELECT  SQL_NO_CACHE COUNT(*) AS count FROM dle_post WHERE dle_post.approve AND  dle_post.date '2012-03-27 23:01:57' AND (short_story LIKE  '%pro%tools%9%' OR full_story LIKE '%pro%tools%9%' OR dle_post.xfields  LIKE '%pro%tools%9%' OR title LIKE '%pro%tools%9%'LIMIT 100 

Thread Information

Users Browsing this Thread

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

Tags for this Thread

BE SOCIAL