IRC log of #zope for Thursday, 2012-10-11

*** LeoRochael has quit IRC00:05
*** les_sylvains has quit IRC00:20
*** Arfrever has joined #zope00:28
*** m8 has quit IRC00:32
*** nande has joined #zope00:52
*** supton has quit IRC00:56
*** supton has joined #zope01:12
*** mcdonc has quit IRC01:22
*** J1m_ has quit IRC01:28
*** mcdonc has joined #zope01:30
*** supton has quit IRC01:46
*** fdrake has quit IRC01:59
*** kittonian has joined #zope02:04
kittonianhi all02:04
kittoniananyone around?02:04
*** phrearch has joined #zope02:05
phrearchhi02:05
phrearchanyone mind helping me a bit making zope.security compile in pypy?02:05
*** phrearch has quit IRC02:14
*** phrearch has joined #zope02:15
*** phrearch has quit IRC02:17
*** kittonian has left #zope02:42
*** mcdonc has quit IRC02:50
*** kosh has quit IRC02:51
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** River-Rat has joined #zope03:03
*** River_Rat has quit IRC03:05
*** mr_jolly has quit IRC03:07
*** River_Rat has joined #zope03:14
*** River-Rat has quit IRC03:17
*** fdrake has joined #zope03:20
*** River-Rat has joined #zope03:21
*** River_Rat has quit IRC03:22
*** daMaestro has quit IRC03:24
*** tiwula has quit IRC03:46
*** tiwula has joined #zope04:04
*** mcdonc has joined #zope04:09
*** nande has quit IRC04:40
*** KageSenshi has quit IRC04:54
*** KageSenshi has joined #zope04:55
*** Arfrever has quit IRC05:21
*** __mac__1 has quit IRC07:30
*** tiwula has quit IRC07:34
*** zagy has joined #zope09:08
*** agroszer has joined #zope09:25
*** __mac__ has joined #zope09:27
*** mgedmin has quit IRC09:35
*** mgedmin has joined #zope09:35
*** sunew has joined #zope09:44
*** goschtl has joined #zope09:55
*** zagy has quit IRC09:56
*** mr_jolly has joined #zope10:02
*** goschtl has quit IRC10:07
*** sunew has quit IRC10:07
*** sunew has joined #zope10:10
*** KageSenshi has quit IRC10:48
*** KageSenshi has joined #zope10:49
*** sm has quit IRC11:04
*** eperez has joined #zope11:04
*** MrTango has joined #zope11:06
*** Guest74666 has joined #zope11:07
*** mitchell`off is now known as mitchell`11:30
*** RichyB has joined #zope11:44
*** kosh has joined #zope12:01
*** kosh has quit IRC12:23
*** mr_jolly has quit IRC12:28
*** mr_jolly has joined #zope12:33
*** miano_ has joined #zope13:03
*** miano has quit IRC13:07
*** fdrake has quit IRC13:31
*** J1m_ has joined #zope13:49
*** miano__ has joined #zope14:26
*** miano_ has quit IRC14:29
*** kosh has joined #zope14:39
*** zagy has joined #zope14:42
*** RichyB has joined #zope14:42
*** J1m_ has quit IRC14:47
*** zagy has quit IRC14:49
*** zagy has joined #zope14:49
*** KageSenshi has quit IRC14:51
*** LeoRochael has joined #zope15:03
*** kosh has quit IRC15:17
*** zagy has quit IRC15:17
*** zagy has joined #zope15:17
*** kosh has joined #zope15:17
*** zagy has quit IRC15:31
*** sunew has quit IRC15:39
*** zagy has joined #zope15:40
*** nande has joined #zope15:59
*** RichyB has quit IRC16:04
*** kosh has quit IRC16:05
*** zagy has quit IRC16:05
*** zagy has joined #zope16:06
*** fdrake has joined #zope16:09
*** evilbungle has joined #zope16:10
*** J1m_ has joined #zope16:15
*** evilbungle has quit IRC16:27
*** evilbungle has joined #zope16:29
*** evilbungle has quit IRC16:39
*** __mac__ has quit IRC16:47
*** evilbungle has joined #zope16:47
*** evilbungle has quit IRC16:51
*** RichyB has joined #zope16:53
*** mr_jolly has quit IRC16:55
*** zagy has quit IRC16:59
*** zagy has joined #zope16:59
*** mr_jolly has joined #zope16:59
*** zagy has quit IRC17:09
*** mr_jolly has quit IRC17:12
*** zagy has joined #zope17:45
*** RichyB has quit IRC17:47
*** daMaestro has joined #zope17:56
*** RichyB has joined #zope17:58
*** miano__ has quit IRC18:07
*** tiwula has joined #zope18:26
*** __mac__ has joined #zope18:42
*** kosh has joined #zope18:43
*** Guest74666 is now known as sm18:45
*** RichyB has quit IRC18:49
*** agroszer has quit IRC18:50
*** mcdonc has quit IRC18:50
*** m8 has joined #zope18:52
*** supton has joined #zope18:54
*** mcdonc has joined #zope19:02
*** eperez has quit IRC19:02
*** River_Rat has joined #zope19:27
*** River-Rat has quit IRC19:31
nandehey 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 transactions19:35
nandei'm using transaction.commit() does that works from multiple threads?19:35
*** menesis has joined #zope19:44
*** MrTango has quit IRC19:49
*** agroszer has joined #zope20:06
*** Arfrever has joined #zope20:09
*** mitchell` is now known as mitchell`off20:10
*** agroszer has quit IRC20: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
nandethanks J1m_ i'm not saying share a connection, instead create one connection per thread20: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
nandei see.20:27
J1m_You can't use the default per-thread manager.20:27
nandehttp://www.zodb.org/documentation/guide/transactions.html << i've read that i shouldnt use it,20:27
nandei'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
nanderansaction.get() < i use this20:27
nandei see.20:28
nandein 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:( thanks20: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/of20:30
nandeok, i'll see if i can modify my structure.20:30
nandehttp://www.zodb.org/zodbbook/transactions.html#transaction-managers << this paragraph seems to say the oposite, is confusing20: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
nandeindeed.20:42
J1m_Yes, I'm sure.  I can't vouch for how you unserstood what I wrote.20:43
J1m_s/wrote/said20:43
J1m_s/unser/under20:43
nandedon't worry at correcting yourself, i can't see the errors.20:46
nandeso, 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
nandebut 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
nandethank god, thank you J1m_ for your time and help :)20:51
koshhail insane people20:59
*** nande has quit IRC21:07
*** les_sylvains has joined #zope21:14
*** mr_jolly has joined #zope21:30
*** mr_jolly has left #zope21:31
*** Arfrever has quit IRC21:35
*** sunew has joined #zope21:40
*** __mac__ has quit IRC21:42
*** Arfrever has joined #zope21:44
*** mr_jolly has joined #zope22:03
*** menesis has quit IRC22:08
*** zagy has quit IRC22:21
*** River-Rat has joined #zope22:28
*** River_Rat has quit IRC22:30
*** mr_jolly has quit IRC22:37
*** mr_jolly has joined #zope22:40
*** mcdonc has quit IRC22:50
*** supton has quit IRC23:18
*** River_Rat has joined #zope23:27
*** River-Rat has quit IRC23:30
*** River_Rat is now known as RiverRat23:32
*** J1m_ has quit IRC23:41
*** mcdonc has joined #zope23:45
*** mr_jolly has left #zope23:51

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