Tryton - Issues

 

Issue7447

Title Slow Sao 4.8 behavior
Priority feature Status chatting
Superseder Nosy List ced, iehoshia
Type performance Components sao
Assigned To Keywords
Reviews

Created on 2018-05-19.02:19:00 by iehoshia, last changed by ced.

Messages
msg40955 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-05-23.10:31:46
This is the expected behavior, so I mark it a performance feature. It is because the new record is appended to the list and when it is removed (because not saved) the selected record become the last one of the large list. Since changeset cf989f7a944e, sao always display the selected record in the list by increasing the number of record to display.
There are few direction to improve this behavior:

- improve the performance of displaying large tables:
  - by reducing the number of promises (one per cell) that are created
  - by implementing a lazy display (quite hard)
- reducing the Sao.config.limit but this will reduce the usability
- avoid to put select the last record when canceling the new one
msg40789 (view) Author: [hidden] (iehoshia) Date: 2018-05-20.06:47:48
I created a short video about this in http://demo4.8.tryton.org/

After 0:46 the browser crash (I tried it with firefox too). 

Checking the console you can see the time. 

https://drive.google.com/file/d/1vbmrzGez5CwiVb5c-PT1cHMlX15B7PPk/view?usp=sharing
msg40769 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-05-19.02:41:17
Can not reproduce. Please provide a traceback for the crash.
msg40768 (view) Author: [hidden] (iehoshia) Date: 2018-05-19.02:18:59
I noticed a slow behavior and sometimes crash the browser when I do the following in Sao 4.8 

1. Have more than 200 records in account_invoice
2. Create an account_invoice
3. Modify the party, the invoice address will change
4. Change the view to tree without saving the changes
5. Sao wait more than 60 seconds to start working again and sometimes crash. 

I try it with Sao 4.6 and works fine.
History
Date User Action Args
2018-05-23 10:31:46cedsetstatus: need-eg -> chatting
priority: bug -> feature
type: behavior -> performance
messages: + msg40955
2018-05-20 06:47:48iehoshiasetmessages: + msg40789
2018-05-19 02:41:17cedsetstatus: unread -> need-eg
nosy: + ced
messages: + msg40769
2018-05-19 02:19:00iehoshiacreate

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