Re: Stat gathering

2012-05-14 Thread Andrus Adamchik
On May 9, 2012, at 8:28 PM, Ramiro Aparicio wrote: > Hi, > > I am trying to figure some way to get the number or queries and time elapsed > in a DataContext, or something similar, I want to get agregate data about DB > performance and be able to find where we should try to reduce the number of

Re: Stat gathering

2012-05-10 Thread Mike Kienenberger
Instead of injecting a custom QueryLogger, it would probably be easier to create a custom log4j.appender class and assign it to log data for "log4j.logger.org.apache.cayenne.access.QueryLogger = INFO" and parse the data which is logged. http://cayenne.apache.org/doc/configuring-logging.html Write

Re: Stat gathering

2012-05-09 Thread Aristedes Maniatis
On 10/05/12 3:28am, Ramiro Aparicio wrote: Hi, I am trying to figure some way to get the number or queries and time elapsed in a DataContext, or something similar, I want to get agregate data about DB performance and be able to find where we should try to reduce the number of DB queries. I th

Stat gathering

2012-05-09 Thread Ramiro Aparicio
Hi, I am trying to figure some way to get the number or queries and time elapsed in a DataContext, or something similar, I want to get agregate data about DB performance and be able to find where we should try to reduce the number of DB queries. I thought I could use some kind of ServletFilter