Closed MrSerth closed 3 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.52%. Comparing base (
d99a715
) to head (9d5867b
). Report is 26 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Previously, the counter was only changed in memory but not persisted. Rather than adding a .save call, I decided to use the bang method (despite skipping model validations). This, however, will improve the SQL query and prevent any concurrent updates that otherwise wouldn't be atomic.
The resulting SQL query is really nice: