Results 1 to 2 of 2

Thread: Slow Queries

  1. #1
    Thread Starter
    Junior Member grafro's Avatar
    Join Date
    Jul 2011
    Location
    Austria
    Posts
    35
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Slow Queries

    Hi!

    I need some help on slow queries. I have a 3s TTFB and I contacted my host on this. The host replied that there is a querie which blocks the page from rendering.
    I have a lot of ads and want to ask how to solve this problem. This is the query:

    SELECT SQL_CALC_FOUND_ROWS X5i3v_posts.ID FROM X5i3v_posts WHERE 1=1 AND X5i3v_posts.post_type = 'ad_listing' AND (X5i3v_posts.post_status = 'publish' OR X5i3v_posts.post_status = 'tr_pending' OR X5i3v_posts.post_status = 'tr_failed' OR X5i3v_posts.post_status = 'tr_completed' OR X5i3v_posts.post_status = 'tr_activated') ORDER BY RAND() LIMIT 0, 10

    I know that CALC_FOUND_ROWS is very time consuming. There must be a way to work around this query. I found a lot of old posts but there is no help from these old ones.


    Thank you in advance

    Warm greetings

    Julia

  2. #2
    Thread Starter
    Junior Member grafro's Avatar
    Join Date
    Jul 2011
    Location
    Austria
    Posts
    35
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Slow TTFB / 120-250 Queries per Page Slowing Site Down
    By childcarejobs in forum Report JobRoller Bugs
    Replies: 8
    Last Post: October 30th, 2013, 09:57 PM
  2. Basic queries
    By abhijeet in forum Report Vantage Bugs (Legacy)
    Replies: 2
    Last Post: September 21st, 2012, 11:05 AM
  3. three queries about Jobroller
    By paulim in forum Report JobRoller Bugs
    Replies: 4
    Last Post: January 2nd, 2012, 01:27 AM
  4. Indeed Queries
    By darrylgee in forum Report JobRoller Bugs
    Replies: 1
    Last Post: July 17th, 2011, 10:53 AM