Detecting duplicate queries

Hey,

I noticed that I’d been causing a couple of duplicate queries in a few places, and I’d like to implement a system to warn if this happens in the future.

I’m far from being a Rails expect so I’m looking for a little guidence as how best to implement this.

AbstractAdapter#log looks like a good place to put one of my hooks, I’m just not sure where to put those to catch request start/end events?

A prior implementation to this problem would be much better of course :slight_smile:

Cheers Ian