basecamp / marginalia

Attach comments to ActiveRecord's SQL queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage with the StatementCache

keithpitt opened this issue · comments

Hi, this is less of a bug and more of a question. How does marginalia interact with the statement cache? Will each unique comment generate a value in the ActiveRecord::StatementCache http://edgeapi.rubyonrails.org/classes/ActiveRecord/StatementCache.html or is the comment ignored? I couldn't tell by reading the source.

I just found out that it adds the query right before it's sent to the driver, so it doesn't mess with the statement cache. That may/or may not be useful to add to the Readme :) Thanks!!