I'm using EntityDAC with UniDAC and postgres.
On UniDAC, it is clear as to how to use pooling - just enable the property...
However, on EntityDac using the TEntityConnection, I'm not sure.
Any advice on how to do this without recreating connections every time?
Maybe by overloading one of the factory methods for creating a connection, which could use a pooled TUniConnection?
Enabling pooling with entitydac
Re: Enabling pooling with entitydac
EntityDAC doesn't support connection pooling. You can leave your suggestions at our UserVoice page (https://devart.uservoice.com/forums/240996-entitydac), and if there are many votes for your suggestion, we will implement it.
-
- Posts: 48
- Joined: Mon 30 Apr 2007 07:36
Re: Enabling pooling with entitydac
Hi darnocian
if you use UniDAC you can enable the pool directly in the creation of the UniDACConnection.
I include the EntityDAC.DataProvider.UniDAC.pas source in my project and I changed the
constructor TUniDACConnectionProvider.Create(DataProvider: TDataProvider);
setting the FUniConnection.Pooling := True (I also set MinPoolSize/MaxPoolSize properties)
Best Regards
if you use UniDAC you can enable the pool directly in the creation of the UniDACConnection.
I include the EntityDAC.DataProvider.UniDAC.pas source in my project and I changed the
constructor TUniDACConnectionProvider.Create(DataProvider: TDataProvider);
setting the FUniConnection.Pooling := True (I also set MinPoolSize/MaxPoolSize properties)
Best Regards
Re: Enabling pooling with entitydac
Yes, you can use this approach with pooled connections.