Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WhereAny is slow #21

Open
sadomovalex opened this issue Sep 26, 2017 · 0 comments
Open

WhereAny is slow #21

sadomovalex opened this issue Sep 26, 2017 · 0 comments
Labels

Comments

@sadomovalex
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant