Creating 4000+ locations slow down the mrp module installations and confirming sale order.
Bug #770243 reported by
Sinoj Sebastin
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team | ||
6.1 |
Confirmed
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
Hi,
We imported 4197 locations in openerp. After that installation of mrp modules taking hours and conforming one sale order taking more than one minute. The system is slowing down on the function _product_reserve which is in "bin/addons/
Sometimes it is throwing the following error
OperationalError: out of shared memory
HINT: You might need to increase max_locks_
The server we are using 6.0.2 stable.
The locations we used to import is attached with this bug report.
Please improve the performance of _product_reserve function so that it will not hang when the number of locations are in thousands range.
Thank you.
Related branches
lp://staging/~openerp-dev/openobject-addons/6.0-bug-770243-odo
- OpenERP Publisher's Warranty Team: Pending requested
-
Diff: 206 lines (+96/-84)1 file modifiedstock/stock.py (+96/-84)
tags: | added: maintenance |
Changed in openobject-server: | |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
Changed in openobject-server: | |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | 6.0.3 → none |
no longer affects: | ocb-addons |
To post a comment you must log in.
Hello Everyone,
Go through https:/ /bugs.launchpad .net/openobject -addons/ +bug/507389 bazaar. launchpad. net/~openerp/ openobject- addons/ 6.0/revision/ 3164.54. 66.
Solution was implemented as http://
As a part of investigation, note the following things:
1. User might need to increase max_locks_ per_transaction . (From config of postgres) www.postgresql. org/docs/ 8.4/static/ kernel- resources. html#SYSVIPC)
2. User might need to increase SHMMAX memory as well (http://
3. Should not the Savepoint be written before the loop starts? (Instead of having it for each location)
4. I am not completely sure, but will it have a trouble when more than one users access the same function with large no. of locations?
Thanks.