Page 1 of 1

EntityDAC Thread Safe?

Posted: Thu 05 Feb 2015 14:29
by dragon27
Hello,

please excuse my bad English.
Is EntityDAC Thread Safe? Which cases and options are necessary?

Thank You!

Best Regards

Re: EntityDAC Thread Safe?

Posted: Fri 06 Feb 2015 10:16
by AlexP
Hello,

Please describe in more details the behavior you want to implement in threads - and we will try to help you resolve the issue.

Re: EntityDAC Thread Safe?

Posted: Fri 06 Feb 2015 14:52
by dragon27
Hello,

thank you for your answer!

I like to develop a REST Server with IndyHTTP. No the HTTPServer of Indy will be generate for every client a seperate thread. I have placed my Connection and EntityContext on a Datamodule. Will i need to generate for each client a seperate Connection and EntityContext or can i access from all Thread the components on the Datamodule?

Thank you!

Re: EntityDAC Thread Safe?

Posted: Mon 09 Feb 2015 12:42
by AlexP
Yes, EntityDAC allows to work in this mode. However, you should also take into account the specificity of a particular database, since some databases don't support (or partially support) multi-threading.