Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to improve odoo performance

willie ho
on 5/15/15, 3:23 AM 1,240 views

after making a lot of data

the odoo become very slow. I create a stock and it takes 5 mins.

is there any method to improve odoo performance?

On 5/15/15, 3:40 AM

Hi Willie,

I ran into a similar problem. In general, a huge amount of data is not a problem. But I had one action that was slow.

Here is how I tracked it down:

  1. In postgres turn on SQL statement logging.  (I did this by setting "log_min_duration_statement=0" in the postgresql.conf file. Or you can do "log_statement = 'all'")

  2. Now login as a user and try the action that was slow.

  3. View the postgres log file to see what occurred. 

The log file will show each SQL statement and the amount of time for each one.  In my case I found a SQL statement that was computing an account balance in a slow fashion due to the large amount of data loaded and was using a SQL view.  I was able to modify the view to be more efficient.

Hope that helps.

thanks for the help. I cannot find the postgresql.conf file, where can I find it?

willie ho
on 5/15/15, 4:06 AM

Go to /etc/postgresql/9.1/main/postgresql.conf,If you are using ubuntu

Saravanan Sakthivel
on 5/15/15, 4:20 AM

I'm using ubuntu. After changing the log_min_duration_statement to 0, i still cannot see any running time in /var/log/postgresql/postgresql-9.3-main.log. did I check the wrong log?

willie ho
on 5/15/15, 4:37 AM

Then try changing: log_statement = 'none' to be: log_statement = 'all'

on 5/15/15, 12:03 PM
Juan José Scarafía
On 5/18/15, 10:03 AM

Hi willie ho,

We have improved the perfomance by unistalling some modules that we don't use, for example, the chat module.


Juan José - ADHOC 

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 5/15/15, 3:23 AM
Seen: 1240 times
Last updated: 7/3/16, 8:12 AM