IRC logs of #tryton for Wednesday, 2011-04-20

chat.freenode.net #tryton log beginning Wed Apr 20 00:00:06 CEST 2011
-!- elbenfreund(~elbenfreu@95.151.165.149) has joined #tryton00:06
-!- albertca(~albertca@90.163.173.69) has joined #tryton00:12
-!- albertca(~albertca@90.163.173.69) has left #tryton00:23
-!- rhubner(~rhubner@200.201.30.123) has joined #tryton00:25
-!- elbenfreund(~elbenfreu@95.151.165.149) has joined #tryton00:25
-!- elbenfreund1(~elbenfreu@95.151.166.7) has joined #tryton00:34
-!- chrue1(~chrue@host-091-097-020-231.ewe-ip-backbone.de) has joined #tryton02:09
-!- Cazou(~Cazou@213.177.91.165) has joined #tryton02:44
-!- alimon(~alimon@187.156.80.48) has joined #tryton03:17
-!- Hyper-Core(~lol@71.31.117.174) has joined #tryton04:49
-!- Hyper-Core(~lol@71.31.117.174) has left #tryton05:00
-!- yangoon(~mathiasb@p549F39EA.dip.t-dialin.net) has joined #tryton05:19
-!- alimon(~alimon@187.156.80.48) has joined #tryton05:28
-!- alimon(~alimon@187.156.80.48) has joined #tryton05:38
-!- silverfox1971(~sysadmin0@77.221.213.228) has joined #tryton06:11
-!- gremly(~gremly@200.106.202.91) has joined #tryton06:33
-!- predatell(~predatell@85.198.132.141) has joined #tryton07:04
-!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton07:50
-!- okko(~okko@62.58.29.41) has joined #tryton08:42
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton08:56
-!- okko(~okko@62.58.29.41) has joined #tryton09:23
-!- predatell(~predatell@85.198.132.141) has joined #tryton10:06
-!- enlightx(~enlightx@host112-251-dynamic.2-87-r.retail.telecomitalia.it) has joined #tryton10:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:11
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton10:14
-!- predatell(~predatell@85.198.132.141) has joined #tryton11:01
-!- reichlich(~reichlich@p5793D146.dip.t-dialin.net) has joined #tryton11:40
-!- blast_hardcheese(~blast_har@cpe-98-154-59-208.socal.res.rr.com) has joined #tryton11:50
-!- predatell(~predatell@85.198.132.141) has joined #tryton11:51
-!- predatell(~predatell@85.198.132.141) has joined #tryton11:58
-!- predatell(~predatell@85.198.132.141) has joined #tryton12:05
-!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton12:05
-!- nicoe(~nicoe@17.82-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton12:11
-!- Cazou(~Cazou@213.177.91.165) has joined #tryton12:56
-!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton13:17
-!- silverfox1971(~sysadmin0@77.221.213.228) has left #tryton13:33
-!- predatell(~predatell@85.198.132.141) has joined #tryton14:32
-!- alimon(~alimon@187.156.28.15) has joined #tryton14:49
-!- okko(~okko@62.58.29.41) has joined #tryton14:53
-!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton15:41
-!- alimon(~alimon@187.156.28.15) has joined #tryton15:52
-!- yangoon(~mathiasb@p549F39EA.dip.t-dialin.net) has joined #tryton16:43
-!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton17:22
-!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton17:40
sharooncedk: can you explain what you meant by your last tweet ?18:19
cedksharoon: there is index in mongodb ?18:22
sharooncedk: yes18:22
cedksharoon: so it will be great to be able to define it in the field18:22
sharooncedk: http://www.mongodb.org/display/DOCS/Indexes18:22
cedksharoon: like we have select=1 in SQL18:22
sharooncedk: oh yes, resuse select = 1 ?18:22
sharooncedk: yes18:22
sharooncedk: adding a ticket for that18:23
cedksharoon: otherwise your search will not be efficient18:23
sharooncedk: yes18:24
cedksharoon: and you do that because you have a lot of products :-)18:24
sharooncedk: oh yes i have over a million of them :D18:24
cedksharoon: next step is to find a way to edit Mongo field in the GTK client :-)18:25
sharooncedk: its already there18:25
cedksharoon: where?18:26
cedksharoon: wait...18:26
sharooncedk: like MongoAttribute is dislayed using default widget18:26
cedksharoon: ok I understand18:26
sharooncedk: but yes MongoDocument is stillr epresented as a JSON18:26
sharooncedk: https://bitbucket.org/sharoonthomas/trytond-mongodb/issue/1/use-of-indexes18:28
sharoonACTION out for lunch, brb18:28
cedksharoon: do you think this kind of fields could be added dynamicly?18:29
-!- gremly(~gremly@200.106.202.91) has joined #tryton18:32
-!- chrue(~chrue@host-091-097-020-231.ewe-ip-backbone.de) has joined #tryton19:07
-!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton19:18
sharooncedk: it could be a great feature but not sure how we could do that19:23
-!- alimon(~alimon@201.158.247.118) has joined #tryton19:24
cedknicoe: could you check this codereview http://codereview.tryton.org/21002/20:04
-!- curlynostrill(~curlynost@96.57.28.108) has joined #tryton20:44
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton20:45
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton20:46
-!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton20:57
-!- elbenfreund(~elbenfreu@p54B92FB3.dip.t-dialin.net) has joined #tryton20:59
-!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton21:10
-!- rhubner(~rhubner@187.59.153.20) has joined #tryton21:33
-!- rhubner(~rhubner@187.59.153.20) has left #tryton21:33
-!- dfamorato(~Secret@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has joined #tryton21:33
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton22:32
-!- nicoe_(~nicoe@104.74-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton22:41
sharooncedk: I  have some performance improvements to make, its too naive like __slots__ optimisation for some classes like the http://hg2.tryton.org/trytond/file/5f1bf7c0591e/trytond/transaction.py#l8 etc22:42
sharooncedk: is there still time for me to propose a patch ?22:42
cedksharoon: I'm not sure it will improve something23:06
cedksharoon: have you benchmark?23:08
cedksharoon: slots are there to limit memory usage23:11
cedksharoon: but for Transaction, there is only one instance per request23:11
cedkso the gain is very limited23:11
-!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton23:13
cedksharoon: for info: http://stackoverflow.com/questions/472000/python-slots23:13
sharooncedk: any issues ?23:19
cedksharoon: ???23:20
sharooncedk: got it now23:21
cedksharoon: it is bad practice to optimise stuff that doesn't need23:21
sharooncedk: i thought it was getting intialised too many times let me recheck a profile count i got23:22
cedksharoon: if you are concern, you can have a look at https://bugs.tryton.org/roundup/issue189223:22
cedksharoon: and we should really get your read with tuple for 2.223:24
sharooncedk: thats something we got to discuss23:25
sharooncedk: i was doing some experiments and these are my findings23:25
sharooncedk: 1. creation of dict is slow23:25
sharooncedk: 2. but pickling of tuple, list and dict are fastest and custom objects including named tuples dont match it23:26
cedksharoon: what do you want to discuss?23:27
sharooncedk: 3. when compression is used the dict's repeating keys are removed and hence the compression ensures there is not much overhead just because we use dict23:27
sharooncedk: read with tuple benefits23:27
cedksharoon: I'm convinced that we must go to tuple23:29
sharooncedk: ok23:29
sharooncedk: and returna  list of tuple with the first tuple as column headers ?23:30
cedksharoon: no header23:30
sharooncedk: ok23:30
cedksharoon: the header is the list you give23:30
sharoonok23:30
sharooncedk: we automatically insert id23:31
cedksharoon: we will remove this feature :-)23:31
sharooncedk: :D you get what you ask for and in that case fields_names must be a required argument23:32
cedksharoon: yes23:32
cedksharoon: and we must ensure that the order is the same as the list of ids23:32
sharooncedk: On a separate note what do you think of __slots__ optimisation of browse node ?23:32
sharooncedk: agree23:33
cedksharoon: I think it is a waste of time because we will merge Browse with Model23:33
cedksharoon: and slots will be a no way23:34
sharooncedk: Active Record pattern23:34
sharoon!!23:34
cedksharoon: yes it is on the roadmap23:34
cedkso much to do, so little time23:35
sharooncedk: but you do realise that an insatnce of a model is gonna be huge right23:35
sharooncedk: i guess it may be better to have browse record is a descriptor23:36
cedksharoon: why?23:36
sharooncedk: will each record not represent an instance of the Model ?23:36
cedksharoon: yes23:37
sharooncedk: "so much to do, so little time" => "call for a sprint of x days"23:37
sharooncedk: for example an instance of ModelSQL (eq to pool.get('x')) alone has over 100 attributes in methods etc, its huge23:38
cedksharoon: the attributes are not on the instance23:39
sharooncedk: ok ?23:40
cedksharoon: it will not be very different then what we have now23:40
cedksharoon: it will be just more Pythonic23:40
sharooncedk: ok23:40
cedksharoon: I don't think for now that memory consumption is an issue for Tryton23:41
sharooncedk: http://paste.pocoo.org/show/375459/23:42
sharooncedk:  a profile log23:42
sharoonbrb23:42
cedksharoon: I could say that __search_domain_calc need some love23:42
cedksharoon: but it will be improved with pysql23:43
-!- blast_hardcheese(~blast_har@98.154.59.208) has joined #tryton23:45

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