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
The mass assignment is almost 3x slower than the "semi-manual" assignment using send.
This becomes a bigger issue as more attributes are added.
We have a model with ~30 attributes which is used very often and becomes a real bottleneck in the app.
The only workaround is not to use the mass-assignment.
Some benchmarks:
user system total real
mass assignement 0.890000 0.000000 0.890000 ( 0.888365)
assign manually 0.350000 0.000000 0.350000 ( 0.350524)
The mass assignment is almost 3x slower than the "semi-manual" assignment using
send
.This becomes a bigger issue as more attributes are added.
We have a model with ~30 attributes which is used very often and becomes a real bottleneck in the app.
The only workaround is not to use the mass-assignment.
Some benchmarks:
the BM code:
The text was updated successfully, but these errors were encountered: