Efficient Pagination with Skip/Take

Efficient pagination using OFFSET-FETCH on SQL Server.

Execution Time

31 ms

Page Size

200

Current Page

107 / 123

Total Records

24441

Items per page: 25 50 100 200

Page 107 Results Showing 21201 - 21400 of 24441

ID Name Category Price Stock Rating Reviews SKU
21760 Bulk Product e05dc45a Toys & Games $880.14 174 1.6 36 BULK-2b19aabd
21761 Bulk Product be49308f Toys & Games $854.42 215 1.8 63 BULK-58fb61ff
21762 Bulk Product 751de029 Clothing $335.63 394 3.4 55 BULK-72053a99
21763 Bulk Product 841ed72e Sports & Outdoors $362.85 304 4.9 36 BULK-2cfac022
21764 Bulk Product f17e8aa2 Clothing $867.92 478 1.1 63 BULK-09dcef9d
21765 Bulk Product 29709a27 Books $389.41 440 3.8 26 BULK-9defc8d7
21766 Bulk Product eb27997a Books $343.59 247 4.4 46 BULK-01e4071c
21767 Bulk Product 5cf8652a Toys & Games $232.82 450 4.6 63 BULK-37a8b507
21768 Bulk Product 30966940 Toys & Games $182.64 205 0.5 7 BULK-d965b879
21769 Bulk Product c56feb5e Clothing $81.01 194 2.8 48 BULK-dfac1cf9
21770 Bulk Product 3c1fd89d Sports & Outdoors $82.64 156 1.6 44 BULK-168d8fbb
21771 Bulk Product a29260ed Electronics $943.09 127 3.5 30 BULK-3d50802f
21772 Bulk Product 6d315c41 Sports & Outdoors $186.63 86 4.3 76 BULK-32ec47cc
21773 Bulk Product 7cd5c458 Home & Garden $751.35 324 1.9 40 BULK-f731f14b
21774 Bulk Product 3524bc96 Home & Garden $67.98 314 2.1 71 BULK-113e5730
21775 Bulk Product e7c6161a Electronics $333.91 406 2.5 29 BULK-13fd537e
21776 Bulk Product 122152d5 Toys & Games $342.09 465 5.0 27 BULK-6f2a18fa
21777 Bulk Product 154c91f1 Toys & Games $223.89 343 0.3 61 BULK-a3812e99
21778 Bulk Product 28d1778b Books $966.36 175 1.3 80 BULK-399bd2cc
21779 Bulk Product 9fd6ae95 Sports & Outdoors $940.15 342 4.8 13 BULK-318d5f31
21780 Bulk Product 6755e89a Clothing $845.51 472 3.6 67 BULK-77207b0e
21781 Bulk Product 48ac1b83 Sports & Outdoors $475.14 97 3.4 24 BULK-fa3c4e8b
21782 Bulk Product 90070325 Books $815.91 359 4.4 44 BULK-ee6b3753
21783 Bulk Product 4eddf898 Toys & Games $199.06 231 4.1 51 BULK-3cdc1d27
21784 Bulk Product 99e2ab5f Home & Garden $552.35 317 2.3 4 BULK-88b7c38a
21785 Bulk Product d61d257a Clothing $519.30 343 4.7 82 BULK-749d7ed8
21786 Bulk Product f661a01c Clothing $453.20 478 1.8 83 BULK-42d41f71
21787 Bulk Product 0b650a9e Electronics $451.52 37 2.8 47 BULK-0e0c761a
21788 Bulk Product 75ba10fe Clothing $573.52 377 1.1 2 BULK-d428eabc
21789 Bulk Product ee18e0ff Electronics $280.49 406 2.0 74 BULK-81398f4e
21790 Bulk Product c32661e6 Clothing $354.85 381 0.7 28 BULK-19a51e90
21791 Bulk Product 957f070a Toys & Games $60.11 387 4.4 27 BULK-29cc28b6
21792 Bulk Product 95565fc8 Books $856.73 351 3.3 35 BULK-7d5986b5
21793 Bulk Product d8412f2e Clothing $288.13 451 1.2 32 BULK-e660b08e
21794 Bulk Product 322e80b7 Toys & Games $278.91 355 3.7 91 BULK-64bb6acd
21795 Bulk Product e7b4ddef Electronics $586.72 104 1.3 89 BULK-7f59b2fd
21796 Bulk Product 30b79f03 Electronics $911.33 104 1.3 95 BULK-b637532f
21797 Bulk Product 6489724e Books $308.82 448 1.7 19 BULK-98d97d38
21798 Bulk Product fd180a65 Sports & Outdoors $467.55 155 4.9 24 BULK-5ba8e3cc
21799 Bulk Product bebcea9b Sports & Outdoors $356.07 50 1.7 14 BULK-01eb421e
21800 Bulk Product ecd3b7ce Home & Garden $19.39 216 3.5 38 BULK-3548536b
21801 Bulk Product e63e3656 Clothing $776.14 12 0.2 79 BULK-b65495e8
21802 Bulk Product f951a0df Electronics $111.79 270 4.7 62 BULK-f589a716
21803 Bulk Product 042d79aa Clothing $344.41 109 4.6 74 BULK-e24de9ce
21804 Bulk Product 58315800 Sports & Outdoors $628.21 484 4.9 5 BULK-92720c0f
21805 Bulk Product 7f90f8c0 Electronics $899.98 432 3.9 77 BULK-69c85b40
21806 Bulk Product e63622cf Home & Garden $280.00 257 2.0 92 BULK-b90c8944
21807 Bulk Product a5d5f2f3 Toys & Games $53.41 85 1.5 6 BULK-26eaf396
21808 Bulk Product 61ab36a0 Clothing $79.66 496 2.4 46 BULK-2cc7e1ea
21809 Bulk Product aec63d83 Toys & Games $142.71 477 0.8 46 BULK-79f92080
21810 Bulk Product afb97683 Toys & Games $48.78 318 4.0 59 BULK-91953aa0
21811 Bulk Product edf30d1f Home & Garden $13.81 207 3.0 96 BULK-4b3d9aba
21812 Bulk Product 7d15d19f Electronics $715.95 431 4.2 25 BULK-1f0e0712
21813 Bulk Product a0f9fffd Toys & Games $580.36 307 1.5 22 BULK-acd85a9a
21814 Bulk Product dbaaf429 Sports & Outdoors $387.28 299 1.1 42 BULK-ea7bd4cc
21815 Bulk Product 729aff5d Books $547.50 433 1.1 97 BULK-7bdb2ae1
21816 Bulk Product c610600a Clothing $224.55 405 0.2 97 BULK-0bacddbd
21817 Bulk Product 537b65f5 Sports & Outdoors $162.40 322 3.5 7 BULK-1cb1c461
21818 Bulk Product c328b89d Clothing $342.81 372 2.4 91 BULK-d701471d
21819 Bulk Product d4486093 Toys & Games $318.12 419 0.6 81 BULK-96202c50
21820 Bulk Product 6eb24ff7 Electronics $847.95 114 3.2 50 BULK-77985730
21821 Bulk Product 978cbfc9 Toys & Games $267.78 251 4.9 71 BULK-91bb883d
21822 Bulk Product a91ed610 Toys & Games $744.30 98 4.6 66 BULK-66eb7f17
21823 Bulk Product f6107d7c Books $395.94 443 0.9 85 BULK-898f8992
21824 Bulk Product 43737344 Clothing $717.29 496 3.5 98 BULK-10c422a7
21825 Bulk Product 6f51e5c6 Electronics $184.53 395 0.5 33 BULK-6d847992
21826 Bulk Product 5c961115 Home & Garden $959.16 58 2.4 67 BULK-5b801f11
21827 Bulk Product 38d1db70 Toys & Games $985.26 23 1.4 6 BULK-492a7780
21828 Bulk Product 68eea6e8 Electronics $744.63 210 4.6 22 BULK-c6081ce2
21829 Bulk Product 6767fd53 Sports & Outdoors $111.07 49 4.9 34 BULK-59aecdbe
21830 Bulk Product 4fc21aa8 Clothing $552.15 438 1.0 75 BULK-236bd80c
21831 Bulk Product 8a954c49 Books $844.61 338 4.1 86 BULK-03e7490e
21832 Bulk Product 34565005 Clothing $311.20 287 1.2 66 BULK-3e89dbaa
21833 Bulk Product 2cdd31e3 Clothing $264.95 325 3.3 44 BULK-4c2fbcb6
21834 Bulk Product b547a797 Home & Garden $811.79 203 3.6 34 BULK-9f3058af
21835 Bulk Product 2d0eb5b9 Books $817.10 232 0.1 13 BULK-b74acdb0
21836 Bulk Product 3b7a1fcf Books $245.28 299 2.7 12 BULK-d591afb3
21837 Bulk Product d94ffca8 Toys & Games $848.74 191 2.4 21 BULK-5aab8908
21838 Bulk Product 5a5fc30f Sports & Outdoors $720.44 387 4.2 41 BULK-9097f6fb
21839 Bulk Product 30c031df Home & Garden $816.18 298 3.3 87 BULK-edf6ec4a
21840 Bulk Product 7c65a805 Electronics $357.27 289 1.7 10 BULK-fc744883
21841 Bulk Product 3d150fbe Clothing $683.55 77 2.8 23 BULK-f77a7ab6
21842 Bulk Product b6139ab9 Home & Garden $833.75 253 2.4 28 BULK-cfea0c9c
21843 Bulk Product 1570f0e0 Clothing $336.53 111 0.8 87 BULK-ec51fc9d
21844 Bulk Product 938dbf2e Sports & Outdoors $904.32 178 1.3 10 BULK-8bf4bd9c
21845 Bulk Product 946a20fb Clothing $70.44 499 4.8 41 BULK-6ed8ae90
21846 Bulk Product 4bbff319 Clothing $171.41 147 3.9 53 BULK-c0fdd9da
21847 Bulk Product dc31f85f Home & Garden $964.03 346 1.7 79 BULK-c0c79c24
21848 Bulk Product d8a7e8c6 Home & Garden $576.73 200 1.4 48 BULK-565d93fb
21849 Bulk Product fae9c79c Home & Garden $568.09 414 1.3 0 BULK-aa8873de
21850 Bulk Product be509338 Sports & Outdoors $968.63 358 4.7 75 BULK-e5ee2fe7
21851 Bulk Product c44e0816 Toys & Games $752.68 253 4.5 21 BULK-2e2bf5d4
21852 Bulk Product 555e99ca Electronics $86.94 220 3.6 95 BULK-775fd57c
21853 Bulk Product c19cc763 Electronics $418.55 36 3.0 63 BULK-3f58de67
21854 Bulk Product 8c4fbcd7 Books $724.73 408 4.4 94 BULK-2b2887d0
21855 Bulk Product 8ddc7d00 Clothing $668.93 441 3.7 88 BULK-67be7a11
21856 Bulk Product 16474c60 Books $518.61 187 2.4 15 BULK-18f1c18b
21857 Bulk Product 4fb00ae2 Home & Garden $57.70 178 0.5 16 BULK-16c4681e
21858 Bulk Product d8f9108f Clothing $371.66 35 2.3 41 BULK-be6bce0c
21859 Bulk Product 0a55729f Toys & Games $90.68 167 1.0 37 BULK-224eba35
21860 Bulk Product 73f2e5c3 Clothing $505.65 87 3.6 81 BULK-95e08792
21861 Bulk Product 2be860d0 Home & Garden $787.02 24 1.1 63 BULK-455d2d8b
21862 Bulk Product 67fac2a7 Books $798.30 313 2.4 37 BULK-90327b4b
21863 Bulk Product 2f8e624f Toys & Games $907.21 248 3.0 39 BULK-52bb2a18
21864 Bulk Product beb58275 Clothing $223.16 498 1.5 3 BULK-8e63441e
21865 Bulk Product fd1a7e14 Clothing $634.41 90 0.7 12 BULK-ae6a72e8
21866 Bulk Product f48095bf Books $373.57 237 1.8 53 BULK-3de5a521
21867 Bulk Product ff6a4a9f Toys & Games $967.43 47 0.6 25 BULK-f7fe882a
21868 Bulk Product 0ceb1c02 Books $904.67 205 2.9 7 BULK-5e80265b
21869 Bulk Product e450eb90 Books $498.80 377 4.0 81 BULK-7d0b509e
21870 Bulk Product 06a3adce Sports & Outdoors $158.13 302 2.7 72 BULK-121e250b
21871 Bulk Product 88c06253 Books $334.79 139 2.1 97 BULK-a759a629
21872 Bulk Product fad15c42 Clothing $743.33 333 1.5 19 BULK-8930218e
21873 Bulk Product 701bab67 Books $157.88 346 1.0 34 BULK-4079a905
21874 Bulk Product f8653464 Sports & Outdoors $822.94 490 4.1 23 BULK-cc0450d5
21875 Bulk Product c0080e90 Clothing $193.17 76 1.5 15 BULK-9128014b
21876 Bulk Product f2251685 Electronics $376.60 295 1.4 47 BULK-e84b8b13
21877 Bulk Product b872b221 Toys & Games $306.26 407 1.7 90 BULK-782e9e0e
21878 Bulk Product 9ea5dadd Sports & Outdoors $954.19 488 0.3 5 BULK-04baebf6
21879 Bulk Product 28cb7a4f Home & Garden $831.11 470 5.0 84 BULK-da4a8b49
21880 Bulk Product 1b607bcf Books $784.75 96 4.0 74 BULK-5f7ed500
21881 Bulk Product 709a581a Books $173.63 198 0.9 40 BULK-53c43bb8
21882 Bulk Product 4cfc2b26 Toys & Games $273.38 355 3.0 15 BULK-8cecd43e
21883 Bulk Product e07f9026 Sports & Outdoors $102.00 2 3.0 85 BULK-2419cc8e
21884 Bulk Product 25dbfd17 Sports & Outdoors $809.86 151 3.9 65 BULK-1cf22485
21885 Bulk Product f8dcb9d3 Books $852.52 353 0.9 13 BULK-b7bde4e8
21886 Bulk Product 1ddbc4e3 Clothing $1,007.12 38 1.4 68 BULK-4cc598fc
21887 Bulk Product 5df5e20a Books $938.89 227 1.4 79 BULK-646164b9
21888 Bulk Product 67805143 Books $411.46 367 4.7 49 BULK-a59139a6
21889 Bulk Product 9c90305b Toys & Games $973.45 324 0.5 17 BULK-51f5a803
21890 Bulk Product e1837a6b Toys & Games $197.51 492 2.8 83 BULK-055ec6b6
21891 Bulk Product 9ff6720a Sports & Outdoors $925.46 271 2.2 98 BULK-30f5cac0
21892 Bulk Product cbd6c15a Sports & Outdoors $985.49 341 4.5 20 BULK-87396aa6
21893 Bulk Product d437db45 Toys & Games $1,002.09 315 2.6 42 BULK-a902f993
21894 Bulk Product 00264272 Sports & Outdoors $258.16 221 1.4 83 BULK-6f05d6bd
21895 Bulk Product 3b0bf6c2 Clothing $140.82 231 2.9 25 BULK-a2994bac
21896 Bulk Product b2c92560 Sports & Outdoors $504.51 387 1.9 17 BULK-cb0faa9a
21897 Bulk Product dbe0340f Toys & Games $176.57 23 0.0 3 BULK-ff0e178a
21898 Bulk Product f3bada2d Books $107.79 309 3.3 73 BULK-70ebe7eb
21899 Bulk Product 722063ef Books $312.78 469 4.4 15 BULK-714b995e
21900 Bulk Product 0748d381 Sports & Outdoors $413.49 376 3.4 25 BULK-fbee13cf
21901 Bulk Product 8cec9cbc Electronics $647.37 80 2.3 6 BULK-6df401d3
21902 Bulk Product e7e0c7b8 Clothing $84.39 259 2.4 54 BULK-abf7a8f4
21903 Bulk Product e5093aa4 Sports & Outdoors $459.59 246 1.9 0 BULK-9706e80f
21904 Bulk Product ee6cc8c1 Clothing $213.45 135 1.5 29 BULK-e3ca9322
21905 Bulk Product c01cb66d Toys & Games $871.66 473 2.2 78 BULK-6cd27bc9
21906 Bulk Product 34fe20dc Books $344.94 469 1.8 38 BULK-4a69a714
21907 Bulk Product 1f75d1e7 Clothing $743.16 307 3.3 96 BULK-9494ad75
21908 Bulk Product c9f7aab1 Clothing $617.68 123 2.4 42 BULK-866f47a4
21909 Bulk Product d8e8984a Electronics $104.59 456 2.9 30 BULK-11dc55af
21910 Bulk Product be76c595 Sports & Outdoors $827.71 270 2.8 56 BULK-3abbea8e
21911 Bulk Product 2efd8742 Clothing $388.26 370 2.6 88 BULK-59aadf89
21912 Bulk Product c45d984b Toys & Games $489.87 296 2.9 38 BULK-f1d73134
21913 Bulk Product bfaaf3ff Toys & Games $567.00 66 2.0 81 BULK-36564cfb
21914 Bulk Product 15332c43 Electronics $116.59 346 1.1 91 BULK-42556a02
21915 Bulk Product 66593730 Sports & Outdoors $930.99 338 2.6 25 BULK-ace3a94b
21916 Bulk Product e3fd5b46 Toys & Games $393.45 72 1.7 40 BULK-1ee353a7
21917 Bulk Product a5851116 Electronics $652.79 426 1.0 23 BULK-fa688dc2
21918 Bulk Product 471c1387 Sports & Outdoors $156.59 436 0.4 40 BULK-1d4034c1
21919 Bulk Product 8ad9039f Clothing $649.75 479 3.3 49 BULK-14c156ab
21920 Bulk Product 4af8c52d Toys & Games $249.55 176 3.3 27 BULK-73cb2f4f
21921 Bulk Product 3080894d Toys & Games $766.22 46 1.4 60 BULK-0c0c64d7
21922 Bulk Product 09159d3d Toys & Games $451.46 333 1.7 59 BULK-74c7c1d0
21923 Bulk Product e9e87229 Books $346.89 395 0.5 56 BULK-3b5169dd
21924 Bulk Product c7a3d77a Sports & Outdoors $380.31 404 1.4 79 BULK-5881d0d0
21925 Bulk Product 27ee31c2 Clothing $82.16 401 4.9 1 BULK-59cba654
21926 Bulk Product 076fa462 Electronics $939.08 51 2.1 8 BULK-fb6c5852
21927 Bulk Product 82e05901 Books $630.76 340 2.2 58 BULK-d7d7356f
21928 Bulk Product f7e9cabc Clothing $411.12 227 4.3 89 BULK-28cbca85
21929 Bulk Product 2ca24dc1 Home & Garden $378.68 247 3.0 46 BULK-acb65c9a
21930 Bulk Product ff4ac5aa Toys & Games $927.00 407 0.9 99 BULK-671ad74f
21931 Bulk Product 69e1e5e1 Home & Garden $653.44 401 1.8 64 BULK-bd17db69
21932 Bulk Product 6afb6612 Toys & Games $454.03 446 0.2 77 BULK-99c3136b
21933 Bulk Product 761de609 Sports & Outdoors $255.96 99 4.2 18 BULK-5f9bbf0b
21934 Bulk Product 9722224a Books $514.88 10 0.1 29 BULK-95f528e8
21935 Bulk Product f6847875 Toys & Games $138.27 432 4.2 88 BULK-859ef5f8
21936 Bulk Product b8f6482c Electronics $814.45 13 0.7 44 BULK-6df94678
21937 Bulk Product 80a9c83d Sports & Outdoors $39.16 286 2.6 40 BULK-903a659b
21938 Bulk Product 6523771f Books $922.83 108 2.1 32 BULK-c045f08b
21939 Bulk Product dbbd2962 Sports & Outdoors $615.38 452 0.1 67 BULK-0273eeba
21940 Bulk Product 7e791298 Home & Garden $627.54 215 4.8 35 BULK-e7238f18
21941 Bulk Product 65eb0b8d Clothing $405.55 389 4.4 14 BULK-fb7d4cf7
21942 Bulk Product 710cfdf5 Toys & Games $871.50 125 0.4 32 BULK-83280812
21943 Bulk Product f5918a4c Home & Garden $465.64 410 0.0 21 BULK-174b5146
21944 Bulk Product f6a78d21 Electronics $717.17 43 3.4 83 BULK-90fc48a2
21945 Bulk Product e647b380 Toys & Games $318.81 226 2.5 76 BULK-89ada1e0
21946 Bulk Product 9d658e3f Clothing $575.41 265 3.2 56 BULK-ec045e52
21947 Bulk Product 675a3700 Electronics $829.19 72 4.6 78 BULK-9ffcf69d
21948 Bulk Product 5b85c54c Clothing $491.61 50 3.8 19 BULK-bd241152
21949 Bulk Product a46f9053 Sports & Outdoors $613.96 322 3.9 5 BULK-c87b0ee1
21950 Bulk Product 5f82b64a Home & Garden $923.56 322 1.9 14 BULK-ed91db21
21951 Bulk Product c58e8af5 Clothing $740.67 106 2.6 40 BULK-895c6a10
21952 Bulk Product ae4166cd Toys & Games $463.43 460 3.3 77 BULK-609d5158
21953 Bulk Product ae8e5c9c Clothing $288.52 241 3.8 99 BULK-d35997a4
21954 Bulk Product 576a707d Toys & Games $739.66 360 4.7 33 BULK-728e2122
21955 Bulk Product 02de0b17 Home & Garden $570.82 444 1.0 13 BULK-b6c6c911
21956 Bulk Product 06b8ebb0 Toys & Games $94.51 275 0.7 14 BULK-c51e2de3
21957 Bulk Product 05d719db Books $703.41 396 4.3 64 BULK-7be05b83
21958 Bulk Product c3775751 Books $510.13 112 4.5 11 BULK-9dd4e5b5
21959 Bulk Product d2716ab6 Toys & Games $312.49 220 1.0 37 BULK-8811c598
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