svick/LINQ-to-Wiki

Return totalhits of a query

sgoky opened this issue · 3 comments

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

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

No solution?

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.

Alternatives?