Results 1 to 3 of 3
-
28th Mar 2012, 11:59 AM #1OPMemberWebsite's:
heroturko.biz softpk.com gfxtra.biz hotfilegfx.comi 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 mesoftpk 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
-
28th Mar 2012, 01:54 PM #2Respected 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.
-
28th Mar 2012, 03:13 PM #3Respected MemberWebsite's:
DL4Everything.com Soft2050.inBy 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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...