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
{{ message }}
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
If you do Model.all.count without for example doing a Model.all.each ... . There will be no actual collection of records, just the count.
If you create a new record on the browser, the count (in this case) will increment by 2.
Why? Because on that client it sees the record being created (adds 1 to the count) and then milliseconds later receives a broadcast saying a new record was created (adds 1 to the count).
The text was updated successfully, but these errors were encountered:
If you do
Model.all.count
without for example doing aModel.all.each ...
. There will be no actual collection of records, just the count.If you create a new record on the browser, the count (in this case) will increment by 2.
Why? Because on that client it sees the record being created (adds 1 to the count) and then milliseconds later receives a broadcast saying a new record was created (adds 1 to the count).
The text was updated successfully, but these errors were encountered: