Tryton - Issues

 

Issue8199

Title Speedup display of tree view
Priority feature Status unread
Superseder Nosy List ced, perilla, pokoli, resteve, xcodinas
Type performance Components sao
Assigned To Keywords
Reviews

Created on 2019-03-15.20:00:04 by ced, last changed by perilla.

Messages
msg47661 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-03-15.20:00:03
Sao is quiet slow when displaying a large list. I track this to the Column.render method. It calls record.load and then make the rendering in the callback. Record.load has a design such that it return a resolved promise if the field is already loaded. The problem is that this creates a lot of promises which is expensive and it take times to resolve and trigger them.
So I think a proper solution would be:

- load all needed fields for all the displayed records at once (or per bunch) but without loading again already loaded records
- test in .render method if the field is loaded instead of always calling .load

For that, I think the .load method should be split to allow to use the RPC read call and result (The split should be done in tryton also for compatibility but not use for the tree because it is not needed).
History
Date User Action Args
2019-04-13 14:09:35perillasetnosy: + perilla
2019-04-11 09:30:33restevesetnosy: + resteve
2019-03-18 13:23:23xcodinassetnosy: + xcodinas
2019-03-18 10:56:53pokolisetnosy: + pokoli
2019-03-15 20:00:04cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)