Hi !
I have problem understating what are rules for using elxir in multithreaded 
applications.
In
http://elixir.ematia.de/trac/wiki/TutorialDivingIn#a8.Moreonsessions
we found:
"Elixir provides a default global contextual (thread-local) session for you to 
use,"

Does it mean every thread gets thread local session on which it can safely 
operate ?

My scenario is to use threads to not block main qt app loop for long time DB 
operations.  I wish I have one default session for use in qt thread (fast 
access, GUI updates etc) and few session backgrounds.
1. Can I use same session for all threads ?
2. If not can I pass elxir Entities abong threads ? Should I "copy"/"assign" 
them to thread local session ? 

TIA, regards,

PS:
Big thanks for answering my previous questions. I just needed to dig topic 
more and didn't want to noise this mailing list later.


-- 
Mateusz Korniak

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en.

Reply via email to