EntityDAC Thread Safe?

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
dragon27
Posts: 2
Joined: Thu 05 Feb 2015 14:21

EntityDAC Thread Safe?

Post by dragon27 » Thu 05 Feb 2015 14:29

Hello,

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

Thank You!

Best Regards

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EntityDAC Thread Safe?

Post by AlexP » Fri 06 Feb 2015 10:16

Hello,

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

dragon27
Posts: 2
Joined: Thu 05 Feb 2015 14:21

Re: EntityDAC Thread Safe?

Post by dragon27 » Fri 06 Feb 2015 14:52

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!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EntityDAC Thread Safe?

Post by AlexP » Mon 09 Feb 2015 12:42

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.

Post Reply