Efficient Pagination with Skip/Take

Efficient pagination using OFFSET-FETCH on SQL Server.

Execution Time

44 ms

Page Size

200

Current Page

9 / 123

Total Records

24441

Items per page: 25 50 100 200

Page 9 Results Showing 1601 - 1800 of 24441

ID Name Category Price Stock Rating Reviews SKU
1813 Mega Health & Beauty Product Pro Health & Beauty $103.88 193 3.5 992 SKU-001813
1814 Professional Electronics Product Pro Electronics $579.39 230 4.6 427 SKU-001814
1815 Super Books Product 2024 Books $296.88 389 1.3 219 SKU-001815
1816 Economy Office Supplies Product Lite Office Supplies $728.47 499 3.9 275 SKU-001816
1818 Deluxe Toys & Games Product Classic Toys & Games $84.37 425 3.8 987 SKU-001818
1819 Ultra Sports & Outdoors Product Mini Sports & Outdoors $720.54 56 4.7 47 SKU-001819
1820 Economy Health & Beauty Product Advanced Health & Beauty $28.28 426 2.4 891 SKU-001820
1821 Deluxe Sports & Outdoors Product XL Sports & Outdoors $418.96 66 4.3 292 SKU-001821
1822 Ultra Health & Beauty Product Plus Health & Beauty $171.17 434 4.5 586 SKU-001822
1824 Deluxe Toys & Games Product 2024 Toys & Games $520.41 293 2.1 530 SKU-001824
1825 Elite Home & Garden Product Special Edition Home & Garden $737.10 462 2.9 535 SKU-001825
1826 Super Food & Grocery Product Advanced Food & Grocery $812.18 37 5.0 447 SKU-001826
1827 Professional Automotive Product Mini Automotive $985.72 188 4.2 565 SKU-001827
1828 Premium Electronics Product Plus Electronics $346.50 469 4.0 529 SKU-001828
1829 Mega Home & Garden Product Pro Home & Garden $363.64 8 4.3 417 SKU-001829
1830 Premium Electronics Product 2024 Electronics $574.30 147 2.5 887 SKU-001830
1831 Standard Electronics Product Lite Electronics $282.00 15 1.7 677 SKU-001831
1832 Ultra Electronics Product Special Edition Electronics $162.51 173 2.7 637 SKU-001832
1833 Pro Home & Garden Product Pro Home & Garden $43.79 206 3.4 828 SKU-001833
1834 Ultra Electronics Product Advanced Electronics $220.01 453 1.8 644 SKU-001834
1835 Economy Toys & Games Product Pro Toys & Games $325.73 391 2.0 720 SKU-001835
1836 Mega Health & Beauty Product Advanced Health & Beauty $930.82 329 3.4 955 SKU-001836
1837 Ultra Home & Garden Product Advanced Home & Garden $531.00 116 4.5 150 SKU-001837
1838 Standard Clothing Product Max Clothing $445.98 27 4.7 901 SKU-001838
1839 Elite Toys & Games Product XL Toys & Games $825.11 35 3.3 885 SKU-001839
1840 Ultra Sports & Outdoors Product Classic Sports & Outdoors $43.53 339 4.5 80 SKU-001840
1841 Super Home & Garden Product Lite Home & Garden $284.65 453 1.2 141 SKU-001841
1842 Pro Home & Garden Product Pro Home & Garden $933.07 446 4.6 179 SKU-001842
1843 Ultra Health & Beauty Product Pro Health & Beauty $435.40 18 3.3 97 SKU-001843
1844 Pro Toys & Games Product XL Toys & Games $922.54 406 4.8 15 SKU-001844
1845 Standard Sports & Outdoors Product 2024 Sports & Outdoors $929.45 246 4.0 289 SKU-001845
1846 Professional Health & Beauty Product Lite Health & Beauty $438.06 250 3.9 194 SKU-001846
1847 Premium Books Product Pro Books $989.39 89 1.2 981 SKU-001847
1848 Pro Electronics Product Classic Electronics $723.33 320 1.0 916 SKU-001848
1849 Deluxe Office Supplies Product Plus Office Supplies $410.82 333 1.7 400 SKU-001849
1850 Standard Health & Beauty Product XL Health & Beauty $564.65 0 3.0 797 SKU-001850
1851 Professional Clothing Product Advanced Clothing $293.89 279 1.7 563 SKU-001851
1852 Pro Health & Beauty Product Plus Health & Beauty $216.90 307 2.5 187 SKU-001852
1853 Standard Health & Beauty Product Classic Health & Beauty $108.23 211 4.5 733 SKU-001853
1854 Economy Books Product Classic Books $234.14 484 1.2 795 SKU-001854
1855 Pro Sports & Outdoors Product Max Sports & Outdoors $351.04 364 3.0 884 SKU-001855
1856 Pro Home & Garden Product Pro Home & Garden $656.93 260 1.6 365 SKU-001856
1857 Premium Toys & Games Product Mini Toys & Games $807.46 350 4.4 374 SKU-001857
1858 Professional Clothing Product Pro Clothing $995.09 324 2.8 921 SKU-001858
1859 Elite Home & Garden Product Advanced Home & Garden $198.79 481 3.4 259 SKU-001859
1860 Economy Health & Beauty Product Classic Health & Beauty $49.89 157 2.8 917 SKU-001860
1861 Standard Electronics Product Special Edition Electronics $350.98 92 3.8 692 SKU-001861
1862 Elite Toys & Games Product Lite Toys & Games $163.53 246 1.6 791 SKU-001862
1863 Premium Clothing Product Special Edition Clothing $787.33 444 1.1 696 SKU-001863
1864 Super Office Supplies Product 2024 Office Supplies $149.15 135 4.3 473 SKU-001864
1865 Mega Electronics Product Mini Electronics $286.40 465 3.4 591 SKU-001865
1866 Professional Clothing Product Advanced Clothing $464.23 49 4.5 642 SKU-001866
1867 Standard Food & Grocery Product 2024 Food & Grocery $132.84 352 1.1 739 SKU-001867
1868 Standard Office Supplies Product Classic Office Supplies $508.29 309 1.6 68 SKU-001868
1869 Economy Automotive Product Max Automotive $859.60 135 1.2 61 SKU-001869
1870 Super Toys & Games Product Max Toys & Games $857.96 337 3.1 399 SKU-001870
1871 Economy Clothing Product Special Edition Clothing $874.61 78 2.1 587 SKU-001871
1873 Premium Clothing Product Max Clothing $522.81 300 4.4 864 SKU-001873
1874 Economy Office Supplies Product Special Edition Office Supplies $46.09 16 2.5 775 SKU-001874
1875 Premium Home & Garden Product XL Home & Garden $900.13 51 1.2 611 SKU-001875
1876 Premium Health & Beauty Product Classic Health & Beauty $269.65 330 4.9 207 SKU-001876
1878 Deluxe Health & Beauty Product Pro Health & Beauty $385.11 388 2.2 420 SKU-001878
1879 Standard Toys & Games Product XL Toys & Games $810.73 25 1.5 827 SKU-001879
1880 Pro Automotive Product 2024 Automotive $921.95 397 1.6 7 SKU-001880
1881 Elite Electronics Product XL Electronics $743.37 225 4.1 337 SKU-001881
1882 Elite Health & Beauty Product Max Health & Beauty $577.11 368 2.1 903 SKU-001882
1883 Deluxe Home & Garden Product Plus Home & Garden $463.14 350 1.8 153 SKU-001883
1884 Premium Health & Beauty Product Pro Health & Beauty $914.88 160 3.0 228 SKU-001884
1885 Standard Sports & Outdoors Product Max Sports & Outdoors $495.82 491 2.2 631 SKU-001885
1886 Standard Health & Beauty Product Classic Health & Beauty $679.29 420 1.6 675 SKU-001886
1887 Deluxe Health & Beauty Product XL Health & Beauty $992.16 207 1.6 515 SKU-001887
1888 Premium Food & Grocery Product Mini Food & Grocery $952.85 122 2.9 605 SKU-001888
1889 Super Books Product Special Edition Books $724.75 491 3.4 775 SKU-001889
1890 Deluxe Clothing Product 2024 Clothing $840.67 373 1.1 334 SKU-001890
1891 Super Food & Grocery Product Plus Food & Grocery $573.89 11 2.8 565 SKU-001891
1892 Deluxe Food & Grocery Product Max Food & Grocery $104.70 494 4.2 646 SKU-001892
1893 Professional Automotive Product Classic Automotive $623.44 314 1.5 432 SKU-001893
1894 Super Office Supplies Product Advanced Office Supplies $307.11 325 1.6 0 SKU-001894
1895 Deluxe Toys & Games Product Special Edition Toys & Games $505.15 451 1.3 617 SKU-001895
1897 Super Health & Beauty Product Mini Health & Beauty $467.78 55 3.1 123 SKU-001897
1898 Standard Office Supplies Product Classic Office Supplies $507.10 26 3.8 700 SKU-001898
1899 Elite Sports & Outdoors Product Lite Sports & Outdoors $701.19 412 2.5 255 SKU-001899
1900 Super Automotive Product Special Edition Automotive $47.84 178 1.7 67 SKU-001900
1901 Ultra Sports & Outdoors Product 2024 Sports & Outdoors $525.42 481 2.6 168 SKU-001901
1904 Premium Health & Beauty Product Plus Health & Beauty $171.85 27 1.0 504 SKU-001904
1905 Premium Electronics Product Special Edition Electronics $523.36 126 1.5 303 SKU-001905
1906 Mega Office Supplies Product Advanced Office Supplies $142.71 285 3.2 448 SKU-001906
1907 Ultra Health & Beauty Product Lite Health & Beauty $854.68 244 3.4 415 SKU-001907
1908 Ultra Food & Grocery Product Max Food & Grocery $268.72 99 2.3 86 SKU-001908
1909 Premium Automotive Product Mini Automotive $455.98 22 3.0 334 SKU-001909
1912 Economy Clothing Product Advanced Clothing $981.45 129 5.0 847 SKU-001912
1913 Elite Food & Grocery Product Pro Food & Grocery $696.96 147 1.8 604 SKU-001913
1914 Ultra Electronics Product Special Edition Electronics $581.44 208 2.9 243 SKU-001914
1915 Pro Food & Grocery Product Lite Food & Grocery $602.14 62 1.2 696 SKU-001915
1916 Professional Electronics Product 2024 Electronics $437.76 405 1.6 786 SKU-001916
1917 Super Sports & Outdoors Product Mini Sports & Outdoors $243.34 377 4.4 854 SKU-001917
1918 Deluxe Toys & Games Product 2024 Toys & Games $613.90 288 3.0 341 SKU-001918
1919 Standard Clothing Product 2024 Clothing $246.39 17 4.0 959 SKU-001919
1920 Super Books Product Special Edition Books $420.49 479 1.2 383 SKU-001920
1922 Super Electronics Product 2024 Electronics $418.32 483 2.9 61 SKU-001922
1923 Professional Food & Grocery Product XL Food & Grocery $190.84 258 2.1 552 SKU-001923
1924 Super Electronics Product 2024 Electronics $788.66 44 3.3 980 SKU-001924
1926 Ultra Home & Garden Product Advanced Home & Garden $538.56 455 4.6 434 SKU-001926
1927 Elite Health & Beauty Product Plus Health & Beauty $301.21 426 1.8 282 SKU-001927
1928 Economy Food & Grocery Product Pro Food & Grocery $496.38 269 1.3 856 SKU-001928
1929 Professional Home & Garden Product Max Home & Garden $799.02 467 2.1 30 SKU-001929
1930 Economy Automotive Product Special Edition Automotive $321.08 108 4.3 977 SKU-001930
1931 Professional Home & Garden Product Special Edition Home & Garden $337.79 61 3.9 662 SKU-001931
1932 Standard Electronics Product Lite Electronics $151.53 390 1.7 18 SKU-001932
1933 Standard Books Product Max Books $252.95 192 3.4 428 SKU-001933
1934 Deluxe Toys & Games Product Lite Toys & Games $188.56 194 1.2 101 SKU-001934
1935 Professional Office Supplies Product Advanced Office Supplies $193.56 457 2.3 266 SKU-001935
1936 Deluxe Toys & Games Product Pro Toys & Games $731.74 22 4.2 705 SKU-001936
1937 Deluxe Toys & Games Product Advanced Toys & Games $758.12 499 2.9 949 SKU-001937
1938 Pro Office Supplies Product Pro Office Supplies $110.47 426 1.5 830 SKU-001938
1939 Deluxe Toys & Games Product XL Toys & Games $589.13 382 4.0 853 SKU-001939
1940 Pro Food & Grocery Product Plus Food & Grocery $569.86 412 1.1 156 SKU-001940
1941 Mega Toys & Games Product Advanced Toys & Games $191.85 254 4.3 199 SKU-001941
1942 Ultra Home & Garden Product Classic Home & Garden $226.68 287 4.1 175 SKU-001942
1943 Standard Sports & Outdoors Product Lite Sports & Outdoors $737.71 415 4.9 738 SKU-001943
1945 Deluxe Food & Grocery Product Advanced Food & Grocery $803.89 203 3.2 650 SKU-001945
1946 Ultra Electronics Product Advanced Electronics $280.16 159 4.0 931 SKU-001946
1948 Ultra Books Product 2024 Books $622.42 450 3.1 396 SKU-001948
1949 Professional Health & Beauty Product 2024 Health & Beauty $425.75 218 2.8 826 SKU-001949
1950 Super Home & Garden Product Lite Home & Garden $805.14 133 1.1 753 SKU-001950
1951 Deluxe Office Supplies Product Advanced Office Supplies $838.33 145 2.4 550 SKU-001951
1952 Elite Automotive Product Lite Automotive $85.33 247 1.7 638 SKU-001952
1954 Pro Home & Garden Product Advanced Home & Garden $614.85 243 1.9 322 SKU-001954
1955 Mega Clothing Product Lite Clothing $163.53 170 1.6 643 SKU-001955
1956 Ultra Clothing Product Max Clothing $175.75 167 3.0 167 SKU-001956
1957 Elite Health & Beauty Product Mini Health & Beauty $205.95 54 4.4 435 SKU-001957
1958 Pro Books Product XL Books $521.66 22 2.1 979 SKU-001958
1959 Mega Automotive Product 2024 Automotive $45.89 217 2.9 760 SKU-001959
1960 Premium Electronics Product 2024 Electronics $792.16 454 3.6 451 SKU-001960
1961 Premium Automotive Product Classic Automotive $248.46 72 1.2 519 SKU-001961
1962 Mega Sports & Outdoors Product Classic Sports & Outdoors $819.75 266 4.0 664 SKU-001962
1963 Ultra Toys & Games Product Mini Toys & Games $182.26 413 1.8 373 SKU-001963
1964 Pro Clothing Product XL Clothing $104.83 82 1.1 474 SKU-001964
1965 Mega Toys & Games Product Lite Toys & Games $498.86 255 2.3 141 SKU-001965
1966 Elite Electronics Product Special Edition Electronics $69.37 211 3.3 898 SKU-001966
1967 Premium Health & Beauty Product Special Edition Health & Beauty $780.00 480 1.3 175 SKU-001967
1968 Professional Health & Beauty Product Plus Health & Beauty $274.97 415 4.4 368 SKU-001968
1969 Professional Toys & Games Product Mini Toys & Games $407.27 13 4.2 602 SKU-001969
1970 Pro Clothing Product Special Edition Clothing $75.12 33 1.3 206 SKU-001970
1971 Elite Home & Garden Product Special Edition Home & Garden $865.56 410 3.7 63 SKU-001971
1972 Deluxe Electronics Product Special Edition Electronics $136.25 495 1.6 53 SKU-001972
1974 Deluxe Home & Garden Product 2024 Home & Garden $980.80 290 1.1 304 SKU-001974
1975 Super Toys & Games Product Advanced Toys & Games $756.96 245 1.4 917 SKU-001975
1976 Premium Health & Beauty Product Plus Health & Beauty $414.85 301 1.6 519 SKU-001976
1978 Pro Clothing Product Mini Clothing $544.81 309 2.8 605 SKU-001978
1979 Pro Automotive Product Mini Automotive $144.65 37 2.5 562 SKU-001979
1980 Economy Health & Beauty Product Advanced Health & Beauty $743.67 376 3.8 899 SKU-001980
1981 Standard Books Product Mini Books $900.60 426 3.2 395 SKU-001981
1982 Professional Food & Grocery Product Classic Food & Grocery $405.35 219 3.8 878 SKU-001982
1983 Super Office Supplies Product XL Office Supplies $22.74 215 2.6 983 SKU-001983
1984 Deluxe Sports & Outdoors Product Advanced Sports & Outdoors $945.84 229 3.6 567 SKU-001984
1985 Mega Sports & Outdoors Product Max Sports & Outdoors $427.54 291 1.6 479 SKU-001985
1986 Professional Office Supplies Product Special Edition Office Supplies $314.96 150 2.4 743 SKU-001986
1987 Mega Electronics Product 2024 Electronics $609.06 269 4.6 252 SKU-001987
1988 Professional Sports & Outdoors Product 2024 Sports & Outdoors $475.69 184 4.1 307 SKU-001988
1989 Deluxe Office Supplies Product Pro Office Supplies $75.37 418 3.7 502 SKU-001989
1990 Professional Toys & Games Product XL Toys & Games $306.30 98 2.8 560 SKU-001990
1991 Standard Home & Garden Product Classic Home & Garden $37.20 210 3.4 947 SKU-001991
1992 Ultra Books Product 2024 Books $627.40 481 3.0 522 SKU-001992
1995 Deluxe Automotive Product Pro Automotive $700.98 108 3.9 873 SKU-001995
1996 Super Clothing Product Advanced Clothing $918.63 99 1.6 863 SKU-001996
1997 Mega Automotive Product Advanced Automotive $209.82 207 3.7 889 SKU-001997
1998 Deluxe Sports & Outdoors Product Mini Sports & Outdoors $833.19 43 1.6 467 SKU-001998
1999 Super Electronics Product Plus Electronics $625.95 448 2.0 181 SKU-001999
2000 Elite Food & Grocery Product Advanced Food & Grocery $570.58 411 2.5 117 SKU-002000
2001 Economy Toys & Games Product Mini Toys & Games $284.69 55 1.5 846 SKU-002001
2002 Pro Health & Beauty Product Plus Health & Beauty $522.69 460 4.5 394 SKU-002002
2003 Ultra Home & Garden Product Classic Home & Garden $191.40 333 3.3 88 SKU-002003
2004 Pro Books Product Mini Books $600.71 176 1.7 142 SKU-002004
2005 Elite Electronics Product Lite Electronics $208.66 332 1.4 385 SKU-002005
2006 Standard Electronics Product Mini Electronics $959.69 275 3.2 271 SKU-002006
2007 Pro Office Supplies Product Advanced Office Supplies $447.33 410 4.2 685 SKU-002007
2008 Professional Health & Beauty Product Plus Health & Beauty $13.19 373 2.7 542 SKU-002008
2009 Ultra Toys & Games Product Special Edition Toys & Games $961.72 229 4.6 247 SKU-002009
2010 Mega Clothing Product 2024 Clothing $979.62 341 2.0 714 SKU-002010
2011 Mega Food & Grocery Product XL Food & Grocery $918.27 335 4.3 153 SKU-002011
2012 Elite Toys & Games Product Classic Toys & Games $919.78 14 4.4 232 SKU-002012
2013 Super Food & Grocery Product Special Edition Food & Grocery $65.18 23 3.4 621 SKU-002013
2014 Elite Clothing Product Pro Clothing $175.95 212 2.2 916 SKU-002014
2016 Pro Toys & Games Product Special Edition Toys & Games $322.14 171 1.3 666 SKU-002016
2017 Standard Clothing Product Special Edition Clothing $82.44 136 1.1 932 SKU-002017
2018 Deluxe Health & Beauty Product Pro Health & Beauty $840.46 312 5.0 233 SKU-002018
2019 Pro Food & Grocery Product Advanced Food & Grocery $210.67 201 2.4 593 SKU-002019
2020 Premium Health & Beauty Product 2024 Health & Beauty $828.97 95 4.2 17 SKU-002020
2021 Deluxe Home & Garden Product 2024 Home & Garden $427.87 0 1.9 117 SKU-002021
2022 Mega Home & Garden Product 2024 Home & Garden $942.23 443 4.4 686 SKU-002022
2023 Premium Electronics Product XL Electronics $642.34 230 4.0 252 SKU-002023
2024 Economy Toys & Games Product Advanced Toys & Games $981.32 247 2.0 306 SKU-002024
2025 Pro Food & Grocery Product Special Edition Food & Grocery $149.09 286 3.7 78 SKU-002025
2027 Super Toys & Games Product Pro Toys & Games $549.07 133 2.3 993 SKU-002027
2028 Professional Health & Beauty Product Lite Health & Beauty $280.05 67 3.5 814 SKU-002028
2029 Mega Electronics Product Special Edition Electronics $859.54 485 2.8 546 SKU-002029
2032 Elite Automotive Product Advanced Automotive $755.69 383 2.1 761 SKU-002032
2033 Mega Health & Beauty Product Advanced Health & Beauty $761.92 317 2.7 286 SKU-002033
2034 Pro Toys & Games Product Special Edition Toys & Games $619.09 197 3.2 513 SKU-002034
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