Skip to content

Commit e5cef33

Browse files
Optimize batch updates and avoid full duplicate reset (#282)
1 parent de63f25 commit e5cef33

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/tasks/detect_duplicates.rake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ namespace :duplicates do
1616
puts "Scanning assets with matching checksums..."
1717
puts "Processing in batches of #{batch_size}..."
1818

19-
IsilonAsset.update_all(has_duplicates: false)
20-
2119
duplicate_checksums = IsilonAsset.where("NULLIF(TRIM(file_checksum), '') IS NOT NULL")
2220
.group(:file_checksum)
2321
.having("COUNT(*) > 1")

0 commit comments

Comments
 (0)