Skip to Content
Menu
This question has been flagged
6 Replies
10472 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?

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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

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

Author

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?

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

Best Answer

Hi willie ho,

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

Regards,

Juan José - ADHOC 

Avatar
Discard