I brought up the following in the comments of Jeremy's blog post on
automatic statement caching, and he suggested that I bring it up here
to get some input from other Sequel users.

I'm thinking that when Sequel executes a prepared statement, it puts a
line in the logs that looks something like "EXECUTE sequel_pgap_2 --
args: [1]". The problem is that if specific portions of the logs
require later review, it'll be difficult to determine what SQL queries
were being performed at a given time ("sequel_pgap_2" won't
necessarily map to the same SQL query between restarts of the app, and
you won't be able to determine what it does map to without rewinding
your logs to when the statement was prepared).

Since it doesn't seem practical to use a more descriptive prepared
statement name, the question is would it be useful to log the actual
SQL query that was executed (such as "SELECT * FROM table WHERE (a =
$1::int4)") alongside or in place of the current prepared statement
execution line. Jeremy thinks that if a change is made here, it should
probably also be made in the prepared statements plugin.

Does anyone have any thoughts on this?

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to