Way of using prepared statements and some related questions
Posted: Sun 12 Mar 2017 18:06
Hi,
Using Delphi 10.1 Update 2, SQL Server 2012 and PostgreSQL 9.6.2.
My application uses prepared statements using TUniQuery.Prepare() when TUniQuery.Options.AutoPrepare set to False. Preparing is done at the time of application creation.
These prepared queries are not calling TUniQuery.UnPrepare() at the time of application terminate.
I am wondering;
1- Does TUniQuery has a feature to call UnPrepare() automatically at the time of execution of TUniQuery.Free()?
2- Assuming TUniQuery is not automatically calling UnPrepare, will such a usage described above can be a problem for me?
3- Is there a performance difference/server overhead, etc. when using TUniQuery.Options.AutoPrepare set to True and the method I described above.
4- I know that UniDAC has connection pooling. Does it also have Prepared Statement Pooling?
Thanks.
Using Delphi 10.1 Update 2, SQL Server 2012 and PostgreSQL 9.6.2.
My application uses prepared statements using TUniQuery.Prepare() when TUniQuery.Options.AutoPrepare set to False. Preparing is done at the time of application creation.
These prepared queries are not calling TUniQuery.UnPrepare() at the time of application terminate.
I am wondering;
1- Does TUniQuery has a feature to call UnPrepare() automatically at the time of execution of TUniQuery.Free()?
2- Assuming TUniQuery is not automatically calling UnPrepare, will such a usage described above can be a problem for me?
3- Is there a performance difference/server overhead, etc. when using TUniQuery.Options.AutoPrepare set to True and the method I described above.
4- I know that UniDAC has connection pooling. Does it also have Prepared Statement Pooling?
Thanks.