On Thu, Apr 28, 2011 at 12:21 PM, Kane Baccigalupi <[email protected]>wrote:
> > We are having to do a lot of tuning of our raw sql to get postgres > efficient. Right now we are running queries via our tests or in > development, finding queries in the log and then looping. > Not sure if you are talking about the postgres log; if so there's an easier way, you can get datamapper to log to a file. DataMapper::Logger.new(IO, :debug) IO is basically anything with a write method, usually you see STDERR, but you can use a custom object easily enough (maybe further filtering for your needs) Caveat is that you have to setup the logger before you do anything else in datamapper. If you were already talking about the datamapper log: sorry, never mind. -Randy Fischer -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
