Open outoftime opened 12 years ago
+1
Ist there an update_all
equivalent?
Sort of -- there's the ::update_each
method, which updates each document matching the scope it's called on in a concurrency-safe way. It still performs one write operation per document, since ElasticSearch doesn't have anything equivalent to an UPDATE...WHERE ? IN ?
statement. Of course you can make that a bit more efficient by doing it in a bulk block.
E.g.:
Not clear how this should work with queries vs. filters etc...