Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037581Retail ModulesRetail Widgetspublic2018-01-03 22:132018-01-09 21:55
yaima 
Retail 
normalminorhave not tried
newopen 
30
 
 
No
0037581: Slowness when executing Widget query.
The widget (Best Selling Store) takes 5 minutes to execute the query for environments with 23 or more organizations when trying to obtain sales for the date range from 01-01-1900 to 01-01-2999 used by the client. For a date range of one year, the execution time is approximately 2 min.


The query was executed in a test with 13 organization and took 3 min to execute. Although in the query between the tables and the joints it is not so slow, it has an acceptable cost (img 1), but when does the summation, the cost increases a lot (img 2), so that the execution time is doubled or more for those who have more data.

It was reviewed and found through ticket 49988.
1. Add a new widget to the workspace
2. Select the Best Selling Store widget.
3. Fill the parameters for the widget (one year range as input parameter)
4. Analyze the cost of the query using any explanation tool
No tags attached.
zip IMG.zip (218,954) 2018-01-03 22:13
https://issues.openbravo.com/file_download.php?file_id=11416&type=bug
Issue History
2018-01-03 22:13yaimaNew Issue
2018-01-03 22:13yaimaAssigned To => Retail
2018-01-03 22:13yaimaFile Added: IMG.zip
2018-01-03 22:13yaimaTriggers an Emergency Pack => No
2018-01-04 15:13rbianchiniIssue Monitored: rbianchini
2018-01-08 12:36PracticsIssue Monitored: Practics
2018-01-09 21:55rbianchiniSeveritytrivial => minor

There are no notes attached to this issue.