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 7809477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:26:55+00:00 2026-06-02T03:26:55+00:00

I am doing a pagination system for about 100 items. My question is: Should

  • 0

I am doing a pagination system for about 100 items.
My question is:

Should I just load all 100 of them and then use jQuery to switch pages without reloading? Or should I use a MySQL query with “LIMIT 5” and then, each time user presses on Next Page or Previous Page, another Mysql query with LIMIT 5 is initiated?

For every item, I would have to load a thumbnail picture but I could keep it in the cache to avoid using my server bandwidth.

Which one is the best option from a server resource perspective?

Thanks in advance. Regards

  • 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-06-02T03:26:58+00:00Added an answer on June 2, 2026 at 3:26 am

    Try connecting directly to your MySql instance via the command line interface. Execute the query with 100 at at time, and then with LIMIT 5. Look at the msec results. This will tell you which is more efficient or less resource-demanding.

    100 records at a time from MySql (depending on dataset) really is nothing. The performance hit wouldn’t be noticeable for a properly written query/database schema.

    That said, I vote for calling only the results you need at a time. Use the LIMIT clause and your jquery pagination method to make it efficient.

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

Sidebar

Related Questions

I am using cakephp 1.26. I am doing some self-learning about Pagination in CakePHP.
I am doing pagination for my data using the solution to this question. I
Whats the most efficient way of doing pagination in JSF 2.0 app? I use
Doing some jquery animation. I have certain divs set up with an attribute of
I am using cakephp 1.26 and doing pagination. could you help me with the
I've been doing some pagination recently and used the following: if ( $totalPages >
The way I am doing my pagination now is as follow: =============== First I
I would like your comments and suggestion on this. I am doing the pagination
im doing simple pagination with QSqlQueryModel select from limit query's every thing is working
Right now, I'm doing 2 steps. I want to eliminate one of them. //Get

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.