changeset 8fdd045ddd51 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=8fdd045ddd51
description:
        Eager load at least 1/10 of the client limit

        issue10043
        review336131003
diffstat:

 tryton/gui/window/view_form/model/record.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3f68e6090c44 -r 8fdd045ddd51 tryton/gui/window/view_form/model/record.py
--- a/tryton/gui/window/view_form/model/record.py       Sat Oct 01 14:48:30 
2022 +0200
+++ b/tryton/gui/window/view_form/model/record.py       Mon Oct 03 00:22:51 
2022 +0200
@@ -83,7 +83,7 @@
 
             record_context = self.get_context()
             if loading == 'eager':
-                limit = int(CONFIG['client.limit'] / len(fnames))
+                limit = CONFIG['client.limit'] // min(len(fnames), 10)
 
                 def filter_group(record):
                     return (not record.destroyed

Reply via email to