camlex
camlex copied to clipboard
WhereAny is slow
Pavel_Kudishin[CodePlex]
Following method is very slow:
IQuery query = Camlex.Query().WhereAny(expressions);
where IEnumerableltExpressionltFuncltSPListItem, boolgtgtgt expressions = claimIds.Selectltint, ExpressionltFuncltSPListItem, boolgtgtgt(claimId =gt (x =gt ((int)x[quotIDquot] == claimId)));
int[] claimIds - array of any integers.
If claimIds.Length==20, then WhereAny takes 10 seconds. If claimIds.Length==15, then WhereAny takes 4 seconds. If claimIds.Length==10, then WhereAny takes 2 seconds.