Replies: 2 comments
-
There is not currently an exposed way to adjust the timeout. PetaPoco added a mechanism for setting the timeout in 2011, but DNN's |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you consider improving indexes or using indexed queries? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a Stored Procedure but it can sometimes take a minute or a little more to complete. I can't seem to find a way in DAL2 to extended the timeout which seems to be locked at 30sec. I've tried setting the SqlCommandTimeOut in the web.config but didn't seem to change anything.
using (IDataContext ctx = DataContext.Instance())
{
ctx.Execute(System.Data.CommandType.StoredProcedure, "dbo.ChangeGroupCode", oldCode, newCode);
}
Thanks, any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions