*** LeoRochael has quit IRC | 00:05 | |
*** les_sylvains has quit IRC | 00:20 | |
*** Arfrever has joined #zope | 00:28 | |
*** m8 has quit IRC | 00:32 | |
*** nande has joined #zope | 00:52 | |
*** supton has quit IRC | 00:56 | |
*** supton has joined #zope | 01:12 | |
*** mcdonc has quit IRC | 01:22 | |
*** J1m_ has quit IRC | 01:28 | |
*** mcdonc has joined #zope | 01:30 | |
*** supton has quit IRC | 01:46 | |
*** fdrake has quit IRC | 01:59 | |
*** kittonian has joined #zope | 02:04 | |
kittonian | hi all | 02:04 |
---|---|---|
kittonian | anyone around? | 02:04 |
*** phrearch has joined #zope | 02:05 | |
phrearch | hi | 02:05 |
phrearch | anyone mind helping me a bit making zope.security compile in pypy? | 02:05 |
*** phrearch has quit IRC | 02:14 | |
*** phrearch has joined #zope | 02:15 | |
*** phrearch has quit IRC | 02:17 | |
*** kittonian has left #zope | 02:42 | |
*** mcdonc has quit IRC | 02:50 | |
*** kosh has quit IRC | 02:51 | |
*** _mup_ has quit IRC | 03:00 | |
*** _mup_ has joined #zope | 03:00 | |
*** River-Rat has joined #zope | 03:03 | |
*** River_Rat has quit IRC | 03:05 | |
*** mr_jolly has quit IRC | 03:07 | |
*** River_Rat has joined #zope | 03:14 | |
*** River-Rat has quit IRC | 03:17 | |
*** fdrake has joined #zope | 03:20 | |
*** River-Rat has joined #zope | 03:21 | |
*** River_Rat has quit IRC | 03:22 | |
*** daMaestro has quit IRC | 03:24 | |
*** tiwula has quit IRC | 03:46 | |
*** tiwula has joined #zope | 04:04 | |
*** mcdonc has joined #zope | 04:09 | |
*** nande has quit IRC | 04:40 | |
*** KageSenshi has quit IRC | 04:54 | |
*** KageSenshi has joined #zope | 04:55 | |
*** Arfrever has quit IRC | 05:21 | |
*** __mac__1 has quit IRC | 07:30 | |
*** tiwula has quit IRC | 07:34 | |
*** zagy has joined #zope | 09:08 | |
*** agroszer has joined #zope | 09:25 | |
*** __mac__ has joined #zope | 09:27 | |
*** mgedmin has quit IRC | 09:35 | |
*** mgedmin has joined #zope | 09:35 | |
*** sunew has joined #zope | 09:44 | |
*** goschtl has joined #zope | 09:55 | |
*** zagy has quit IRC | 09:56 | |
*** mr_jolly has joined #zope | 10:02 | |
*** goschtl has quit IRC | 10:07 | |
*** sunew has quit IRC | 10:07 | |
*** sunew has joined #zope | 10:10 | |
*** KageSenshi has quit IRC | 10:48 | |
*** KageSenshi has joined #zope | 10:49 | |
*** sm has quit IRC | 11:04 | |
*** eperez has joined #zope | 11:04 | |
*** MrTango has joined #zope | 11:06 | |
*** Guest74666 has joined #zope | 11:07 | |
*** mitchell`off is now known as mitchell` | 11:30 | |
*** RichyB has joined #zope | 11:44 | |
*** kosh has joined #zope | 12:01 | |
*** kosh has quit IRC | 12:23 | |
*** mr_jolly has quit IRC | 12:28 | |
*** mr_jolly has joined #zope | 12:33 | |
*** miano_ has joined #zope | 13:03 | |
*** miano has quit IRC | 13:07 | |
*** fdrake has quit IRC | 13:31 | |
*** J1m_ has joined #zope | 13:49 | |
*** miano__ has joined #zope | 14:26 | |
*** miano_ has quit IRC | 14:29 | |
*** kosh has joined #zope | 14:39 | |
*** zagy has joined #zope | 14:42 | |
*** RichyB has joined #zope | 14:42 | |
*** J1m_ has quit IRC | 14:47 | |
*** zagy has quit IRC | 14:49 | |
*** zagy has joined #zope | 14:49 | |
*** KageSenshi has quit IRC | 14:51 | |
*** LeoRochael has joined #zope | 15:03 | |
*** kosh has quit IRC | 15:17 | |
*** zagy has quit IRC | 15:17 | |
*** zagy has joined #zope | 15:17 | |
*** kosh has joined #zope | 15:17 | |
*** zagy has quit IRC | 15:31 | |
*** sunew has quit IRC | 15:39 | |
*** zagy has joined #zope | 15:40 | |
*** nande has joined #zope | 15:59 | |
*** RichyB has quit IRC | 16:04 | |
*** kosh has quit IRC | 16:05 | |
*** zagy has quit IRC | 16:05 | |
*** zagy has joined #zope | 16:06 | |
*** fdrake has joined #zope | 16:09 | |
*** evilbungle has joined #zope | 16:10 | |
*** J1m_ has joined #zope | 16:15 | |
*** evilbungle has quit IRC | 16:27 | |
*** evilbungle has joined #zope | 16:29 | |
*** evilbungle has quit IRC | 16:39 | |
*** __mac__ has quit IRC | 16:47 | |
*** evilbungle has joined #zope | 16:47 | |
*** evilbungle has quit IRC | 16:51 | |
*** RichyB has joined #zope | 16:53 | |
*** mr_jolly has quit IRC | 16:55 | |
*** zagy has quit IRC | 16:59 | |
*** zagy has joined #zope | 16:59 | |
*** mr_jolly has joined #zope | 16:59 | |
*** zagy has quit IRC | 17:09 | |
*** mr_jolly has quit IRC | 17:12 | |
*** zagy has joined #zope | 17:45 | |
*** RichyB has quit IRC | 17:47 | |
*** daMaestro has joined #zope | 17:56 | |
*** RichyB has joined #zope | 17:58 | |
*** miano__ has quit IRC | 18:07 | |
*** tiwula has joined #zope | 18:26 | |
*** __mac__ has joined #zope | 18:42 | |
*** kosh has joined #zope | 18:43 | |
*** Guest74666 is now known as sm | 18:45 | |
*** RichyB has quit IRC | 18:49 | |
*** agroszer has quit IRC | 18:50 | |
*** mcdonc has quit IRC | 18:50 | |
*** m8 has joined #zope | 18:52 | |
*** supton has joined #zope | 18:54 | |
*** mcdonc has joined #zope | 19:02 | |
*** eperez has quit IRC | 19:02 | |
*** River_Rat has joined #zope | 19:27 | |
*** River-Rat has quit IRC | 19:31 | |
nande | hey guys, i'm experimenting with zodb and threads, i've seen that i could create a new connection for other threads, but what shoudl i do with transactions | 19:35 |
nande | i'm using transaction.commit() does that works from multiple threads? | 19:35 |
*** menesis has joined #zope | 19:44 | |
*** MrTango has quit IRC | 19:49 | |
*** agroszer has joined #zope | 20:06 | |
*** Arfrever has joined #zope | 20:09 | |
*** mitchell` is now known as mitchell`off | 20:10 | |
*** agroszer has quit IRC | 20:20 | |
J1m_ | nande, connections and transaction managers are not thread safe. | 20:25 |
J1m_ | sharing them across threads requires care and should only be done by experts. | 20:26 |
nande | thanks J1m_ i'm not saying share a connection, instead create one connection per thread | 20:26 |
J1m_ | This means, for example that if you want to share a transaction manager between threads, you need to create it and manager it yourself. | 20:26 |
nande | i see. | 20:27 |
J1m_ | You can't use the default per-thread manager. | 20:27 |
nande | http://www.zodb.org/documentation/guide/transactions.html << i've read that i shouldnt use it, | 20:27 |
nande | i've read that it was thread-aware... | 20:27 |
J1m_ | It's thread aware n that it's tied to a specific thread by default. | 20:27 |
nande | ransaction.get() < i use this | 20:27 |
nande | i see. | 20:28 |
nande | in the bottom of the doc i pointed it says i can share a storage as long as i create new connections for each thread, is that ok? | 20:28 |
J1m_ | If you want cross-thread transactions, you need to create your own transaction manager and protect it yourself. This usually doesn't turn out well. | 20:28 |
J1m_ | Yes, storages are thread safe. | 20:29 |
nande | :( thanks | 20:29 |
J1m_ | The usual model is that a transaction is used by a single thread. | 20:29 |
J1m_ | That handles 99.9% (or more) if use cases. | 20:30 |
J1m_ | s/if/of | 20:30 |
nande | ok, i'll see if i can modify my structure. | 20:30 |
nande | http://www.zodb.org/zodbbook/transactions.html#transaction-managers << this paragraph seems to say the oposite, is confusing | 20:37 |
J1m_ | <shrug> I didn't write that. | 20:41 |
J1m_ | I find a lot of technical documentation confusing this way. Often too terse and leaving questions unanswered. | 20:42 |
J1m_ | Like, what does it mean to be "thread aware"? That's pretty vague. | 20:42 |
nande | :/ no prob, but; are you sure of what you said to me? or should i listen to what the doc says? | 20:42 |
nande | indeed. | 20:42 |
J1m_ | Yes, I'm sure. I can't vouch for how you unserstood what I wrote. | 20:43 |
J1m_ | s/wrote/said | 20:43 |
J1m_ | s/unser/under | 20:43 |
nande | don't worry at correcting yourself, i can't see the errors. | 20:46 |
nande | so, i'll rephrase myself. Can i use the built-in transaction manager if i use transaction.get() on each thread? | 20:47 |
J1m_ | As long as your transactions never span more than one thread, sure. | 20:47 |
J1m_ | If you want to use multiple threads in a single transaction, then no. | 20:48 |
nande | but if i want to use multiple threads, each one with its own transaction? (always commited/aborted transactions per thread) | 20:49 |
J1m_ | Yes, that's fine. That's the standard pattern. | 20:50 |
nande | thank god, thank you J1m_ for your time and help :) | 20:51 |
kosh | hail insane people | 20:59 |
*** nande has quit IRC | 21:07 | |
*** les_sylvains has joined #zope | 21:14 | |
*** mr_jolly has joined #zope | 21:30 | |
*** mr_jolly has left #zope | 21:31 | |
*** Arfrever has quit IRC | 21:35 | |
*** sunew has joined #zope | 21:40 | |
*** __mac__ has quit IRC | 21:42 | |
*** Arfrever has joined #zope | 21:44 | |
*** mr_jolly has joined #zope | 22:03 | |
*** menesis has quit IRC | 22:08 | |
*** zagy has quit IRC | 22:21 | |
*** River-Rat has joined #zope | 22:28 | |
*** River_Rat has quit IRC | 22:30 | |
*** mr_jolly has quit IRC | 22:37 | |
*** mr_jolly has joined #zope | 22:40 | |
*** mcdonc has quit IRC | 22:50 | |
*** supton has quit IRC | 23:18 | |
*** River_Rat has joined #zope | 23:27 | |
*** River-Rat has quit IRC | 23:30 | |
*** River_Rat is now known as RiverRat | 23:32 | |
*** J1m_ has quit IRC | 23:41 | |
*** mcdonc has joined #zope | 23:45 | |
*** mr_jolly has left #zope | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!