-
Notifications
You must be signed in to change notification settings - Fork 38
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
Can Skipping Rows be supported #141
Comments
I think it's already implemented (in a different way). There should be a flag on configuration to enable it. EDIT |
Yes, it is still there. However I'm not sure how well it still works and obviously it only works on the outer select. If I understand it correctly it sends the normal query to Jet, and only when it is pulling the results in through the datareader will it stop at the number of rows. I think I can pick up the Expression and modify it. Probably going to need to push the current query down into a subquery and wrap in a new SelectExpression. Should be doable and would cover more scenarios than the current implementation. Though the SQL might get a bit interesting for some queries and have to see how the performance would be In the Going to reopen this issue |
How do I set the UseOuterSelectSkipEmulationViaDataReader flag? |
It works as you described and should convert take to top using also skip (top is skip + take). |
@tb-mtg You should be able to use it when configuring Jet. It is one of the parameters when you call the
Hopefully that gives you an area to look for Was playing around wit the skip. Some progress but problem is finding the field to compare on with the
I do have some ideas to play around with though |
Well, there is progress. Skip...Take is now supported. A sample query that is produced is
And this is generated by Take...Skip and Skip on its own currently do not work properly. By the looks of it I am actually getting the rows I want to skip (which is the opposite of what I want) |
@tb-mtg Just checking in with how it is going? If you are after Skip...Take then you can try the daily builds and see how that goes |
I tried to run a skip on and got error:
Could you implement skip functionality usings the method below taken from https://stackoverflow.com/a/10455965/12439476:
If you know how many records you want to skip, then you could do something like this:
Then you could exclude the records that you don't want.
If you then know the total number of records that you want to return, then you could do the following:
The text was updated successfully, but these errors were encountered: