mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Revert batch upserting
This commit is contained in:
@@ -63,9 +63,7 @@ module Security::Provided
|
||||
is_invalid
|
||||
end
|
||||
|
||||
valid_prices.each_slice(100) do |batch|
|
||||
Security::Price.upsert_all(batch, unique_by: %i[security_id date currency])
|
||||
end
|
||||
Security::Price.upsert_all(valid_prices, unique_by: %i[security_id date currency])
|
||||
end
|
||||
|
||||
def find_or_fetch_price(date: Date.current, cache: true)
|
||||
|
||||
Reference in New Issue
Block a user