EntityDAC Thread Safe?

EntityDAC Thread Safe?

Postby 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
dragon27
 
Posts: 2
Joined: Thu 05 Feb 2015 14:21

Re: EntityDAC Thread Safe?

Postby 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.
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35

Re: EntityDAC Thread Safe?

Postby 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!
dragon27
 
Posts: 2
Joined: Thu 05 Feb 2015 14:21

Re: EntityDAC Thread Safe?

Postby 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.
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35


Return to EntityDAC