Page 1 of 1

Does TUniQuery support simultaneous Requests

Posted: Tue 04 Mar 2014 03:11
by randydom
i want to ask this question ( as it's so important at least for me ) :

I use a TUniQuery component in my project with a PostgreSQL Database , so let's suppose this : there are 10 users trying to Register or Logging at the same time , will the TUniQuery handle all these 10 simultaneous ( Register or logging ) Requests at the same time ? or what will happen please .

I read about using the Pooling Property , will this property be useful so that the my Query can handle simultaneous Requests or should i consider adding other option .

PS : i'm not using a thread to handle my requests i only use a DataModule and i create a TUniQuery on runtime for each Request .

many thanks

Re: Does TUniQuery support simultaneous Requests

Posted: Tue 04 Mar 2014 10:06
by AlexP
Hello,

To implement such behavior, you should create a separate thread in your server for each new user. In this case, all actions will be performed in separate threads.

Re: Does TUniQuery support simultaneous Requests

Posted: Tue 04 Mar 2014 11:01
by randydom
AlexP wrote:Hello,

To implement such behavior, you should create a separate thread in your server for each new user. In this case, all actions will be performed in separate threads.
Hello AlexP , that means without using a Thread it will be impossible that the TUniQuery can handle SIMULTANEOUS REQUESTS , although i set the Pooling Property to true ?

many thanks again

Re: Does TUniQuery support simultaneous Requests

Posted: Wed 05 Mar 2014 11:41
by AlexP
Pooling allows to save changes in the pool for further their usage and resource saving. For simultaneous query execution, you should implement separate threads for all the connections.