Efficient Pagination with Skip/Take

Efficient pagination using OFFSET-FETCH on SQL Server.

Execution Time

20 ms

Page Size

200

Current Page

18 / 123

Total Records

24441

Items per page: 25 50 100 200

Page 18 Results Showing 3401 - 3600 of 24441

ID Name Category Price Stock Rating Reviews SKU
3816 Ultra Office Supplies Product Mini Office Supplies $240.84 39 2.4 645 SKU-003816
3817 Super Office Supplies Product Special Edition Office Supplies $811.55 257 2.4 8 SKU-003817
3819 Premium Electronics Product Max Electronics $293.35 484 3.6 315 SKU-003819
3820 Standard Health & Beauty Product Special Edition Health & Beauty $167.18 214 1.7 555 SKU-003820
3821 Deluxe Sports & Outdoors Product Lite Sports & Outdoors $30.03 420 2.7 295 SKU-003821
3822 Super Electronics Product Lite Electronics $728.74 9 3.3 954 SKU-003822
3823 Ultra Books Product Advanced Books $199.17 451 4.7 906 SKU-003823
3824 Economy Toys & Games Product Plus Toys & Games $789.81 114 3.6 713 SKU-003824
3825 Ultra Electronics Product Mini Electronics $759.19 220 4.9 137 SKU-003825
3826 Premium Home & Garden Product Mini Home & Garden $490.50 421 4.3 847 SKU-003826
3827 Economy Health & Beauty Product Max Health & Beauty $954.06 108 2.0 353 SKU-003827
3828 Professional Electronics Product Lite Electronics $574.35 365 2.0 751 SKU-003828
3829 Deluxe Food & Grocery Product Advanced Food & Grocery $789.21 31 1.0 60 SKU-003829
3830 Pro Home & Garden Product Max Home & Garden $241.78 97 2.9 547 SKU-003830
3831 Ultra Toys & Games Product Mini Toys & Games $664.50 99 4.2 139 SKU-003831
3832 Super Food & Grocery Product 2024 Food & Grocery $190.96 111 2.3 654 SKU-003832
3833 Pro Office Supplies Product Classic Office Supplies $949.05 394 3.3 789 SKU-003833
3834 Elite Books Product Classic Books $885.34 240 1.1 595 SKU-003834
3835 Pro Sports & Outdoors Product Plus Sports & Outdoors $295.85 231 2.2 376 SKU-003835
3836 Ultra Food & Grocery Product Plus Food & Grocery $883.70 358 2.9 653 SKU-003836
3837 Mega Sports & Outdoors Product Special Edition Sports & Outdoors $266.01 225 4.5 857 SKU-003837
3838 Deluxe Sports & Outdoors Product Plus Sports & Outdoors $718.18 358 2.1 186 SKU-003838
3839 Economy Health & Beauty Product Classic Health & Beauty $342.29 369 4.8 385 SKU-003839
3840 Ultra Electronics Product Mini Electronics $286.21 339 2.9 365 SKU-003840
3842 Elite Health & Beauty Product Classic Health & Beauty $838.89 431 4.2 743 SKU-003842
3843 Economy Home & Garden Product Pro Home & Garden $867.85 34 3.2 881 SKU-003843
3844 Economy Food & Grocery Product Advanced Food & Grocery $857.09 64 3.4 383 SKU-003844
3846 Mega Automotive Product Special Edition Automotive $748.36 343 4.8 211 SKU-003846
3848 Economy Health & Beauty Product Classic Health & Beauty $55.77 308 3.8 145 SKU-003848
3849 Pro Office Supplies Product Lite Office Supplies $853.46 410 3.9 369 SKU-003849
3850 Ultra Home & Garden Product Max Home & Garden $587.80 499 3.3 176 SKU-003850
3851 Standard Automotive Product Lite Automotive $488.78 413 3.7 420 SKU-003851
3852 Professional Home & Garden Product Classic Home & Garden $904.08 142 3.8 300 SKU-003852
3853 Standard Automotive Product Max Automotive $691.47 280 3.7 28 SKU-003853
3854 Super Home & Garden Product Pro Home & Garden $477.20 41 2.5 281 SKU-003854
3855 Mega Electronics Product Special Edition Electronics $185.69 304 3.3 473 SKU-003855
3856 Pro Automotive Product 2024 Automotive $534.27 236 4.2 868 SKU-003856
3858 Pro Home & Garden Product 2024 Home & Garden $108.74 283 1.3 190 SKU-003858
3859 Super Office Supplies Product Max Office Supplies $371.24 376 1.6 470 SKU-003859
3860 Mega Health & Beauty Product Special Edition Health & Beauty $474.55 395 1.7 314 SKU-003860
3861 Pro Clothing Product Lite Clothing $905.38 99 4.2 99 SKU-003861
3862 Ultra Food & Grocery Product Mini Food & Grocery $946.32 495 3.7 432 SKU-003862
3863 Professional Automotive Product Max Automotive $23.35 144 2.2 662 SKU-003863
3866 Premium Sports & Outdoors Product XL Sports & Outdoors $693.95 400 1.8 558 SKU-003866
3867 Economy Automotive Product Pro Automotive $738.11 449 4.0 898 SKU-003867
3868 Deluxe Electronics Product Special Edition Electronics $387.33 268 4.7 808 SKU-003868
3869 Standard Office Supplies Product Lite Office Supplies $865.28 161 3.9 873 SKU-003869
3870 Ultra Automotive Product Plus Automotive $445.40 246 1.0 592 SKU-003870
3872 Standard Home & Garden Product Max Home & Garden $370.46 455 3.5 224 SKU-003872
3873 Standard Office Supplies Product Special Edition Office Supplies $355.61 156 2.5 269 SKU-003873
3874 Deluxe Health & Beauty Product Max Health & Beauty $906.88 431 4.0 623 SKU-003874
3875 Pro Sports & Outdoors Product Max Sports & Outdoors $608.02 443 4.7 237 SKU-003875
3876 Super Books Product XL Books $919.63 2 3.9 475 SKU-003876
3877 Ultra Books Product Mini Books $371.34 404 3.4 316 SKU-003877
3878 Ultra Sports & Outdoors Product 2024 Sports & Outdoors $702.57 280 3.6 354 SKU-003878
3879 Economy Electronics Product Plus Electronics $74.06 76 1.2 721 SKU-003879
3880 Deluxe Toys & Games Product Plus Toys & Games $491.52 117 1.6 987 SKU-003880
3883 Super Electronics Product Advanced Electronics $401.03 122 2.0 378 SKU-003883
3884 Economy Food & Grocery Product Pro Food & Grocery $493.38 38 1.3 33 SKU-003884
3885 Mega Toys & Games Product Pro Toys & Games $305.11 208 1.4 493 SKU-003885
3886 Professional Food & Grocery Product 2024 Food & Grocery $829.90 100 2.0 470 SKU-003886
3889 Elite Sports & Outdoors Product Lite Sports & Outdoors $722.11 8 1.6 735 SKU-003889
3891 Economy Food & Grocery Product Plus Food & Grocery $764.87 45 2.9 702 SKU-003891
3892 Super Toys & Games Product Classic Toys & Games $128.32 379 4.0 200 SKU-003892
3893 Elite Automotive Product Special Edition Automotive $96.86 133 1.5 180 SKU-003893
3894 Standard Clothing Product Special Edition Clothing $818.60 316 2.0 864 SKU-003894
3895 Standard Sports & Outdoors Product Classic Sports & Outdoors $592.71 141 2.8 345 SKU-003895
3896 Professional Clothing Product Lite Clothing $900.83 273 3.5 694 SKU-003896
3897 Ultra Sports & Outdoors Product Classic Sports & Outdoors $308.15 287 2.8 526 SKU-003897
3898 Ultra Sports & Outdoors Product 2024 Sports & Outdoors $301.64 22 4.2 491 SKU-003898
3899 Deluxe Sports & Outdoors Product 2024 Sports & Outdoors $948.34 117 3.8 919 SKU-003899
3900 Pro Food & Grocery Product Pro Food & Grocery $457.60 411 3.3 366 SKU-003900
3901 Economy Toys & Games Product Classic Toys & Games $459.01 355 2.6 816 SKU-003901
3903 Pro Office Supplies Product Pro Office Supplies $14.91 154 4.9 178 SKU-003903
3904 Pro Clothing Product Pro Clothing $357.61 75 4.4 272 SKU-003904
3905 Professional Sports & Outdoors Product XL Sports & Outdoors $155.46 238 2.8 469 SKU-003905
3906 Pro Clothing Product Advanced Clothing $107.48 236 1.8 31 SKU-003906
3907 Pro Health & Beauty Product Max Health & Beauty $524.06 309 4.3 946 SKU-003907
3908 Economy Health & Beauty Product Pro Health & Beauty $787.63 250 4.9 129 SKU-003908
3909 Premium Automotive Product Classic Automotive $846.84 452 2.4 443 SKU-003909
3910 Super Automotive Product XL Automotive $26.29 360 1.3 62 SKU-003910
3911 Super Office Supplies Product Max Office Supplies $258.12 187 1.6 349 SKU-003911
3912 Professional Health & Beauty Product Classic Health & Beauty $572.63 449 2.2 949 SKU-003912
3914 Premium Home & Garden Product Pro Home & Garden $213.58 416 4.6 842 SKU-003914
3915 Economy Sports & Outdoors Product Special Edition Sports & Outdoors $335.38 110 3.8 795 SKU-003915
3916 Ultra Health & Beauty Product Plus Health & Beauty $778.58 145 2.0 971 SKU-003916
3917 Deluxe Home & Garden Product Plus Home & Garden $578.02 68 3.8 383 SKU-003917
3919 Super Electronics Product Pro Electronics $25.62 406 4.9 980 SKU-003919
3920 Elite Sports & Outdoors Product Plus Sports & Outdoors $881.99 168 2.3 833 SKU-003920
3921 Ultra Office Supplies Product Advanced Office Supplies $762.86 462 1.2 62 SKU-003921
3922 Ultra Clothing Product Lite Clothing $473.97 267 3.8 9 SKU-003922
3923 Standard Electronics Product Max Electronics $891.02 168 4.5 123 SKU-003923
3924 Mega Automotive Product Max Automotive $232.57 285 4.3 156 SKU-003924
3925 Super Sports & Outdoors Product Special Edition Sports & Outdoors $479.89 67 3.8 620 SKU-003925
3926 Mega Health & Beauty Product Pro Health & Beauty $872.61 124 2.1 603 SKU-003926
3927 Standard Sports & Outdoors Product Mini Sports & Outdoors $219.85 319 2.4 505 SKU-003927
3928 Pro Food & Grocery Product Special Edition Food & Grocery $130.39 243 4.5 721 SKU-003928
3929 Super Sports & Outdoors Product Pro Sports & Outdoors $333.95 32 3.7 26 SKU-003929
3930 Mega Automotive Product Advanced Automotive $894.54 296 2.6 900 SKU-003930
3931 Professional Toys & Games Product Advanced Toys & Games $180.80 76 4.4 717 SKU-003931
3932 Pro Sports & Outdoors Product Special Edition Sports & Outdoors $336.62 72 4.2 393 SKU-003932
3933 Economy Clothing Product Mini Clothing $523.55 39 4.4 796 SKU-003933
3934 Super Automotive Product Advanced Automotive $905.04 28 3.7 194 SKU-003934
3935 Mega Toys & Games Product Special Edition Toys & Games $874.44 160 4.9 128 SKU-003935
3936 Deluxe Sports & Outdoors Product Plus Sports & Outdoors $960.23 42 1.1 471 SKU-003936
3937 Premium Clothing Product Special Edition Clothing $333.48 307 2.7 768 SKU-003937
3938 Elite Automotive Product Classic Automotive $814.59 202 3.9 136 SKU-003938
3939 Premium Automotive Product Special Edition Automotive $45.03 391 2.5 159 SKU-003939
3940 Deluxe Food & Grocery Product Special Edition Food & Grocery $449.36 320 2.6 610 SKU-003940
3941 Super Office Supplies Product Max Office Supplies $775.86 149 3.6 199 SKU-003941
3942 Deluxe Office Supplies Product 2024 Office Supplies $736.20 223 3.4 619 SKU-003942
3943 Ultra Health & Beauty Product Plus Health & Beauty $285.40 97 2.2 756 SKU-003943
3944 Standard Home & Garden Product 2024 Home & Garden $914.12 266 4.8 64 SKU-003944
3945 Standard Sports & Outdoors Product Mini Sports & Outdoors $415.07 65 1.9 764 SKU-003945
3946 Pro Home & Garden Product Advanced Home & Garden $789.16 161 3.6 46 SKU-003946
3947 Premium Home & Garden Product Pro Home & Garden $643.29 424 2.5 547 SKU-003947
3948 Deluxe Clothing Product Plus Clothing $269.19 26 4.4 383 SKU-003948
3949 Mega Clothing Product Plus Clothing $421.15 486 3.1 815 SKU-003949
3950 Mega Electronics Product Mini Electronics $218.52 253 4.6 971 SKU-003950
3951 Mega Home & Garden Product XL Home & Garden $182.78 173 4.0 382 SKU-003951
3952 Super Home & Garden Product Plus Home & Garden $822.21 403 3.3 288 SKU-003952
3953 Premium Automotive Product Mini Automotive $109.40 230 1.8 945 SKU-003953
3954 Mega Clothing Product Lite Clothing $319.31 357 1.2 707 SKU-003954
3955 Standard Toys & Games Product Lite Toys & Games $410.59 480 3.0 823 SKU-003955
3956 Economy Clothing Product 2024 Clothing $392.41 386 3.4 548 SKU-003956
3958 Mega Health & Beauty Product Max Health & Beauty $146.43 398 3.7 563 SKU-003958
3959 Ultra Books Product 2024 Books $890.80 63 4.3 958 SKU-003959
3960 Premium Clothing Product Pro Clothing $72.72 212 2.2 441 SKU-003960
3961 Mega Food & Grocery Product Max Food & Grocery $460.98 313 3.6 747 SKU-003961
3962 Economy Sports & Outdoors Product 2024 Sports & Outdoors $640.56 66 2.8 845 SKU-003962
3963 Super Home & Garden Product Plus Home & Garden $597.37 468 2.3 689 SKU-003963
3964 Professional Food & Grocery Product Plus Food & Grocery $216.34 165 1.0 46 SKU-003964
3965 Standard Clothing Product Plus Clothing $463.20 406 2.2 837 SKU-003965
3966 Premium Office Supplies Product XL Office Supplies $820.02 246 2.2 910 SKU-003966
3968 Standard Food & Grocery Product Advanced Food & Grocery $912.32 478 3.2 735 SKU-003968
3969 Standard Office Supplies Product 2024 Office Supplies $296.43 404 4.4 795 SKU-003969
3970 Premium Office Supplies Product Mini Office Supplies $766.56 348 2.9 339 SKU-003970
3971 Professional Office Supplies Product Plus Office Supplies $660.36 172 4.4 716 SKU-003971
3972 Economy Food & Grocery Product Advanced Food & Grocery $701.32 212 4.2 149 SKU-003972
3973 Mega Books Product Special Edition Books $927.65 158 3.4 179 SKU-003973
3975 Deluxe Office Supplies Product Classic Office Supplies $382.41 168 1.3 604 SKU-003975
3976 Pro Clothing Product Plus Clothing $775.83 376 3.3 611 SKU-003976
3977 Elite Automotive Product Pro Automotive $606.41 114 1.8 601 SKU-003977
3979 Super Toys & Games Product Pro Toys & Games $123.73 56 4.3 323 SKU-003979
3980 Mega Sports & Outdoors Product 2024 Sports & Outdoors $98.18 404 2.4 519 SKU-003980
3981 Standard Sports & Outdoors Product Mini Sports & Outdoors $117.33 272 3.3 769 SKU-003981
3982 Premium Health & Beauty Product Classic Health & Beauty $725.60 409 1.6 714 SKU-003982
3983 Standard Automotive Product Pro Automotive $864.08 287 3.3 703 SKU-003983
3984 Pro Home & Garden Product Classic Home & Garden $173.71 151 2.9 766 SKU-003984
3985 Pro Clothing Product Mini Clothing $694.71 95 1.9 347 SKU-003985
3986 Premium Automotive Product Max Automotive $555.69 348 1.3 43 SKU-003986
3987 Mega Electronics Product Special Edition Electronics $965.03 482 1.9 597 SKU-003987
3988 Ultra Automotive Product Advanced Automotive $63.41 187 4.0 150 SKU-003988
3989 Economy Health & Beauty Product XL Health & Beauty $922.33 180 2.8 272 SKU-003989
3990 Ultra Home & Garden Product Plus Home & Garden $580.79 10 1.5 237 SKU-003990
3991 Super Food & Grocery Product XL Food & Grocery $343.81 471 1.4 588 SKU-003991
3992 Super Automotive Product 2024 Automotive $933.28 238 2.1 704 SKU-003992
3993 Ultra Health & Beauty Product Special Edition Health & Beauty $149.34 375 4.5 34 SKU-003993
3994 Elite Home & Garden Product Max Home & Garden $733.19 335 2.6 657 SKU-003994
3995 Super Electronics Product Advanced Electronics $963.99 416 3.8 428 SKU-003995
3996 Premium Toys & Games Product Classic Toys & Games $52.58 19 4.9 524 SKU-003996
3997 Professional Automotive Product 2024 Automotive $249.42 15 3.5 236 SKU-003997
4000 Ultra Sports & Outdoors Product 2024 Sports & Outdoors $471.16 71 4.0 963 SKU-004000
4001 Elite Health & Beauty Product Special Edition Health & Beauty $167.98 222 3.5 423 SKU-004001
4003 Super Home & Garden Product Advanced Home & Garden $739.74 56 1.3 448 SKU-004003
4004 Ultra Food & Grocery Product XL Food & Grocery $924.59 354 1.9 671 SKU-004004
4005 Pro Home & Garden Product XL Home & Garden $278.87 84 5.0 74 SKU-004005
4006 Mega Home & Garden Product Special Edition Home & Garden $793.73 102 3.9 903 SKU-004006
4007 Mega Food & Grocery Product XL Food & Grocery $435.27 183 3.7 888 SKU-004007
4008 Economy Clothing Product 2024 Clothing $571.51 164 4.1 742 SKU-004008
4009 Mega Clothing Product Special Edition Clothing $750.28 36 4.4 581 SKU-004009
4010 Mega Automotive Product Lite Automotive $820.89 346 3.2 286 SKU-004010
4011 Deluxe Sports & Outdoors Product Lite Sports & Outdoors $673.67 131 5.0 898 SKU-004011
4012 Elite Home & Garden Product Mini Home & Garden $775.05 299 3.6 377 SKU-004012
4013 Standard Office Supplies Product Lite Office Supplies $619.22 327 4.5 628 SKU-004013
4014 Pro Books Product Mini Books $273.61 110 2.2 521 SKU-004014
4015 Deluxe Sports & Outdoors Product XL Sports & Outdoors $575.23 476 4.6 174 SKU-004015
4016 Super Clothing Product 2024 Clothing $549.42 209 4.4 529 SKU-004016
4017 Deluxe Health & Beauty Product Advanced Health & Beauty $211.81 347 4.5 243 SKU-004017
4019 Deluxe Books Product Lite Books $505.20 258 4.6 65 SKU-004019
4020 Standard Books Product Pro Books $13.80 180 4.6 489 SKU-004020
4022 Elite Health & Beauty Product Pro Health & Beauty $164.78 92 1.7 736 SKU-004022
4023 Pro Food & Grocery Product Advanced Food & Grocery $198.16 31 2.0 355 SKU-004023
4026 Premium Sports & Outdoors Product Lite Sports & Outdoors $730.41 106 1.4 19 SKU-004026
4027 Elite Health & Beauty Product Classic Health & Beauty $451.00 290 2.9 566 SKU-004027
4028 Professional Sports & Outdoors Product Classic Sports & Outdoors $697.85 460 1.0 797 SKU-004028
4029 Deluxe Electronics Product Advanced Electronics $710.43 373 2.1 383 SKU-004029
4030 Ultra Electronics Product Special Edition Electronics $386.72 197 4.8 242 SKU-004030
4031 Super Sports & Outdoors Product Max Sports & Outdoors $910.48 135 3.8 75 SKU-004031
4032 Mega Office Supplies Product XL Office Supplies $275.23 442 2.9 871 SKU-004032
4033 Professional Office Supplies Product Pro Office Supplies $537.70 470 2.9 492 SKU-004033
4035 Deluxe Clothing Product Classic Clothing $849.42 111 1.2 991 SKU-004035
4036 Standard Automotive Product Advanced Automotive $361.22 77 3.2 140 SKU-004036
4037 Premium Toys & Games Product Special Edition Toys & Games $794.69 152 1.8 349 SKU-004037
4038 Elite Toys & Games Product Mini Toys & Games $697.75 23 1.5 107 SKU-004038
4040 Super Sports & Outdoors Product Special Edition Sports & Outdoors $916.79 226 2.4 731 SKU-004040
4042 Deluxe Office Supplies Product Pro Office Supplies $963.86 211 4.2 541 SKU-004042
4043 Super Sports & Outdoors Product XL Sports & Outdoors $589.65 427 1.7 369 SKU-004043
4045 Deluxe Office Supplies Product Advanced Office Supplies $472.85 211 2.0 425 SKU-004045
4046 Elite Clothing Product Pro Clothing $428.98 41 3.1 908 SKU-004046
Implementation Code
// Efficient pagination with Skip and Take
public async Task<PaginatedResult<DemoProduct>> GetPaginatedProductsAsync(int page, int pageSize)
{
    // Get total count (cached if possible)
    var totalCount = await _context.DemoProducts.CountAsync(p => p.IsActive);
    
    // Get page of results
    var items = await _context.DemoProducts
        .Where(p => p.IsActive)
        .OrderBy(p => p.Id) // Important: Must have ORDER BY for consistent paging
        .Skip((page - 1) * pageSize) // OFFSET in SQL
        .Take(pageSize) // FETCH NEXT in SQL
        .AsNoTracking() // No tracking needed for read-only
        .ToListAsync();

    return new PaginatedResult<DemoProduct>
    {
        Items = items,
        TotalCount = totalCount,
        Page = page,
        PageSize = pageSize
    };
}
Pagination Best Practices
  • Always use OrderBy: Skip/Take require stable sorting for consistent results
  • Use AsNoTracking(): Pagination queries are typically read-only
  • Consider caching: Cache total count if dataset changes infrequently
  • Limit max page size: Prevent users from requesting too many records at once
  • Use indexed columns: Ensure ORDER BY columns are indexed for performance