API Questions on Kentico API.
Version 6.x > API > GeneralConnection Connection timeout View modes: 
User avatar
Certified Developer 8
Certified Developer 8
Atul Patel - 7/25/2013 8:12:12 AM
   
GeneralConnection Connection timeout
Hi,

I am using ConnectionHelper class to create connection object using below method.

GeneralConnection cn = ConnectionHelper.GetConnection();

I have called one query to fetch data from database using this connection and it takes time to execute due to large amount of data. So i got request timeout error.

Is there any way to set connection timeout property for this connection object?

please guide me in this.

Thanks,

Atul patel

User avatar
Member
Member
kentico_sandroj - 7/25/2013 10:05:53 AM
   
RE:GeneralConnection Connection timeout
Hi Atul,

You can set the connection timeout property and you can also cache the data. Caching would be good for performance so it is recommended.

Regards,
Sandro