Title: Duplicate SQL Queries : Code optimization
Last modified: May 25, 2020

---

# Duplicate SQL Queries : Code optimization

 *  Resolved [fabricelaborie](https://wordpress.org/support/users/fabricelaborie/)
 * (@fabricelaborie)
 * [6 years ago](https://wordpress.org/support/topic/duplicate-sql-queries-code-optimization/)
 * Hello,
    I was trying to find some performance bottlenecks on my site.
 * With the help of the plugin “Query Monitor”, I noticed that some SQL queries 
   being called up to 6 times when I try to display one particular event ( ex: [https://hejazultra.org/event/jim2021/](https://hejazultra.org/event/jim2021/))
   I’m seeing 3 duplicate queries: [https://prnt.sc/snehjj](https://prnt.sc/snehjj)
   
   2 are from this plugin. (the 3rd one is from TEC Calendar Pro … I can open a 
   ticket there as well if needed)
 * We are a small running club. Our website has very little load especially at the
   moment, and I suppose mysql will do some DB caching, so the duplicate queries
   do not seem to be a major issue at this point of time, but it might be for larger
   sites, so it should be investigated and code turned for performance .
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-sql-queries-code-optimization%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [jeremy80](https://wordpress.org/support/users/jeremy80/)
 * (@jeremy80)
 * [6 years ago](https://wordpress.org/support/topic/duplicate-sql-queries-code-optimization/#post-12893548)
 * Hi [@fabricelaborie](https://wordpress.org/support/users/fabricelaborie/),
 * Thank you for letting us know about these unexpected queries.
 * Did you notice your website was getting slower after updating to the latest version
   of Event Tickets (ET 4.12.1)?
 * Do you only have these duplicate queries when displaying your event, or also 
   when performing other actions like getting a ticket?
 * Do you have the same issue when all plugins are deactivated except for TEC and
   ET?
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Duplicate SQL Queries : Code optimization’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

## Tags

 * [performance](https://wordpress.org/support/topic-tag/performance/)

 * 1 reply
 * 2 participants
 * Last reply from: [jeremy80](https://wordpress.org/support/users/jeremy80/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/duplicate-sql-queries-code-optimization/#post-12893548)
 * Status: resolved