Categories: None [Edit]

delta_attributes

https://rubygems.org/gems/delta_attributes
https://github.com/izbor/delta_attributes
This gem makes updating specified number fields by ActiveRecord in unusual way. Instead of generating sql script to update value in usual way like this: UPDATE users SET money = 10 WHERE id = 1; It replaces it with UPDATE users SET money = money + delta WHERE id = 1; where delta is difference between old value and new value of that field. This solves problem with simultaneous updating of the same field by different threads (problem known as race condition). Source code: https://github.com/izbor/delta_attributes

Total

Ranking: 50,960 of 188,645
Downloads: 21,783

Daily

Ranking: 146,171 of 188,635
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
44693,625,624rails

Owners

#GravatarHandle
1iconoleh_novosad