Skip to content

Conversation

@brandur
Copy link
Contributor

@brandur brandur commented Apr 27, 2024

Implement #insert_many to support inserting jobs in bulk, similar to
what the Go client supports. For better ergonomics, takes either an
array of job args, or an array of InsertManyParams, which is a tuple
of job args and insert opts (again, very similar to the Go API).

Also, I seem to have found a way to reimplement the ActiveRecord driver
so that it doesn't have to drop down to Arel, which ends up simplifying
the code quite a bit and making it more alike the Sequel driver.

Lastly, tighten up documentation somewhat by including code example for
the important API methods.

@brandur brandur force-pushed the brandur-insert-many branch 2 times, most recently from 46c881c to 8fbd772 Compare April 27, 2024 17:21
Implement `#insert_many` to support inserting jobs in bulk, similar to
what the Go client supports. For better ergonomics, takes either an
array of job args, or an array of `InsertManyParams`, which is a tuple
of job args and insert opts (again, very similar to the Go API).

Also, I seem to have found a way to reimplement the ActiveRecord driver
so that it doesn't have to drop down to Arel, which ends up simplifying
the code quite a bit and making it more alike the Sequel driver.

Lastly, tighten up documentation somewhat by including code example for
the important API methods.
@brandur brandur force-pushed the brandur-insert-many branch from 8fbd772 to 04213f1 Compare April 27, 2024 17:23
@brandur brandur merged commit 963e9bd into master Apr 27, 2024
@brandur brandur deleted the brandur-insert-many branch April 27, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants