[Trunk] Procurement request leads to server crash
Bug #915541 reported by
Yann Papouin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
I'm using 6.0.3 in a french context and I'm currently filling my company database with supplier's products, currently I have 114000 products in it.
Some actions cannot be done like "procurement request" or "automatic orderpoint" because it results in a 100% python CPU process until my server crash, RAM (8Go) and SWAP(8Go) are filled both filled. The thread is stuck in get_product_
=== FIX ===
The fix attached allows to check automatic orderpoint on 100.000 products in only 10s, no functionality is lost (technically based on Bug #899470 )
I know that the 6.1 is next to be release but I think that a fix like this is mandatory.
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-915541-mma
- Raphael Collet (OpenERP) (community): Approve
-
Diff: 17 lines (+3/-2)1 file modifiedprocurement/schedulers.py (+3/-2)
summary: |
- [6.0.3] Procurement request leads to server crash + [Trunk] Procurement request leads to server crash |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Hello,
So if I understand right, you are avoiding a gigantic product browse over all products and do a fast read and then browse only what really needs to. Sounds great, it's amazing you are winning so much time!
Now, I would like to mention that the 6.1 doesn't have such an optimization, so if the win is so important, I strongly suggest to make the patch on 6.1 too. Thanks for the idea.