[6.0] performance issues - stock_move, account_move_lines and others

Bug #693833 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

1) many analysis reports use a date field to select month,month-1, year etc

IMHO stock_move and others (account_move_line) will need an index such a date field.

2) multi_company

IMHO all indices to perform well should be
company_id, field_name

I think there should be no queries without using company_id in the sql-query.

Suggestion - automatically create indices with company_id + field_name if company_id exists in the table.

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :

if the company_id field is not mandatory may be a better index is (field_name,company_id)

Revision history for this message
Ferdinand (office-chricar) wrote :

reading this it might not be necessary to have include company_id
http://www.postgresql.org/docs/8.4/interactive/indexes-bitmap-scans.html

nevertheless anylsys reports tend do do full table scans
hence for very big tables (20.000 records in account_move_line use 0.1 second)
* auto search should be turned off
* a reasonable default filter should be set and the query plan must be examinend

Amit Parik (amit-parik)
Changed in openobject-addons:
status: New → Triaged
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

We Let the Addons2 team decide.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Changed in openobject-addons:
status: Triaged → In Progress
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Hello,

It has been fixed in lp:~openerp-commiter/openobject-addons/dev-addons2-rha1
with
Revision ID: <email address hidden>
and
Revision no: 4483

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
importance: Undecided → Medium
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

Hello,

We have fixed the problem in lp:~openerp-commiter/openobject-addons/trunk-dev-addons3-psi2

Revision no: 4618
Revision ID: <email address hidden>

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

@Puenednu: there is one problem in your diff, i can not install account.

SyntaxError: keyword argument repeated

Changed in openobject-addons:
milestone: none → 6.0
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

it is working fine now Addons3 with your latest merge.

I have merged it in addons3 with:
revision-id: mra@mra-laptop-20110117123659-t3etytigbjtd88uq

thanks,
mra

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

I request Addons1 team to check for related changes.

thanks
mra

Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
status: In Progress → Confirmed
Jigar A. (ifixthat)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jigar A. (ifixthat) wrote :

Hello,
       Fixes from add-ons modules have been done and committed to the lp:~openerp-dev/openobject-addons/jam-dev-addons.
       Revision No : 4046
Thank You

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.