This question has been flagged
2 Replies
2400 Views

Our system migrated from OpenERP version 7 to Odoo 9. Mostly code had been written in OpenERP version 7 (Old API). Now we are facing the speed issue. Can we rewrite the code with new API to enhance performance??
In mrp.py file under my custom module folder, we have 33 times the self.browse(cr, uid, ids) method. The browse() method fetch all columns of the table. Instead of using browse we can use search_read() to fetch only required columns. I really don’t know will this logic have some speed impact in term of user observation so I need to discuss the same with Odoo experts.

Avatar
Discard
Best Answer

Hi,

IMHO, I think running code written in V7 on Odoo 9 will cause a delay "The delay caused by the mapper between the new and old API" ...

Also unwise query will cause a delay for sure ...



Avatar
Discard
Best Answer

Hello, unfortunatly, I wouldn't expect a noticeable speed improvement at the new API level. The fact is V9 is more greedy for resource than V7.

Let's know anyway.

Avatar
Discard