- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
No "MoveNext" to go with DeferredQuery? #340
Comments
Not sure if this is what you want, but...
(replace For those who don't know, |
It may just be that I am not understanding the code well enough. Deferred queries do seem to work - it is just that the comments make reference to MoveNext but I can't find anything in the actual source called MoveNext. I'm more interested in using the deferred queries than ever after reading about how List is implemented and how there is a limit on the number of items a list can contain: http://www.codeproject.com/Articles/870013/List-T-Is-it-really-as-efficient-as-you-probably-t. What I need to do is some timings and SQL tracing to find out more about how the deferred queries work and how the performance compares to the non-deferred ... which seem to call the deferred query mechanism and then create a List. I suspect that means that you've got the same performance/overhead involved in the deferred portion of the code, plus the overhead of creating the List. |
Well, if you don't like lists, you're free to use I disagree with him/her on the arrays though, in .NET array is a class, not just a simple sequence in the same sense it is in
When using arrays with unsafe code in C#, yes, some things are brought down to "the level of To be fair, I haven't looked at how |
I updated the docs to try to make this clearer |
The comments for DeferredQuery say that:
/// An enumerable with one result for each row returned by the query.
/// The enumerator will call sqlite3_step on each call to MoveNext, so the database
/// connection must remain open for the lifetime of the enumerator.
However, there doesn't seem to be any method called MoveNext. The only references to sqlite3_step I can find are in the C mapping code.
Is this part of the library that hasn't been implemented yet?
The text was updated successfully, but these errors were encountered: