Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 784253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:41:01+00:00 2026-05-14T20:41:01+00:00

I am looking at implementing a paging strategy for a domain model which has

  • 0

I am looking at implementing a paging strategy for a domain model which has numbers in the hundreds of thousands. I am most interested in how websites that are performance conscience achieve this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:41:01+00:00Added an answer on May 14, 2026 at 8:41 pm

    Here is what I use in a SQL Server 2008 table that has 2 billion + rows of data (I changed the table and column names)

    it takes between 6 and 10 milliseconds to do a page of 50 rows, 5000 rows per page takes about 60 milliseconds

    ; with cte as(select ROW_NUMBER()over(order by Column1,Column2) as RowNumber, 
     <<Other columns here>>
            from Table1 p
            join Table2 i on i.ID = p.ID
                    and i.ID2 = p.ID2
            join dbo.Table3 c on i.ID2 = p.ID2
            where Column2 between  @StartDate and @EndDate
            and p.ID = @ID
            )
    
    
            select *,(select MAX(RowNumber) from cte) as MaxRow
            from cte
            where RowNumber between @StartRow and (@StartRow +  @RowsPerPage) -1
            order by Col3
    

    I use page level compression on the DB, narrow tables and indexes also

    That is on the database, on the website we use a ExtJS grid and it is just Ajax calls to the service which calls the DB

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for the Android way of implementing a modal view which interrupts the
I have a rails app that I am looking into implementing videos. I know
I am looking into implementing a simple crash report on my application that will
We're looking at implementing a new project that will use LDAP as it's security
I was looking into implementing an Inertial Navigation System for an Android phone, which
I am currently looking into implementing a client which will use an existing extensive
I'm looking for a way of implementing a file transfer service over HTTPS which
I'm looking for some ideas on implementing a basic message factory that reads a
I've been looking into implementing caching at Repository level using the .NET 4.0 Caching
i'm looking into implementing something similar to the li's in chrome extension page .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.