← Back to team overview

openerp-expert-accounting team mailing list archive

[Bug 1021321] [NEW] SQL query in invoice analysis is too complex

 

You have been subscribed to a public bug by Numérigraphe (numerigraphe):

On our modest database containing (66000 invoice lines, 1200 products, 3
partners), the Invoice Analysis takes so long to execute that the client
times out.

As it turns out,  "explain select * from account_invoice_report"
estimates the cost to 1009607118.61, which is really huge.

I tried to backport the latest report from the trunk, which is a bit
better but still far to costly to be usable. explain estimates the cost
to 734148039.28 - an order faster than v6, but still far from usable.

This query has far to many refinements in my opinion, and it should be
drastically simplified by dropping or optimizing costly computations.
Features like currency rate conversion, delay to pay, residual amount
seem to be complex beyond reason - but a finer analysis is needed to
confirm this.

Lionel Sausin.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
SQL query in invoice analysis is too complex
https://bugs.launchpad.net/bugs/1021321
You received this bug notification because you are a member of OpenERP Accounting Experts, which is subscribed to the bug report.