Extremely Slow Query

Home Forums Calendar Products Events Calendar PRO Extremely Slow Query

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #129826
    F D
    Participant

    <p>I have been experiencing extremely slow page loading. And was informed by my host that this query is causing the slow down. Can you please advise on how to remedy this.</p>

    | 46 | dbredmount | localhost | redmountcal | Query | 1 | Copying to tmp table | SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, wp_postmeta.meta_value as EventStartDate, IF(tribe_event_duration.meta_value IS NULL, tribe_event_end_date.meta_value, DATE_ADD(CAST(wp_postmeta.meta_value AS DATETIME), INTERVAL tribe_event_duration.meta_value SECOND)) as EventEndDate, tribe_event_duration.meta_value as EventDuration FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = '_EventEndDate' ) LEFT JOIN wp_postmeta as tribe_event_duration ON ( wp_posts.ID = tribe_event_duration.post_id AND tribe_event_duration.meta_key = '_EventDuration' ) WHERE 1=1 AND wp_posts.ID NOT IN (599,500,495,494,493,491,490,489,146,153,155,156,157,158,161,163,165,596,176,177,178,179,180,181,182,488,189,592,130,629,285,286,300,215,543,541,542,399,628,600,282,221) AND wp_posts.post_type = 'tribe_events' AND (wp_posts.post_status = 'publish') AND (wp_postmeta.meta_key = '_EventStartDate' ) AND (wp_postmeta.meta_value >= '2014-04-08 22:10:33' OR (wp_postmeta.meta_value <= '2014-04-08 22:10:33' AND IF(tribe_event_duration.meta_value IS NULL, tribe_event_end_date.meta_value, DATE_ADD(CAST(wp_postmeta.meta_value AS DATETIME), INTERVAL tribe_event_duration.meta_value SECOND)) >= '2014-04-08 22:10:33' )) ORDER BY DATE(wp_postmeta.meta_value) ASC, TIME(wp_postmeta.meta_value) ASC LIMIT 0, 10 |
    +----+------------+-----------+-------------+----------------+------+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    5 rows in set (0.00 sec)

    #130149
    loakine
    Participant

    Yes, I have also been notified by my host (wpengine). WPENGINE SYAS: 100% of the slow queries generated are coming from your Events Calendar plugin.

    #130327
    Barry
    Member

    I’m sorry you’re hitting difficulties.

    • Can you confirm which versions of our plugins you are using?
    • Have you updated them recently and does this appear to you to have been triggered by such an update (if so, what did you update from and to)?

     

    #130344
    loakine
    Participant

    I have the Latest versions: I believe the slowness comes from the amount of Events AND the the amount of slow MySQL queries being generated
    EC – 3.5.1
    ECPro – 3.5.1
    EC Community – 3.5
    I also cannot access the Events anymore in the WP Dashboard. I get 502 Gateway Error.? NPRNsb.org

    Here is the LOG from WpEngine.com that shows the slow SWL Queries: http://nprnsb.org/aaronkine-slowlog.txt

    #130370
    F D
    Participant

    The slowness was present before upgrading and it doesn’t seem to have changed.
    EC – 3.5.1
    ECPro – 3.5.1

    #130606
    F D
    Participant

    Any update?

    #130878
    Barry
    Member

    Please do understand first of all that we can’t always reply multiple times in one day – we’re a fairly small team with lots of people to support 🙂

    We’re actively investigating performance issues and I’ll certainly copy the log you shared to our own internal report so the team can assess it – thanks for sharing it! In the short term, though, I’m not sure what else we will realistically be able to do. Can WP Engine accommodate you if you move to a higher tier of hosting plan, or anything of that order?

    #131560
    F D
    Participant

    This reply is private.

    #131701
    Jon
    Participant

    Hi, I am also having performance problems. The Events Calendar Pro plugin has now rendered my site (www.dickensheath.net) unusable as I am unable to log in – I always receive a 502 Gateway error. I contacted WPEngine support and they advised it was due to a slow running query from Events Calendar plugin. I have now had to disable this plugin in order to use my site again. Please could you advise when this problem will be fixed so that I can use the plugin I have paid for again?
    Many thanks,
    Jon
    Full error from log below;
    [Fri Apr 11 06:31:50 2014] [error] [client 66.90.154.48] KILLED QUERY (102946 characters long generated in /nas/wp/www/cluster-1409/dickensheath/wp-content/plugins/the-events-calendar/lib/tribe-event-query.class.php:814): SELECT SQL_CALC_FOUND_ROWS wp_dh_posts.*, wp_dh_postmeta.meta_value as EventStartDate, tribe_event_end_date.meta_value as EventEndDate FROM wp_dh_posts INNER JOIN wp_dh_postmeta ON (wp_dh_posts.ID = wp_dh_postmeta.post_id) LEFT JOIN wp_dh_postmeta as tribe_event_end_date ON ( wp_dh_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = ‘_EventEndDate’ ) WHERE 1=1 AND wp_dh_posts.ID NOT IN (6225,6228,6230,6234,6235,6237,6239,6241,6244,6247,6250,6252,6380,6382,6460,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7674,7675,7676,7677,7678,7679,7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,7952,7953,7954,7955,7956,7957,7958,7959,7960,7961,7962,7963,7964,7965,7966,7967,7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8031,8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144,8145,8146,8147,8148,8149,8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,8176,8177,8178,8179,8180,8181,8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8208,8209,8210,8211,8212,8213,8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,8224,8225,8226,8227,8228,8229,8230,8231,8232,8233,8234,8235,8236,8237,8238,8239,8240,8241,8242,8243,8244,8245,8246,8247,8248,8249,8250,8251,8252,8253,8254,8255,8256,8257,8258,8259,8260,8261,8262,8263,8264,8265,8266,8267,8268,8269,8270,8271,8272,8273,8274,8275,8276,8277,8278,8279,8280,8281,8282,8283,8284,8285,8286,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,8304,8305,8306,8307,8308,8309,8310,8311,8312,8313,8314,8315,8316,8317,8318,8319,8320,8321,8322,8323,8324,8325,8326,8327,8328,8329,8330,8331,8332,8333,8334,8335,8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8349,8350,8351,8352,8353,8354,8355,8356,8357,8358,8359,8360,8361,8362,8363,8364,8365,8366,8367,8368,8369,8370,8371,8372,8373,8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,8384,8385,8386,8387,8388,8389,8390,8391,8392,8393,8394,8395,8396,8397,8398,8399,8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,8416,8417,8418,8419,8420,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,8433,8434,8435,8436,8437,8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,8448,8449,8450,8451,8452,8453,8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8468,8469,8470,8471,8472,8473,8474,8475,8476,8477,8478,8479,8480,8481,8482,8483,8484,8485,8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8506,8507,8508,8509,8510,8511,8512,8513,8514,8515,8516,8517,8518,8519,8520,8521,8522,8523,8524,8525,8526,8527,8528,8529,8530,8531,8532,8533,8534,8535,8536,8537,8538,8539,8540,8541,8542,8543,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581,8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,8592,8593,8594,8595,8596,8597,8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,8608,8609,8610,8611,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,8624,8625,8626,8627,8628,8629,8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,8640,8641,8642,8643,8644,8645,8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,8656,8657,8658,8659,8660,8661,8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,8688,8689,8690,8691,8692,8693,8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,8704,8705,8706,8707,8708,8709,8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,8720,8721,8722,8723,8724,8725,8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,8736,8737,8738,8739,8740,8741,8742,8743,8744,8745,8746,8747,8748,8749,8750,8751,8752,8753,8754,8755,8756,8757,8758,8759,8760,8761,8762,8763,8764,8765,8766,8767,8768,8769,8770,8771,8772,8773,8774,8775,8776,8777,8778,8779,8780,8781,8782,8783,8784,8785,8786,8787,8788,8789,8790,8791,8792,8793,8794,8795,8796,8797,8798,8799,8800,8801,8802,8803,8804,8805,8806,8807,8808,8809,8810,8811,8812,8813,8814,8815,8816,8817,8818,8819,8820,8821,8822,8823,8824,8825,8826,8827,8828,8829,8830,8831,8832,8833,8834,8835,8836,8837,8838,8839,8840,8841,8842,8843,8844,8845,8846,8847,8848,8849,8850,8851,8852,8853,8854,8855,8856,8857,8858,8859,8860,8861,8862,8863,8864,8865,8866,8867,8868,8869,8870,8871,8872,8873,8874,8875,8876,8877,8878,8879,8880,8881,8882,8883,8884,8885,8886,8887,8888,8889,8890,8891,8892,8893,8894,8895,8896,8897,8898,8899,8900,8901,8902,8903,8904,8905,8906,8907,8908,8909,8910,8911,8912,8913,8914,8915,8916,8917,8918,8919,8920,8921,8923,8924,8925,8926,8927,8928,8929,8930,8931,8932,8933,8934,8935,8936,8937,8938,8939,8940,8941,8942,8943,8944,8945,8946,8947,8948,8949,8950,8951,8952,8953,8954,8955,8956,8957,8958,8959,8960,8961,8962,8963,8964,8965,8966,8967,8968,8969,8970,8971,8972,8973,8974,8975,8976,8977,8978,8979,8980,8981,8982,8983,8984,8985,8986,8987,8988,8989,8990,8991,8992,8993,8994,8995,8996,8997,8998,8999,9000,9001,9002,9003,9004,9005,9006,9007,9008,9009,9010,9011,9012,9013,9014,9015,9016,9017,9018,9019,9020,9021,9022,9023,9024,9025,9026,9027,9028,9029,9030,9031,9032,9033,9034,9035,9036,9037,9038,9039,9040,9041,9042,9043,9044,9045,9046,9047,9048,9049,9050,9051,9052,9053,9054,9055,9056,9057,9058,9059,9060,9061,9062,9063,9064,9065,9066,9067,9068,9069,9070,9071,9072,9073,9074,9075,9076,9077,9078,9079,9080,9081,9082,9083,9084,9085,9086,9087,9088,9089,9090,

    #132584
    Barry
    Member

    We’re looking into this and are working hard to improve things. We’re sorry for the inconvenience and will update this thread as soon as we’ve got something substantive to report.

    #132957
    loveyourlocalmarket
    Participant

    Hi guys, we are experiencing major performance issues too.
    I’ve set up the events calendar to display 5000 events per page. This is the only way I can see which will display all the event pins on the map at one time. I then hid the list underneath using CSS.
    When the events per page is set at a lower number it opens faster but gets progressively slower if the number is set higher.
    I understand that it’s going to take longer to load more entries but we’re talking over a minute.

    #134266
    Helleman Helleman
    Participant

    same issue here. Event Calender Pro makes the site almost unuseable, query time of more than six seconds, that much that SQL server sometimes breaks the connection on a premium wordpress hoster and has gone away. Disabling the site makes it 700% faster.

    WP 3.8.2
    Plugin version 3.5.1
    If you need more info let me know!
    Regards,


    See slow query info here:

    Slow Database Queries (above 0,05s)
    Query Caller Time
    SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, wp_postmeta.meta_value as EventStartDate, tribe_event_end_date.meta_value as EventEndDate
    FROM wp_posts
    INNER JOIN wp_postmeta
    ON (wp_posts.ID = wp_postmeta.post_id) LEFT JOIN wp_postmeta as tribe_event_end_date
    ON ( wp_posts.ID = tribe_event_end_date.post_id
    AND tribe_event_end_date.meta_key = ‘_EventEndDate’ )
    WHERE 1=1
    AND wp_posts.post_type = ‘tribe_events’
    AND (wp_posts.post_status = ‘publish’
    OR wp_posts.post_status = ‘private’)
    AND (wp_postmeta.meta_key = ‘_EventStartDate’ )
    AND (wp_postmeta.meta_value >= ‘2014-04-17 00:25:10’
    OR (wp_postmeta.meta_value <= ‘2014-04-17 00:25:10’
    AND tribe_event_end_date.meta_value >= ‘2014-04-17 00:25:10’ ))
    ORDER BY DATE(wp_postmeta.meta_value) ASC, TIME(wp_postmeta.meta_value) ASC
    LIMIT 0, 7 WP_Query->get_posts+ 6,2

    #136549
    Barry
    Member

    I appreciate you are hitting difficulties here, but it would be appreciated if you could create you own threads (as you’ve already done, verahelleman – thanks!).

    #137635
    justeverything
    Participant

    Hi. Have been experiencing the same issues as above and have updated to latest version, all to no avail. Have had to remove Pro plug in altogether. Was the 3.5.2 update meant to resolve these issues?

    #217585
    Barry
    Member

    Apologies for not seeing your last post, justeverything – however as before it is often best to create new threads of your own: if someone other than the original poster replies it isn’t always flagged up as in need of further attention by staff.

    We are definitely going to look into this further following our own testing with a WP Engine account (which led to us identifying a number of possible problems).

    Please note this work may span more than one release cycle – but as querying is of course crucial to the plugin’s operation it is not something we wish to rush.

    Thanks for your patience in the meantime – I’ll go ahead and close this thread as there isn’t too much more we can do in the short term, but if anyone does have further questions certainly feel free to post them in new threads.

    Thanks again.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Extremely Slow Query’ is closed to new replies.