WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • May 29, 2016 at 6:44 pm in reply to: MySQL is running high CPU usage. #32088
    Jack Sun
    Participant
    This reply has been marked as private.
    May 27, 2016 at 8:04 pm in reply to: MySQL is running high CPU usage. #31972
    Jack Sun
    Participant

    Dear Syam,

    0.0462 sec

    0.0135 sec

    May 25, 2016 at 12:39 pm in reply to: MySQL is running high CPU usage. #31808
    Jack Sun
    Participant

    Sorry for late response. Here are the queries.

    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts 
    WHERE 1=1 
    AND wp_posts.post_type = 'post'
    AND (wp_posts.post_status = 'publish'
    OR wp_posts.post_author = 11061
    AND wp_posts.post_status = 'private')
    AND wp_posts.id NOT IN (SELECT post_id
    FROM wp_wpfront_ure_post_type_permissions
    WHERE role IN ('subscriber','fund_news_members','fund_seminar_members','seminar_basic','seminar_advanced','seminar_deals','seminar_practices','retirement_financial_members')
    AND enable_permissions = 1
    AND has_read = 0
    GROUP BY post_id
    HAVING COUNT(*) = 8) 
    ORDER BY wp_posts.post_date DESC
    LIMIT 0, 15
    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts 
    INNER JOIN wp_term_relationships
    ON (wp_posts.ID = wp_term_relationships.object_id)
    WHERE 1=1 
    AND ( wp_term_relationships.term_taxonomy_id IN (865) )
    AND wp_posts.post_type = 'post'
    AND (wp_posts.post_status = 'publish'
    OR wp_posts.post_author = 11061
    AND wp_posts.post_status = 'private')
    AND wp_posts.id NOT IN (SELECT post_id
    FROM wp_wpfront_ure_post_type_permissions
    WHERE role IN ('subscriber','fund_news_members','fund_seminar_members','seminar_basic','seminar_advanced','seminar_deals','seminar_practices','retirement_financial_members')
    AND enable_permissions = 1
    AND has_read = 0
    GROUP BY post_id
    HAVING COUNT(*) = 8) 
    GROUP BY wp_posts.ID
    ORDER BY wp_posts.post_date DESC
    LIMIT 0, 4
    May 13, 2016 at 7:03 pm in reply to: MySQL is running high CPU usage. #30909
    Jack Sun
    Participant

    These are what I run separately on mysql.

    https://gyazo.com/25d19e31e4d2ad51af38ef3e7ee72295

    1. It took 14 seconds to run the first query on mysql.

    2. It took 2.8 second to run the second query on mysql.

    3. Total number –
    wp_post 40,034 rows
    wp_wpfront_ure_post_type_permission 8,764 rows

    4. Yes, it’s still there.

    May 13, 2016 at 2:42 am in reply to: MySQL is running high CPU usage. #30860
    Jack Sun
    Participant
    This reply has been marked as private.
    May 11, 2016 at 8:19 pm in reply to: MySQL is running high CPU usage. #30748
    Jack Sun
    Participant

    Dear Syam,

    I just give it a try, yes, it makes huge difference. The rendering time of the homepage reduces from 75 seconds to below 1 second.

    May 11, 2016 at 3:23 am in reply to: MySQL is running high CPU usage. #30696
    Jack Sun
    Participant

    Dear Syam,

    Thanks for your help. I’ve removed two plugins that might cause issues, wordfence & w3-total-cache, and this is the the first part of the screenshot captured after user login. It takes 75 seconds to login, that’s too long.

    I expanded the table column of the Caller, so that should give us the information of where it got stuck.

    https://gyazo.com/518294a9863bc897372bb3874f4a714f

    November 23, 2015 at 6:43 am in reply to: CPU high loading issue #19616
    Jack Sun
    Participant
    This reply has been marked as private.
    November 22, 2015 at 5:07 am in reply to: CPU high loading issue #19586
    Jack Sun
    Participant
    This reply has been marked as private.
    November 22, 2015 at 4:18 am in reply to: CPU high loading issue #19576
    Jack Sun
    Participant
    This reply has been marked as private.
    November 21, 2015 at 5:49 pm in reply to: CPU high loading issue #19554
    Jack Sun
    Participant
    This reply has been marked as private.
  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions