IRC logs of #tryton for Saturday, 2013-04-06

chat.freenode.net #tryton log beginning Sat Apr 6 00:00:07 CEST 2013
plantianDoes eager loading only apply to primitive fields and not relationships?00:37
cedkplantian: loading is a property of each field00:38
plantiancedk: The default seems to be eager, so if I get a list of products and they have a many 2 many relationship to a custom model I made called a feature, then all those features would also be loaded when calling Product.search([]) ?00:40
plantianI guess does the loading cascade or does it mean just get the column when getting the model?00:40
cedkplantian: not on the search but eager loading means that when accessing any eager field that is not yet loaded, all the eager field will be loaded00:42
plantiancedk: I thought that was lazy loading?  What is lazy loading then?00:46
cedkplantian: only this field is loaded00:47
cedkplantian: but don't forget that with browse instanciation, every load is always in a bunch of 100000:47
plantianI guess I don't understand, so this is all from the client's perspective and not something on the server side?00:49
cedkplantian: on server side00:53
cedkplantian: on client side it is all based on the kind of view00:53
cedkplantian: field on tree view are all eager loaded00:53
cedkplantian: and field only on form view are lazy00:54
shalabhaggarwalHi, is there an example/reference on how to use search in xml for specifying a value to a m2o field?13:21
shalabhaggarwalgot it :)13:32

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!