Oddbean new post about | logout
 So the Rails upsert_all method doesn't let you specify a WHERE clause which can mean doing lots of unnecessary updates of existing data.

Worked around that with some custom SQL but seems like a limitation in the current code. 

Anyone else seen this/worked around it?

#ruby #rubyonrails 
 @2d6fed24 Can you filter the array you're passing to upsert_all before passing it? Using the filter equivalent to your where clause?