New Posts New Posts RSS Feed: EntityQueryClause Limit
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

EntityQueryClause Limit

 Post Reply Post Reply
Author
sloppy View Drop Down
Newbie
Newbie


Joined: 28-Oct-2009
Posts: 1
Post Options Post Options   Quote sloppy Quote  Post ReplyReply Direct Link To This Post Topic: EntityQueryClause Limit
    Posted: 28-Oct-2009 at 8:43pm
I've been having a "Index was outside the bounds of the array" exception when trying use an EntityQuery with 73 clauses all joined with the OR operator.

Is there a limit on the number of EntityQueryClause you can add to an EntityQuery?
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 29-Oct-2009 at 3:50pm
There isn't a limit on the number of clauses per se, but there can be a problem with the complexity of the resulting query.  In this case the exception is thrown by the DataTable when the EntityQuery is run against cache.  If you don't need to execute the query against cache you can set the QueryStrategy to DataSourceOnly. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down