*** J1m_ has joined #zodb | 00:29 | |
*** J1m has quit IRC | 00:32 | |
*** srichter__ has joined #zodb | 00:34 | |
*** J1m_ has quit IRC | 00:46 | |
*** JaRoel|4d has joined #zodb | 01:23 | |
*** fdrake has quit IRC | 01:55 | |
*** bolapara_ has joined #zodb | 02: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/x4uEQQtC | 02:06 |
---|---|---|
bolapara_ | using latest zodb, gevents in pypi | 02:07 |
bolapara_ | any suggestions would be appreciated | 02:10 |
davisagli | bolapara_: 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 RAM | 02:11 |
davisagli | it sounds like gevent must not be successfully monkey-patching something related to the thread-locals used by the transaction package | 02: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_ | ahh | 02:13 |
davisagli | you 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 |
davisagli | bolapara_: I'm not sure anyone's tried to make the ZODB work with greenlets yet, so you're probably mostly on your own | 02:18 |
davisagli | but might be worth asking on the zodb-dev mailing list to reach a slightly wider audience | 02:19 |
bolapara_ | davisagli: OK. will reevaluate if zodb is the right choice then go from there. thanks for the help | 02: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 |
davisagli | bolapara_: nice | 02:48 |
*** bolapara_ has quit IRC | 03:21 | |
*** davisagli has left #zodb | 03:31 | |
*** davisagli has joined #zodb | 03:49 | |
*** nueces has quit IRC | 07:30 | |
*** fdrake has joined #zodb | 07:37 | |
*** agroszer has joined #zodb | 09:20 | |
*** JaRoel|4d has quit IRC | 09:31 | |
*** JaRoel|4d has joined #zodb | 10:26 | |
*** fdrake has quit IRC | 13:43 | |
*** srichter__ is now known as srichter | 14:15 | |
*** fdrake has joined #zodb | 15:06 | |
*** JaRoel|4d has quit IRC | 15:16 | |
*** JaRoel has joined #zodb | 15:16 | |
*** J1m_ has joined #zodb | 16:15 | |
*** nueces has joined #zodb | 16:51 | |
*** agroszer has quit IRC | 18:24 | |
*** JaRoel has quit IRC | 18:42 | |
*** JaRoel|4d has joined #zodb | 18:45 | |
*** JaRoel|4d has quit IRC | 19:32 | |
*** srichter has quit IRC | 20:13 | |
*** srichter has joined #zodb | 20:19 | |
*** J1m_ has quit IRC | 21:08 | |
*** J1m_ has joined #zodb | 21:13 | |
*** J1m_ has quit IRC | 22:26 | |
*** J1m_ has joined #zodb | 22:27 | |
*** J1m has joined #zodb | 22:38 | |
*** J1m_ has quit IRC | 22:40 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!