IRC log of #zope for Tuesday, 2012-05-08

*** alga has quit IRC00:05
*** sp0cksbeard has quit IRC00:14
*** theo_ has joined #zope00:39
*** hever has joined #zope00:41
*** m8 has quit IRC00:56
*** hever has quit IRC01:12
*** J1m has quit IRC01:25
*** runyaga has joined #zope01:31
*** runyaga has quit IRC01:31
*** runyaga has joined #zope01:31
*** runyaga has quit IRC01:37
*** supton_ has joined #zope01:43
*** supton has quit IRC01:47
*** daMaestro has quit IRC01:51
*** daMaestro has joined #zope02:01
*** ccomb has joined #zope02:07
*** sunew has quit IRC02:51
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** theo_ has quit IRC03:03
*** daMaestro has quit IRC03:10
*** mr_jolly has joined #zope03:10
*** River_Rat has joined #zope03:11
*** RiverRat has quit IRC03:13
*** mr_jolly has quit IRC03:17
*** Spanktar has quit IRC03:40
*** tiwula has quit IRC03:44
*** benji has quit IRC04:25
*** River_Rat has quit IRC04:35
*** RiverRat has joined #zope04:35
*** do3cc has quit IRC04:42
*** benji has joined #zope05:49
*** River_Rat has joined #zope06:10
*** RiverRat has quit IRC06:13
*** River-Rat has joined #zope07:28
*** River_Rat has quit IRC07:30
*** Wu_ has joined #zope08:13
*** mgedmin_ has joined #zope08:14
*** kiorky_ has joined #zope08:15
*** dixond has joined #zope08:17
*** avn has quit IRC08:21
*** Wu has quit IRC08:21
*** zenwryly has quit IRC08:21
*** mgedmin has quit IRC08:21
*** zsh has quit IRC08:21
*** blueyed has quit IRC08:21
*** frapell has quit IRC08:21
*** lahwran has quit IRC08:21
*** kosh has quit IRC08:21
*** mcdonc has quit IRC08:21
*** kiorky has quit IRC08:21
*** dixond_ has quit IRC08:21
*** mitchell`off has quit IRC08:21
*** gawel has quit IRC08:21
*** raydeo has quit IRC08:21
*** benji has quit IRC08:21
*** benbangert has quit IRC08:21
*** rodgort has quit IRC08:21
*** benji has joined #zope08:22
*** frapell has joined #zope08:22
*** zsh has joined #zope08:22
*** blueyed has joined #zope08:22
*** mcdonc has joined #zope08:22
*** zenwryly has joined #zope08:22
*** mitchell`off has joined #zope08:22
*** lahwran has joined #zope08:22
*** benbangert has joined #zope08:22
*** gawel has joined #zope08:22
*** kosh has joined #zope08:22
*** raydeo has joined #zope08:22
*** rodgort has joined #zope08:22
*** alga has joined #zope08:22
*** River_Rat has joined #zope08:23
*** avn has joined #zope08:24
*** River-Rat has quit IRC08:26
*** alga has quit IRC08:29
*** tisto has joined #zope08:34
*** River-Rat has joined #zope08:54
*** __mac__ has joined #zope08:57
*** River_Rat has quit IRC08:57
*** zagy has joined #zope09:00
*** theo_ has joined #zope09:05
*** Wu_ has quit IRC09:23
*** Wu has joined #zope09:23
*** thetet has joined #zope09:24
*** menesis has joined #zope10:03
*** giacomos has joined #zope10:04
*** River_Rat has joined #zope10:36
*** mitchell`off is now known as mitchell`10:37
*** River-Rat has quit IRC10:38
*** sunew has joined #zope10:45
*** theo_ has quit IRC10:46
*** avoinea has joined #zope10:53
*** mr_jolly has joined #zope10:55
*** eperez has joined #zope10:55
*** avn has quit IRC11:00
*** avn has joined #zope11:00
*** River_Rat has quit IRC11:01
*** zsh has quit IRC11:01
*** River_Rat has joined #zope11:01
*** zsh has joined #zope11:02
*** MrTango has joined #zope11:20
*** tisto has quit IRC11:23
*** TomBlockley has joined #zope11:28
*** tisto has joined #zope11:34
*** maurits has joined #zope11:37
*** do3cc has joined #zope11:44
*** evilbungle has joined #zope12:01
*** evilbungle has quit IRC12:06
*** evilbungle has joined #zope12:09
*** tisto has quit IRC12:09
*** zenwryly has quit IRC12:09
*** zenwryly has joined #zope12:09
*** tisto has joined #zope12:10
*** River-Rat has joined #zope12:12
*** River_Rat has quit IRC12:15
*** River-Rat is now known as RiverRat12:15
*** sunew has quit IRC12:18
*** menesis has quit IRC12:36
*** teix has joined #zope12:48
*** fredvd has joined #zope12:49
*** goschtl has joined #zope12:57
*** RichyB has joined #zope12:59
*** sunew has joined #zope13:05
*** J1m has joined #zope13:09
*** jakke has left #zope13:17
*** menesis has joined #zope13:21
*** theo_ has joined #zope13:41
*** tisto is now known as tisto|away14:06
*** paolo has joined #zope14:07
*** J1m has quit IRC14:18
*** giacomos has quit IRC14:25
*** menesis has left #zope14:27
*** menesis_ has joined #zope14:28
*** menesis_ is now known as menesis14:31
*** giacomos has joined #zope14:33
*** thetet has quit IRC14:34
*** paolo has left #zope14:42
*** dayne has joined #zope14:45
*** giacomos has quit IRC14:57
*** giacomos has joined #zope14:59
*** eperez has quit IRC14:59
*** menesis has quit IRC15:07
*** theo_ has quit IRC15:09
*** menesis has joined #zope15:11
*** River_Rat has joined #zope15:25
*** RiverRat has quit IRC15:27
*** __mac__ has quit IRC15:28
*** giacomos has quit IRC15:33
*** giacomos has joined #zope15:35
*** thetet has joined #zope15:38
*** menesis has quit IRC15:45
*** dayne has quit IRC15:48
*** esteele has joined #zope15:48
*** dayne has joined #zope15:48
*** thetet has quit IRC15:58
*** sp0cksbeard has joined #zope16:02
*** J1m has joined #zope16:02
*** __mac__ has joined #zope16:05
*** tisto|away is now known as tisto16:12
*** J1m has quit IRC16:21
*** tisto has quit IRC16:23
*** zenwryly has quit IRC16:30
*** J1m has joined #zope16:35
*** tisto has joined #zope16:36
*** J1m has quit IRC16:37
*** J1m has joined #zope16:38
*** MrTango has quit IRC16:45
*** eperez has joined #zope17:05
*** thetet has joined #zope17:09
*** zagy1 has joined #zope17:25
*** zagy has quit IRC17:26
*** dayne has quit IRC17:27
*** roq_ has joined #zope17:32
*** roq_ has quit IRC17:32
*** roq_ has joined #zope17:33
roq_Hello, I'm commiting a simple object at a btreefolder2 but I thing it is getting too long to finish the commit. My btreefolder2 has about 8.000 itens and 100 new itens take about 25 seconds...17:36
roq_Is this normal?17:36
RichyBSeems a bit high. Are you getting ConflictErrors?17:40
roq_RichyB: no17:41
roq_my object is something like: class MyObject(Implicit, Persistent, RoleManager, Item): ...17:47
betabug1st, simply base it on SimpleItem instead of on all that laundry list17:48
betabug2nd, are you manually committing these things?17:48
betabug(or instead of SimpleItem, base on Folder)17:49
*** runyaga has joined #zope17:50
*** runyaga has quit IRC17:50
*** runyaga has joined #zope17:50
roq_betabug: ok, I wil try this. But this is correct? (all that inheritance)17:50
betabugprobably17:50
roq_betabug: I am creating 100 and commiting17:51
betabugif you are writing a filesystem based Zope 2 product check out my sample code http://papakiteliatziar.gr/BetaBoring17:51
betabugwhy are you committing manually then?17:51
roq_betabug: because at the and I will have a lot of objects (5,000,000)17:52
roq_I was testing if 100 is a good number. Actually I dont know what is the best strategy17:53
betabugyou plan on adding them all in a loop or so?17:53
roq_yes17:54
betabugright, then you'd want some intermediary commits17:54
betabugbut adding 100 items to a BTreeFolder2 shouldn't take so long17:54
roq_I do not have all objects ready now, but at the end will be that number17:54
betabugare these big objects?17:55
roq_betabug: the object has about 20 string attributes and 4 methods17:56
roq_some attributes are integers17:56
betabugwell, if the string attributes don't contain 1MB each, that wouldn't qualify as "big"17:56
betabugso, this is not normal behaviour, you are doing something wrong17:56
roq_each string attribute has less than 200 chars17:57
*** zagy1 has quit IRC17:57
betabughow are you adding them? can you put some snippet on a pastebin somewhere?17:57
roq_betabug: http://pastebin.com/ZeqLriMT18:02
*** sunew has quit IRC18:02
roq_the commit is on line 9618:02
roq_the folder we are adding is pastaCnpj, line 9118:03
roq_criaCnpj returns a new Cnpj object18:04
*** daMaestro has joined #zope18:05
betabughmm, which zope version is this, Zope 2?18:06
roq_yes18:07
roq_   Zope Version               (2.13.12, python 2.6.6, linux2)18:07
roq_the same Zope has a Plone site, so we need to use this version18:07
betabugwhen you say "if num_sempontos not in pastaCnpj", what is pastaCnpj exactly here?18:09
roq_pastaCnpj is the BTreeFolder218:09
roq_I can not insert the same object twice, so I verify if it is already there18:10
betabughmmm18:10
teixroq_: code variables names should be english too or only us and a couple of other folks could read it ;)18:11
betabugtry with "if num_sempontos not in pastaCnpj.objectIds():"18:11
betabugteix: yeah, especially you ;-)18:11
teixbetabug: eheh18:11
betabugbut in this case I just didn't see what the assignment on the top was coming too18:12
roq_betabug: ok18:12
roq_betabug: the place where it hangs is between lines 95 and 9718:13
roq_where the commit is18:13
betabughmmm18:13
betabugwhich is where it would write to disk18:14
*** esteele is now known as esteele|away18:14
betabugis that zope instance working normally otherwise?18:16
teixroq_: what about using Folder as base?18:16
betabug+118:17
roq_betabug: yes, it is working properly18:17
betabugnot for the large object, there BTreeFolder2 should be fine18:17
*** m8 has joined #zope18:17
betabugbut for the child object18:17
roq_teix: I think Folder will not be happy with 5,000,000 objects18:17
*** m8 has quit IRC18:18
roq_am I right?18:18
teixroq_: hmmm  implements(ICnpj, IIndexableContent) maybe the bottleneck is on indexing?18:18
*** m8 has joined #zope18:18
betabugteix: I'm rusty... would that happen on comitting?18:18
teixbetabug: hmm not sure18:19
betabugbut it's one thing to check18:19
roq_teix: we are not cataloging it yet18:19
roq_teix: we are only inserting. The catalog is empty for now18:20
teixroq_: pastaCnpj and pastaInfo are what kind of folders?18:20
betabugthere is one other thing that strikes me18:20
betabugpastaCnpj[num_sempontos] = criaCnpj(cnpj, num_sempontos)18:21
betabugthis is where you actually add stuff to the BTreeFolder218:21
roq_both -> BTreeFolder 218:21
betabugright?18:21
teixroq_: ok18:21
roq_yes18:21
betabughmm, have to look it up, but I don't think this is the way it's done18:22
roq_betabug: it works, we can see the objects at the ZMI and access them via code. I will find more info about it18:23
betabugusually you add stuff to a Folder/BTreeFolder2 using xy.manage_addProduct['ProductName'].productsAddMethod(...)18:23
betabugand internally it would use self._setObject(...)18:24
betabugroq_: "it works", but you have a problem... you might as well make sure that you're doing it right18:24
roq_betabug: yeah18:25
roq_thanks for all help18:25
roq_I will try what you said18:25
teixroq_: +118:25
teixroq_: boa sorte! ;)18:25
roq_and look for that docs (BTreeFolder2)18:25
roq_teix, thanks to you too. Obrigado!18:26
*** supton has joined #zope18:29
*** menesis has joined #zope18:35
*** goschtl has quit IRC18:39
*** zsh has quit IRC18:46
*** esteele|away is now known as esteele18:48
*** fredvd has quit IRC18:49
*** River_Rat has quit IRC18:56
*** River_Rat has joined #zope18:59
*** tiwula has joined #zope19:05
*** alga has joined #zope19:06
*** giacomos has quit IRC19:06
*** alga has quit IRC19:11
*** zsh has joined #zope19:16
*** Spanktar has joined #zope19:17
*** mitchell` is now known as mitchell`off19:27
*** polysix has quit IRC19:28
*** polysix has joined #zope19:29
*** maurits has quit IRC19:40
*** tiwula has quit IRC19:42
*** zsh has quit IRC19:47
*** tisto has quit IRC19:48
*** __mac__ has quit IRC19:59
*** menesis has left #zope20:00
*** running_clam has joined #zope20:00
*** avoinea has quit IRC20:03
*** runyaga has quit IRC20:05
*** iana has joined #zope20:16
*** tiwula has joined #zope20:19
*** iana has quit IRC20:21
*** iana has joined #zope20:21
*** runyaga has joined #zope20:24
*** runyaga has quit IRC20:24
*** runyaga has joined #zope20:24
*** evilbungle has quit IRC20:29
*** running_clam1 has joined #zope20:32
*** running_clam has quit IRC20:32
*** iana has quit IRC20:33
*** iana has joined #zope20:35
*** iana has quit IRC20:37
*** iana has joined #zope20:40
*** iana has quit IRC20:43
*** zenwryly has joined #zope20:44
*** iana has joined #zope20:46
*** esteele is now known as esteele|away20:46
*** running_clam1 has quit IRC20:47
*** running_clam has joined #zope20:47
*** esteele|away is now known as esteele20:52
*** running_clam has quit IRC20:53
*** zagy has joined #zope21:00
*** iana has quit IRC21:01
*** iana has joined #zope21:02
*** menesis has joined #zope21:13
*** TomBlockley has quit IRC21:15
*** menesis has quit IRC21:16
*** menesis has joined #zope21:19
*** iana has quit IRC21:25
*** iana has joined #zope21:28
*** running_clam has joined #zope21:32
*** running_clam has left #zope21:33
*** iana has quit IRC21:35
*** iana has joined #zope21:36
*** iana has quit IRC21:41
*** iana has joined #zope21:46
*** teix has quit IRC21:56
*** iana has quit IRC22:11
*** iana has joined #zope22:11
*** RichyB has quit IRC22:26
*** iana has quit IRC22:27
*** iana has joined #zope22:34
*** menesis has quit IRC22:37
*** iana has quit IRC22:43
*** zagy has quit IRC22:46
*** iana has joined #zope22:49
*** iana has quit IRC22:57
*** iana has joined #zope22:58
*** iana has quit IRC23:00
*** iana has joined #zope23:03
*** J1m has quit IRC23:38
*** ccomb has quit IRC23:40
*** iana has quit IRC23:41
*** J1m has joined #zope23:43
*** three18ti has quit IRC23:48
*** iana has joined #zope23:48

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