Performance under many events?
WordPress Event Management, Calendars & Registration › Forums › Pre Sales Questions › Performance under many events?
This topic contains 5 replies, has 2 voices, and was last updated by Stephen Harris 11 years, 7 months ago.
-
AuthorPosts
-
I’m seriously considering this plug-in for listing tons of local events and venues. At any given time I might have 400 venues and maybe 200 events. Is that asking for trouble? I’ve heard of plug-ins buckling under the strain of many posts/pages, etc, and I really don’t want to invest the time in creating the data only to see it collapse. Thanks.
JasonHi Jason,
I’ll be honest, I’ve never attempted it with that many events – occurrences, yes (though not that order of magnitude of venues). That said I’m confident it will perform well:
The database table storing the event dates is designed to be as efficient as possible, with date and time columns indexed. This in theory should ensure that it performs better than an event plug-in which uses post meta (which would scale terribly). On the user-end side, it caches as much as it can (calendar, widgets etc).
The architecture of the plug-in has been (and continues to be) refined to improve performance – part of which has involved testing these improvements – but that doesn’t always translate to user experience (which will vary on sever and WordPress set-up).
Really, the only thing for it is to test that many events on the free version first. Obviously manually entering events would be tedious – but you could create ‘random’ events:
add_action( 'admin_init', 'jason_create_test_events' ); function jason_create_test_events( ){ $batch_size = 50; for( $i=0; $i < $batch_size; $i++ ){ $post_arr = array( 'post_title' => 'Event - #'.$i, ); $event_arr = array( 'start' => // 'end' => //Fill with 'pseudo' random, but valid data ); eo_insert_event( $post_arr, $event_arr ); } }
(See documentation).
In that way you can create a lot of test events quickly (even ‘randomly’ choosing its schedule details – recurring, multi-day, etc – obviously ‘randomly’ taken from valid data sets – start dates before end dates etc).
If I get the chance to test this myself I will (and maybe even publish some metrics)- but performance will vary from server to server and also your particular set-up.
Stephen HarrisThanks for the honest reply, and the code! I will just need to get this up on live hosting and experiment.
I already have a lot of venues it would be nice to bulk import from CSV. I searched your site but did not see any posts about bulk importing venues and/or events. Is that possible?
JasonNope, just ICAL. Where are you importing events from?
Stephen HarrisMy venues are in an Excel spreadsheet, so could be exported to CSV and easily manipulated and restructured. For me importing the venues is more important than events because the events come and go but the venues stay.
JasonAlthough there is no CSV-handling in the plug-in, its not to difficult to implement. Assuming you have parsed the CSV into an array, you can use
eo_insert_venue()
to create the venue, and even useeo_get_venue_by()
to ensure that you’re not importing a venue that already exists.If implementing that is something you’d like help with feel free to drop me an e-mail and we can discuss it.
Stephen Harris -
AuthorPosts