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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
2509
Views
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 ...
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Sep 23
|
7007 | ||
|
0
May 21
|
7956 | ||
|
0
Dec 20
|
1261 | ||
|
2
Jun 17
|
3178 | ||
|
0
Apr 24
|
2705 |