You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems each records gets updated and saved individually rather than using update_all. Using the current method to update each record is slow and any failure (possibly due to transient database connectivity problems) will effect the integrity of the denormalized data.
I propose switching using update_all which is much faster and only requires 1 query to update all documents, lowering the possibility of the update failing.
Any objects to this?
The text was updated successfully, but these errors were encountered:
It seems each records gets updated and saved individually rather than using
update_all
. Using the current method to update each record is slow and any failure (possibly due to transient database connectivity problems) will effect the integrity of the denormalized data.I propose switching using
update_all
which is much faster and only requires 1 query to update all documents, lowering the possibility of the update failing.Any objects to this?
The text was updated successfully, but these errors were encountered: