Results 1 to 5 of 5

Table Lock Issues

This is a discussion on Table Lock Issues within the Bug Reporting forums, part of the vBSEO SEO Plugin category; PHP Code: select count (*) as  preposts from  " . vbseo_tbl_prefix('post') . "  p LEFT JOIN  " . vbseo_tbl_prefix('deletionlog') . "  AS  deletionlog ON ( deletionlog . primaryid  =  p . postid  ...

  1. #1
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times

    Table Lock Issues

    PHP Code:
    select count(*) as preposts
    from 
    " . vbseo_tbl_prefix('post') . " p
    LEFT JOIN 
    " . vbseo_tbl_prefix('deletionlog') . " AS deletionlog ON(deletionlog.primaryid p.postid AND type 'post')
    where
    deletionlog
    .primaryid IS NULL
    AND p.threadid='" . $post['threadid'] . "'
    AND p.visible=1
    AND p.dateline " . (($bbuserinfo['postorder'] == 0) ? '<=' : '>=') . $post['dateline'] . " 
    This seems to cause massive table-locks for long threads.
    Make a JOIN on deletionlog seems really pointless here, as p.visible = 1 already selects only those threads that are not deleted, eg. deletionlog.primaryid will alway be NULL here.

    vBulletin itself removed has such JOINs in 3.0.X, but they were since removed to avoid such issues.

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    This is actually a vBulletin issue as the table locks are caused by vBulletin itself. Thats why for big boards it is not advised to allow very long threads
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times
    Yes, vBulletin itself has issues with long queries (->sorting by dateline) - but this is not the problem reported here.

    Please take a look at the query again - the JOIN is really not needed.

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    I will investigate this and will check if we can remove this for vBSEO 3.3.1
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #5
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    /* NOTE: This issue has been resolved. The fix will be distributed with the next vBSEO build. */
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. Lock forumhome to index.html
    By mountainboarder21 in forum URL Rewrite Settings
    Replies: 6
    Last Post: 10-10-2008, 03:49 AM
  2. Replies: 8
    Last Post: 07-27-2008, 11:56 PM
  3. Replies: 2
    Last Post: 05-29-2008, 03:41 PM
  4. table-less vbulletin
    By Glen in forum Off-Topic & Chit Chat
    Replies: 23
    Last Post: 07-22-2007, 06:48 PM
  5. Table vBSeo
    By jarod1981® in forum Troubleshooting
    Replies: 1
    Last Post: 02-22-2007, 07:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •