Odoo Help

0

How to improve odoo performance

By
willie ho
on 5/15/15, 3:23 AM 2,287 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?

0
john5000
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'

john5000
on 5/15/15, 12:03 PM
0
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.

Regards,

Juan José - ADHOC 

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 5/15/15, 3:23 AM
Seen: 2287 times
Last updated: 11/17/16, 4:16 AM