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

chat.freenode.net #tryton log beginning Wed Apr 20 00:00:06 CEST 2011
2011-04-20 00:06 -!- elbenfreund(~elbenfreu@95.151.165.149) has joined #tryton
2011-04-20 00:12 -!- albertca(~albertca@90.163.173.69) has joined #tryton
2011-04-20 00:23 -!- albertca(~albertca@90.163.173.69) has left #tryton
2011-04-20 00:25 -!- rhubner(~rhubner@200.201.30.123) has joined #tryton
2011-04-20 00:25 -!- elbenfreund(~elbenfreu@95.151.165.149) has joined #tryton
2011-04-20 00:34 -!- elbenfreund1(~elbenfreu@95.151.166.7) has joined #tryton
2011-04-20 02:09 -!- chrue1(~chrue@host-091-097-020-231.ewe-ip-backbone.de) has joined #tryton
2011-04-20 02:44 -!- Cazou(~Cazou@213.177.91.165) has joined #tryton
2011-04-20 03:17 -!- alimon(~alimon@187.156.80.48) has joined #tryton
2011-04-20 04:49 -!- Hyper-Core(~lol@71.31.117.174) has joined #tryton
2011-04-20 05:00 -!- Hyper-Core(~lol@71.31.117.174) has left #tryton
2011-04-20 05:19 -!- yangoon(~mathiasb@p549F39EA.dip.t-dialin.net) has joined #tryton
2011-04-20 05:28 -!- alimon(~alimon@187.156.80.48) has joined #tryton
2011-04-20 05:38 -!- alimon(~alimon@187.156.80.48) has joined #tryton
2011-04-20 06:11 -!- silverfox1971(~sysadmin0@77.221.213.228) has joined #tryton
2011-04-20 06:33 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-04-20 07:04 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 07:50 -!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton
2011-04-20 08:42 -!- okko(~okko@62.58.29.41) has joined #tryton
2011-04-20 08:56 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2011-04-20 09:23 -!- okko(~okko@62.58.29.41) has joined #tryton
2011-04-20 10:06 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 10:06 -!- enlightx(~enlightx@host112-251-dynamic.2-87-r.retail.telecomitalia.it) has joined #tryton
2011-04-20 10:11 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2011-04-20 10:14 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2011-04-20 11:01 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 11:40 -!- reichlich(~reichlich@p5793D146.dip.t-dialin.net) has joined #tryton
2011-04-20 11:50 -!- blast_hardcheese(~blast_har@cpe-98-154-59-208.socal.res.rr.com) has joined #tryton
2011-04-20 11:51 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 11:58 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 12:05 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 12:05 -!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton
2011-04-20 12:11 -!- nicoe(~nicoe@17.82-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-04-20 12:56 -!- Cazou(~Cazou@213.177.91.165) has joined #tryton
2011-04-20 13:17 -!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton
2011-04-20 13:33 -!- silverfox1971(~sysadmin0@77.221.213.228) has left #tryton
2011-04-20 14:32 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-04-20 14:49 -!- alimon(~alimon@187.156.28.15) has joined #tryton
2011-04-20 14:53 -!- okko(~okko@62.58.29.41) has joined #tryton
2011-04-20 15:41 -!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton
2011-04-20 15:52 -!- alimon(~alimon@187.156.28.15) has joined #tryton
2011-04-20 16:43 -!- yangoon(~mathiasb@p549F39EA.dip.t-dialin.net) has joined #tryton
2011-04-20 17:22 -!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton
2011-04-20 17:40 -!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton
2011-04-20 18:19 <sharoon> cedk: can you explain what you meant by your last tweet ?
2011-04-20 18:22 <cedk> sharoon: there is index in mongodb ?
2011-04-20 18:22 <sharoon> cedk: yes
2011-04-20 18:22 <cedk> sharoon: so it will be great to be able to define it in the field
2011-04-20 18:22 <sharoon> cedk: http://www.mongodb.org/display/DOCS/Indexes
2011-04-20 18:22 <cedk> sharoon: like we have select=1 in SQL
2011-04-20 18:22 <sharoon> cedk: oh yes, resuse select = 1 ?
2011-04-20 18:22 <sharoon> cedk: yes
2011-04-20 18:23 <sharoon> cedk: adding a ticket for that
2011-04-20 18:23 <cedk> sharoon: otherwise your search will not be efficient
2011-04-20 18:24 <sharoon> cedk: yes
2011-04-20 18:24 <cedk> sharoon: and you do that because you have a lot of products :-)
2011-04-20 18:24 <sharoon> cedk: oh yes i have over a million of them :D
2011-04-20 18:25 <cedk> sharoon: next step is to find a way to edit Mongo field in the GTK client :-)
2011-04-20 18:25 <sharoon> cedk: its already there
2011-04-20 18:26 <cedk> sharoon: where?
2011-04-20 18:26 <cedk> sharoon: wait...
2011-04-20 18:26 <sharoon> cedk: like MongoAttribute is dislayed using default widget
2011-04-20 18:26 <cedk> sharoon: ok I understand
2011-04-20 18:26 <sharoon> cedk: but yes MongoDocument is stillr epresented as a JSON
2011-04-20 18:28 <sharoon> cedk: https://bitbucket.org/sharoonthomas/trytond-mongodb/issue/1/use-of-indexes
2011-04-20 18:28 <sharoon> ACTION out for lunch, brb
2011-04-20 18:29 <cedk> sharoon: do you think this kind of fields could be added dynamicly?
2011-04-20 18:32 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-04-20 19:07 -!- chrue(~chrue@host-091-097-020-231.ewe-ip-backbone.de) has joined #tryton
2011-04-20 19:18 -!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton
2011-04-20 19:23 <sharoon> cedk: it could be a great feature but not sure how we could do that
2011-04-20 19:24 -!- alimon(~alimon@201.158.247.118) has joined #tryton
2011-04-20 20:04 <cedk> nicoe: could you check this codereview http://codereview.tryton.org/21002/
2011-04-20 20:44 -!- curlynostrill(~curlynost@96.57.28.108) has joined #tryton
2011-04-20 20:45 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-04-20 20:46 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton
2011-04-20 20:57 -!- paepke(~paepke@pD95461FD.dip.t-dialin.net) has joined #tryton
2011-04-20 20:59 -!- elbenfreund(~elbenfreu@p54B92FB3.dip.t-dialin.net) has joined #tryton
2011-04-20 21:10 -!- trifon(~trifon@p548C7C87.dip.t-dialin.net) has joined #tryton
2011-04-20 21:33 -!- rhubner(~rhubner@187.59.153.20) has joined #tryton
2011-04-20 21:33 -!- rhubner(~rhubner@187.59.153.20) has left #tryton
2011-04-20 21:33 -!- dfamorato(~Secret@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-04-20 22:32 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-04-20 22:41 -!- nicoe_(~nicoe@104.74-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-04-20 22:42 <sharoon> cedk: 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 etc
2011-04-20 22:42 <sharoon> cedk: is there still time for me to propose a patch ?
2011-04-20 23:06 <cedk> sharoon: I'm not sure it will improve something
2011-04-20 23:08 <cedk> sharoon: have you benchmark?
2011-04-20 23:11 <cedk> sharoon: slots are there to limit memory usage
2011-04-20 23:11 <cedk> sharoon: but for Transaction, there is only one instance per request
2011-04-20 23:11 <cedk> so the gain is very limited
2011-04-20 23:13 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton
2011-04-20 23:13 <cedk> sharoon: for info: http://stackoverflow.com/questions/472000/python-slots
2011-04-20 23:19 <sharoon> cedk: any issues ?
2011-04-20 23:20 <cedk> sharoon: ???
2011-04-20 23:21 <sharoon> cedk: got it now
2011-04-20 23:21 <cedk> sharoon: it is bad practice to optimise stuff that doesn't need
2011-04-20 23:22 <sharoon> cedk: i thought it was getting intialised too many times let me recheck a profile count i got
2011-04-20 23:22 <cedk> sharoon: if you are concern, you can have a look at https://bugs.tryton.org/roundup/issue1892
2011-04-20 23:24 <cedk> sharoon: and we should really get your read with tuple for 2.2
2011-04-20 23:25 <sharoon> cedk: thats something we got to discuss
2011-04-20 23:25 <sharoon> cedk: i was doing some experiments and these are my findings
2011-04-20 23:25 <sharoon> cedk: 1. creation of dict is slow
2011-04-20 23:26 <sharoon> cedk: 2. but pickling of tuple, list and dict are fastest and custom objects including named tuples dont match it
2011-04-20 23:27 <cedk> sharoon: what do you want to discuss?
2011-04-20 23:27 <sharoon> cedk: 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 dict
2011-04-20 23:27 <sharoon> cedk: read with tuple benefits
2011-04-20 23:29 <cedk> sharoon: I'm convinced that we must go to tuple
2011-04-20 23:29 <sharoon> cedk: ok
2011-04-20 23:30 <sharoon> cedk: and returna list of tuple with the first tuple as column headers ?
2011-04-20 23:30 <cedk> sharoon: no header
2011-04-20 23:30 <sharoon> cedk: ok
2011-04-20 23:30 <cedk> sharoon: the header is the list you give
2011-04-20 23:30 <sharoon> ok
2011-04-20 23:31 <sharoon> cedk: we automatically insert id
2011-04-20 23:31 <cedk> sharoon: we will remove this feature :-)
2011-04-20 23:32 <sharoon> cedk: :D you get what you ask for and in that case fields_names must be a required argument
2011-04-20 23:32 <cedk> sharoon: yes
2011-04-20 23:32 <cedk> sharoon: and we must ensure that the order is the same as the list of ids
2011-04-20 23:32 <sharoon> cedk: On a separate note what do you think of __slots__ optimisation of browse node ?
2011-04-20 23:33 <sharoon> cedk: agree
2011-04-20 23:33 <cedk> sharoon: I think it is a waste of time because we will merge Browse with Model
2011-04-20 23:34 <cedk> sharoon: and slots will be a no way
2011-04-20 23:34 <sharoon> cedk: Active Record pattern
2011-04-20 23:34 <sharoon> !!
2011-04-20 23:34 <cedk> sharoon: yes it is on the roadmap
2011-04-20 23:35 <cedk> so much to do, so little time
2011-04-20 23:35 <sharoon> cedk: but you do realise that an insatnce of a model is gonna be huge right
2011-04-20 23:36 <sharoon> cedk: i guess it may be better to have browse record is a descriptor
2011-04-20 23:36 <cedk> sharoon: why?
2011-04-20 23:36 <sharoon> cedk: will each record not represent an instance of the Model ?
2011-04-20 23:37 <cedk> sharoon: yes
2011-04-20 23:37 <sharoon> cedk: "so much to do, so little time" => "call for a sprint of x days"
2011-04-20 23:38 <sharoon> cedk: for example an instance of ModelSQL (eq to pool.get('x')) alone has over 100 attributes in methods etc, its huge
2011-04-20 23:39 <cedk> sharoon: the attributes are not on the instance
2011-04-20 23:40 <sharoon> cedk: ok ?
2011-04-20 23:40 <cedk> sharoon: it will not be very different then what we have now
2011-04-20 23:40 <cedk> sharoon: it will be just more Pythonic
2011-04-20 23:40 <sharoon> cedk: ok
2011-04-20 23:41 <cedk> sharoon: I don't think for now that memory consumption is an issue for Tryton
2011-04-20 23:42 <sharoon> cedk: http://paste.pocoo.org/show/375459/
2011-04-20 23:42 <sharoon> cedk: a profile log
2011-04-20 23:42 <sharoon> brb
2011-04-20 23:42 <cedk> sharoon: I could say that __search_domain_calc need some love
2011-04-20 23:43 <cedk> sharoon: but it will be improved with pysql
2011-04-20 23:45 -!- blast_hardcheese(~blast_har@98.154.59.208) has joined #tryton

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