mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Revert batch upserting
This commit is contained in:
parent
5d798fe0a0
commit
48a07d6158
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue