Skip to main content
To perform auto-indexing in the background, use queues.

Background jobs with ActiveJob

By default, ActiveJob queues are used, but you can define your own queueing mechanism:
Ruby
If you perform updates and deletions in the background, you can commit a record to your database before running the job. If you load a record before the job runs, the call to ActiveRecord#find fails with a RecordNotFound error. To prevent this, you can bypass loading the record from the ActiveRecord and directly communicate with the index:
Ruby

Background jobs with Sidekiq

You can process jobs in the background with Sidekiq:
Ruby

Background jobs with delayed_job

You can process jobs in the background with delayed_job:
Ruby
Last modified on June 12, 2026