-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up GuideImage insert using insert_all (#193)
* Use insert_all to speed up imports. * Include barrier. * Add some more logging. * Add logging. * Try doing import synchronously, maybe it's fast enough. * Don't track coverage of s3_disk_list. * Update time estimate.
- Loading branch information
1 parent
4455c1c
commit 6fc5b60
Showing
5 changed files
with
42 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# Adds a unique index for image_name to card_images so that `insert_all` for | ||
# bulk ingest will work. | ||
class AddCardImageUniqueIndex < ActiveRecord::Migration[7.0] | ||
def change | ||
add_index :card_images, :image_name, unique: true | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.