Skip to content
Snippets Groups Projects

Improve performance of course_cron by including only private fulfillments.

Closes #3028228

Our use case returned 1M+ object fulfillments, and the query itself took over 2 min. Cron would run out of memory even when memory limit set to 2G. Most object fulfillments were not private. Adding where condition of data LIKE '%"private";b:1%' is not ideal, but seems safe and effective. Our cron runs in under one second now.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading