Revert "officejs_support_request_ui: use accessors on ERP5 documents"
This reverts commit 5b251ce6.
Showing
-
Maintainer
5b251ce6 was really killing the performance, because we were supposed to access brain of object, not to get the object from the database, which becomes expensive when the number of document grow.
It was observed that for more than 2000 support requests, this script took almost 30 seconds.
This MR also fix the fact that we don't need to get so many support requests.
In the (far) future, I think we can:
- put support requests in stock table , so that we can use inventory API. It was already discussed that deliveries should be in stock table.
- use the
group_by_time_sequence
once !6 is finished and merged
Please register or sign in to comment