Hello,
please excuse my bad English.
Is EntityDAC Thread Safe? Which cases and options are necessary?
Thank You!
Best Regards
EntityDAC Thread Safe?
Re: EntityDAC Thread Safe?
Hello,
Please describe in more details the behavior you want to implement in threads - and we will try to help you resolve the issue.
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?
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!
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?
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.