Hi all,
I have an ASP.Net app that gets an exception on long-lasting queries on views - ERROR: 57014: canceling statement due to user request - after 20s in the query (it takes about a minute for query to complete). CommandTimeout on Npgsql is set to 300, and commandTimeout property of DbUtils and DbUtilsComPlus is also set to 300 (hardcoded from default 30).
AFAIK, 20s is default connection timeout on ADO. Is there some difference in the way views are handled? Is this an issue in npgsql? What can I do to avoid this?
Thanks!
Marin
SelfServicing .Net 2.0
PostgreSQL 8.2.3/Win2003/UTF8
LLBL (2007-03-19) 2.0.7.319
exception is thrown in:
[NpgsqlException: ERROR: 57014: canceling statement due to user request]
Npgsql.NpgsqlConnector.CheckErrors() +115
Npgsql.NpgsqlConnector.CheckErrorsAndNotifications() +58
Npgsql.NpgsqlCommand.ExecuteCommand() +210
Npgsql.NpgsqlCommand.ExecuteScalar() +115
SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.ExecuteScalar() +245
[ORMQueryExecutionException: An exception was caught during the execution of a retrieval query: ERROR: 57014: canceling statement due to user request. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.]
SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.ExecuteScalar() +397
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteScalarQuery(IRetrievalQuery queryToExecute, ITransaction containingTransaction) +199
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.GetDbCount(IEntityFields fields, ITransaction containingTransaction, IPredicate filter, IRelationCollection relations, IGroupByCollection groupByClause, Boolean allowDuplicates) +235
...