IRC log of #zodb for Thursday, 2013-04-04

*** J1m_ has joined #zodb00:29
*** J1m has quit IRC00:32
*** srichter__ has joined #zodb00:34
*** J1m_ has quit IRC00:46
*** JaRoel|4d has joined #zodb01:23
*** fdrake has quit IRC01:55
*** bolapara_ has joined #zodb02:04
bolapara_hi all.  im using zodb with greenlets (gevent).  getting "Duplicate tpc_begin calls for same transaction".  not sure what im doing wrong.  here is a simple example of the greenlet code: http://pastebin.com/x4uEQQtC02:06
bolapara_using latest zodb, gevents in pypi02:07
bolapara_any suggestions would be appreciated02:10
davisaglibolapara_: ZODB is probably not a good choice for use with greenlets if you're going to have a large number of connections, since each ZODB connection has its own in-RAM cache of objects from the database which tends to eat quite a bit of RAM02:11
davisagliit sounds like gevent must not be successfully monkey-patching something related to the thread-locals used by the transaction package02:12
bolapara_davisagli: hm.  well, for my purposes large memory use should be OK.  the number of concurrent greenlets should only be in the hundreds.02:12
bolapara_ahh02:13
davisagliyou can at least configure the cache size, and figure out what the performance implications are to not having data in cache :)02:13
bolapara_ok, thanks.  well if I dont get past this issue then it doesn't matter anyway :)02:15
davisaglibolapara_: I'm not sure anyone's tried to make the ZODB work with greenlets yet, so you're probably mostly on your own02:18
davisaglibut might be worth asking on the zodb-dev mailing list to reach a slightly wider audience02:19
bolapara_davisagli: OK.  will reevaluate if zodb is the right choice then go from there.  thanks for the help02:20
bolapara_davisagli: FYI, I was using all gevent native code until I added ZODB and when I did I forgot to do monkey.patch_all().  adding that made it work.02:47
davisaglibolapara_: nice02:48
*** bolapara_ has quit IRC03:21
*** davisagli has left #zodb03:31
*** davisagli has joined #zodb03:49
*** nueces has quit IRC07:30
*** fdrake has joined #zodb07:37
*** agroszer has joined #zodb09:20
*** JaRoel|4d has quit IRC09:31
*** JaRoel|4d has joined #zodb10:26
*** fdrake has quit IRC13:43
*** srichter__ is now known as srichter14:15
*** fdrake has joined #zodb15:06
*** JaRoel|4d has quit IRC15:16
*** JaRoel has joined #zodb15:16
*** J1m_ has joined #zodb16:15
*** nueces has joined #zodb16:51
*** agroszer has quit IRC18:24
*** JaRoel has quit IRC18:42
*** JaRoel|4d has joined #zodb18:45
*** JaRoel|4d has quit IRC19:32
*** srichter has quit IRC20:13
*** srichter has joined #zodb20:19
*** J1m_ has quit IRC21:08
*** J1m_ has joined #zodb21:13
*** J1m_ has quit IRC22:26
*** J1m_ has joined #zodb22:27
*** J1m has joined #zodb22:38
*** J1m_ has quit IRC22:40

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