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

Return totalhits of a query #5

Open
sgoky opened this issue Oct 8, 2013 · 3 comments
Open

Return totalhits of a query #5

sgoky opened this issue Oct 8, 2013 · 3 comments

Comments

@sgoky
Copy link

sgoky commented Oct 8, 2013

var tothits = wiki.Query.search(title).ToEnumerable().Count();

How can I optimize this statement?
It 's really slow for many results.
thanks

@sgoky
Copy link
Author

sgoky commented Oct 10, 2013

No solution?

@svick
Copy link
Owner

svick commented Oct 10, 2013

Sorry, I didn't have the time to look into this until now. I think there isn't any good solution.

A collection that also has a property doesn't fit well into my model (or into the way LINQ usually works), so it would require non-trivial changes to my code. And I don't think I'll have the time to do that anytime soon.

@sgoky
Copy link
Author

sgoky commented Oct 10, 2013

Alternatives?

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

No branches or pull requests

2 participants