Can Skipping Rows be supported
See original GitHub issueI tried to run a skip on and got error:
“Jet does not support skipping rows.”
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:
SELECT *
FROM myTable x
WHERE x.ID NOT IN (SELECT Top 10 id FROM myTable ORDER BY ....)
ORDER BY ...
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:
SELECT Top 50 *
FROM myTable x
WHERE x.ID NOT IN (SELECT Top 10 id FROM myTable ORDER BY ....)
ORDER BY ...
Issue Analytics
- State:
- Created 2 months ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
10 Chest Supported Dumbbell Row Alternatives for a Big ...
Yes, you can technically do Chest Supported Barbell Row with a bench but they're extremely awkward and usually not worth the hassle.
Read more >The Chest-Supported Row: How to Do It Correctly
Chest-supported rows are one of the best row variations because they're particularly good at isolating your back muscles so you gain as much ......
Read more >Beginners Should Build Back Muscle With the Chest ...
The chest-supported dumbbell row allows strength training beginners to build back muscle without potentially exposing themselves to injury.
Read more >Why You Must Do Chest Supported Rows
Chest supported rows are some of the best back exercises that will help isolate the back muscles YET still allow you to lift...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tb-mtg You should be able to use it when configuring Jet. It is one of the parameters when you call the
UseJet
function. Just looked at the section from the test sources that I can play around withHopefully 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
NOT IN
. Your example your subquery is simple and just query forid
. Problem comes in to rewrite the normal query to find the field we need to compare onI do have some ideas to play around with though
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
JetQueryableMethodTranslatingExpressionVisitor
I can override the functions forTranslateSkip
andTranslateTake
. Needed that for commit c8e109fb94a2f1ac802f56117f64aadff748b8cd when fixing cross joins followed by left joinGoing to reopen this issue