I may have fallen into Knuth's fundamental warning and optimized
My database has various foreign keys which are there to try and speed
up but they take time to maintain as well. Now I'm wondering if they
are worth the time to maintain verses the time they save.
Does anyone know of a GEM that instruments ActiveRecord? For example,
it could increment a counter per association each time it is traversed
(used) and a different counter each time it is assigned. And then some
way to cause these counters to be dumped out and reset at the end of
some length of time like a day or a week.
Seems like it would be rather easy to implement and handy to have.