QuoteReplyTopic: Query Timeout Posted: 12-Jul-2007 at 5:32pm
I have a query that generates a timeout due to all the query spans I use. Is there a way to increase the timeout threshold or possibly make the query spans a bit more efficient?
You can increase the timeout value. One of the properties of any query is CommandTimeout, See Reference Help regarding the IEntityQuery interface..Public Properties
Determines whether this query will operate against the data source, the in-memory cache, or a combination of the two.
If you want to avoid such timeout, you should try to break down some of the more complicated span queries into several smaller separate span queries.
Assuming you have 3 different relationships to the current entity table, you would normally create a span query with 3 separate AddSpan clauses to retrieve data from all 4 tables. You could try to break them up into 3 separate span queries instead.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum