• Resolved Vjekoslav Vu?i?

    (@vjekoslavvucic)


    Dear, first of all, thank you for this great plugin!
    I am a retired army veteran, trying to make some kind “in memory of” for my brothers in arms fallen in our war in nineties.
    TEC is a great tool to do my job. I am using today’s latest version.
    But.
    After importing more than 6400 events in TEC, things got bad for me. Single events are too slow.
    So, I have decided to do my best and find the bug.
    And you have some errors in database design. I have added one index to the MySQL table wp_tec_occurrences, and everything is good for me now.

    # Problem in your query:
    SELECT SQL_CALC_FOUND_ROWS wp_posts.*, CAST( wp_tec_occurrences.start_date AS DATETIME ) AS event_date
    FROM wp_posts
    LEFT JOIN wp_postmeta
    ON ( wp_posts.ID = wp_postmeta.post_id
    AND wp_postmeta.meta_key = '_EventHideFromUpcoming' ) JOIN wp_tec_occurrences
    ON wp_posts.ID = wp_tec_occurrences.post_id
    WHERE 1=1
    AND wp_posts.ID NOT IN (6590)
    AND ( CAST(wp_tec_occurrences.start_date AS DATETIME) < '2024-07-07 00:00:00'
    AND wp_postmeta.post_id IS NULL )
    AND wp_posts.post_type = 'tribe_events'
    AND ((wp_posts.post_status = 'publish'
    OR wp_posts.post_status = 'private'))
    GROUP BY wp_tec_occurrences.occurrence_id
    ORDER BY wp_tec_occurrences.start_date DESC, wp_posts.post_date DESC
    LIMIT 0, 1
    
    # Solution:
    ALTER TABLE wp_tec_occurrences ADD INDEX(post_id);

    Best regards,
    Vjekoslav Vucic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jes

    (@jescandoit)

    Hi @vjekoslavvucic,

    I wish you all the best with your project and thank you for bringing this to our attention, I can see how this issue affects the performance of your website.

    We made a ticket [TEC-4568] to fix the problem. I included your case and suggestion in it so the team will be notified about it.

    Issues like this are prioritized by taking into consideration the number of users and how it impacts their website overall.? I don’t have any timeframe on when we will release a permanent fix for it but our team posts their updates and bug fixes in our?newsletter?and via our?changelog. I understand that this reply isn’t what you’re expecting at the moment, but no worries we are doing our best to have this fixed as soon as possible.

    In the meantime, let me know if I can help you with anything else.

    Internal Bug Ticket Reference: TEC-4568

    Thread Starter Vjekoslav Vu?i?

    (@vjekoslavvucic)

    Hi,
    Thanks again for your great job!
    I wish you all the best in your future work.
    I will mark it as resolved because you created Bug Ticket.

    Plugin Support Darian

    (@d0153)

    Hi @vjekoslavvucic

    Thank you for your message.

    Please do not hesitate to bump a new thread on our way. This is for us to track down topics/issues efficiently and for us to follow the WordPress Forum Guidelines.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single events too slow’ is closed to new replies.