I currently have this api call however, it seems to be causing issues in the sense that the call is taking long time to complete and it also proves to be quite resource intensive on the server. I tried altering the limit value but that has little effect. I wondered if there were any recommendations on alterations to the url? Perhaps something along the lines of only showing upcoming published events? Many thanks
Limiting the query to only upcoming events will shave just a bit off the time (e.g. add where[Datetime.DTT_EVT_start][>]{current date & time in RFC3339/ISO8601 format}).
The significant slowdown in that query though is the part that requests the category. You’ll find that if you remove the Term_Taxonomy.Term.slug, from the api call, and add the where filter to limit the query to upcoming dates, the response time is cut in half.
I made the change but noticed there was an issue with the time format. My updated call is here but there seems to be an issue with the time format. Did that happen on your end too?
The support post ‘Speeding up api call’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.