IRC logs of #tryton for Thursday, 2020-02-20

chat.freenode.net #tryton log beginning Thu 20 Feb 2020 12:00:01 AM CET
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:18
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton07:03
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:23
-!- rpit(~rpit@p5B22B909.dip0.t-ipconnect.de) has joined #tryton07:28
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton07:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:52
semariecedk: about issue9064 ("Duplicate payment in workflow transition"), in rietveld comment, you said "Once we use set, the cache of the instances are no more aligned, so it is better to recreate a a list with ModelStorage.browse". I think that "no more aligned" mean that the order of argument is important for caching. Where the cache occurs ? on Payment.fail() call ? with some mixing to do the caching07:59
semarie?07:59
semarieI am trying to understand to avoid to repeat the same error every time :)08:00
cedksemarie: the ORM knows for each record the list it comes from08:12
cedksemarie: so when it fetch data for a record indeed it optimize and prefetch data for x more record after in the list at once08:13
cedkthis is because make a query to the database is more expensive than retrieve more data in a single query08:13
cedkso the loop order of set is undefined in Python, this means that the next record may not be prefetched and so we loose this optimization08:14
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:20
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:42
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:16
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton10:55
-!- mariomop(~quassel@190.247.127.226) has joined #tryton12:32
-!- josesalvador(~josesalva@170.253.41.74) has joined #tryton14:53
-!- josesalvador1(~josesalva@170.253.35.165) has joined #tryton15:50
cedkany one know a pastebin for SQL query?19:20
cedkI found https://explain.depesz.com/19:25

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!