IRC logs of #tryton for Wednesday, 2014-01-29

chat.freenode.net #tryton log beginning Wed Jan 29 00:00:01 CET 2014
grasbauerHello10:05
grasbauerI just installed production module to see the new calendar view but nothing shows up - whats to do?10:09
cedkgrasbauer: did you installed GooCalendar ?10:15
grasbauercedk: OMG10:15
grasbauercedk: thanks10:15
grasbaueranybody has more than 200.000 products in the database? My local box goes crazy if I do a sale and type the name of the product in the form of the sales line. Seems like search_rec_name is to heavy ...13:56
yangoongrasbauer: yes, it is a known issue also for us, when doing rather undetailed searches13:57
grasbaueryangoon: mhhhh13:58
grasbaueryangoon: any solution?14:00
yangoongrasbauer: not so far apart from telling our customers to use detailed search clauses. I didn't have the time so far to dig in.14:05
grasbaueryangoon: ok14:06
nicoegrasbauer: does it happen with the autocompletion box in the sale line?14:23
grasbauernicoe: yes14:23
cedkgrasbauer: probably because of the translation and search_rec_name could be improved to use 'OR'14:25
grasbauernicoe: ok - but I don't know where to place 'OR' :)714:27
grasbauercedk , nicoe: dont kow why - but now it works much faster - probably the index was not up to date14:45
cedkgrasbauer: http://hg.tryton.org/modules/product/file/f5f3bdceddd0/product.py#l18214:48
cedkgrasbauer: this should have poor performence if ids is large14:48
grasbauercedk: ok14:51
rmugrasbauer: product.search_rec_name should probably be replaced with something like return ['OR', [('code',) + tuple(clause[1:])], [('template.name',) + tuple(clause[1:])]]15:25
grasbauerrmu: will give it a try15:26
pokoligrasbauer: have the proposed code solved your problem?17:25
rmupokoli: this pattern probably occurs in many places, perhaps it should all be fixed/improved in one codereview18:52
pokolirmu: yes, so we may add an issue to improve this :)18:56
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton20:17

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