http://www.perlmonks.org?node_id=744636


in reply to Re^4: Can DBI modify queries on the fly?
in thread Can DBI modify queries on the fly?

Instead of writing to the DBMS errorlog, how about writing to a table? It would probably have a smaller performance impact. It would also allow you to determine which queries are most often used.. allowing you to focus your energy on the worst.

Which DBMS are you using? There might be tools that would identify the slow queries that you could use in conjunction with your code line => query.

Jason L. Froebe

Blog, Tech Blog