Skip to content

Conversation

@braders
Copy link

@braders braders commented Aug 5, 2025

We've observed significant performance improvements when importing participants following this change.

Previously every import re-saved every participant in CiviCRM. For a big organisation you could therefore be looking at 500+ writes in one cron job. It's worth remembering that writes are significantly slower than reads on most databases.

This PR reads all the current participants for each event in bulk, and then only does writes where the participant data has actually changed (or is new).

This probably does increase memory usage, but in our testing significantly improves processing time, and so is a worthwhile tradeoff.

@agileware-justin
Copy link
Contributor

Thanks, this PR is waiting for someone on team to be available to review and test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants