OpenERP does not provide a mechanism specifically to log SQL queries, but it has a generic logging feature. By adding
--log-level=debug_sql to the command line used to launch OpenERP it will print the normal debugging messages + the sql commands. You can redirect that output to a file if you want.
You could also configure PostgreSQL to log the queries. I would personally prefer that solution if the goal is to optimize the database usage.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/11/13, 10:27 AM|
|Seen: 6814 times|
|Last updated: 3/16/15, 8:10 AM|