vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2011, 05:58 AM
dai-kun dai-kun is offline
Member
 
Join Date: Jul 2005
Posts: 87
Default Database hangs

Do you think you can integrate dynamics to optionally use sphinx as the search engine? I have so many posts within this addon that I believe is causing my database to hang (copying to tmp table) when someone is trying to search.

This query I believe is a search query:

Quote:
SELECT entries.entryid
FROM vb3_adv_dyna_entries_pages AS entries_pages
LEFT JOIN vb3_adv_dyna_entries AS entries ON (entries_pages.entryid = entries.entryid)
LEFT JOIN vb3_adv_dyna_posts AS posts ON (posts.entryid = entries.entryid)
LEFT JOIN vb3_adv_dyna_cfields_entries AS customfields ON (entries.entryid = customfields.eid)
WHERE draft = 0
AND ( MATCH(entries.title) AGAINST ('+ao* +no* +exorcist*' IN BOOLEAN MODE) OR MATCH(entries_pages.pagetext) AGAINST ('+ao* +no* +exorcist*' IN BOOLEAN MODE) OR MATCH(entries.keywords) AGAINST ('+ao* +no* +exorcist*' IN BOOLEAN MODE) OR MATCH(posts.pagetext) AGAINST ('+ao* +no* +exorcist*' IN BOOLEAN MODE) OR field12 LIKE '%ao%' AND field12 LIKE '%no%' AND field12 LIKE '%exorcist%') AND (posts.visible IS NULL OR posts.visible = 1) AND entries.valid = 1
ORDER BY entries.dateline ASC LIMIT 500;
Everytime my server becomes unresponsive, I do a mysql processlist and it shows me a query similar to that. It last a very long time, sometimes up to 30 mins, which locks up my database and no one can do anything until that query dies.

I used to think it was something else in dynamics that caused my queries to hang, but I think this might finally be it.
Reply With Quote
  #2  
Old 07-13-2011, 09:35 PM
dai-kun dai-kun is offline
Member
 
Join Date: Jul 2005
Posts: 87
Default

Searching my dynamics takes at least 11 seconds for any results to show up normally. I am not sure how exactly the queries hang sometimes, causing the entire dynamics to become unresponsive. Then leads to hanging of the entire database.

I have a lot of fields, would that contribute to the long search? If we can't get sphinx to integrate, can we somehow speed up these slow queries? My members are not used to this since the forum post search only takes .5 secs to generate, and they are giving 11 secs to search dynamics.
Reply With Quote
  #3  
Old 07-14-2011, 05:51 PM
dai-kun dai-kun is offline
Member
 
Join Date: Jul 2005
Posts: 87
Default

Ok, I found the culprit for making my database hang. If a user is searching and tick the "posts" as part of the additional options, the query will run forever until the database crashes. I have disabled it for now. I think because of the quality (some posts have over 10,000 characters) and quantity (over 300,000 posts) that's causing the query to hang.

Is there a solution?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation hangs Varsh Troubleshooting & Problems 1 11-29-2008 12:01 PM
Installation Hangs... Andy R Troubleshooting & Problems 1 08-28-2008 04:18 PM
Update images hangs? ComputerVitals Troubleshooting & Problems 2 05-15-2008 09:19 PM
Install just hangs wintermute Troubleshooting & Problems 3 08-03-2007 09:50 AM
installation hangs on do=doimages tpr Troubleshooting / "How do I..." Questions 3 05-17-2004 10:01 AM


All times are GMT -4. The time now is 01:32 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.