]> git.openstreetmap.org Git - rails.git/commit
Use counter caches to improve spam scoring
authorTom Hughes <tom@compton.nu>
Mon, 12 Nov 2012 09:39:44 +0000 (09:39 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 12 Nov 2012 09:39:44 +0000 (09:39 +0000)
commitec6f14df0ce68192b9815a3895d1cc2737f23b6b
tree75fac14f87606bf427dcff8b7a5638df347f6014
parent4cf82d1baac073e70738ce1dbee3146c759706a4
Use counter caches to improve spam scoring

Now that we have the counter caches we can take all edits and traces
into account without incurring the cost of having to scan the database
to count them all.
app/models/user.rb