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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:59:36+00:00 2026-06-09T12:59:36+00:00

Am working in a project where retrieving data from database takes time since the

  • 0

Am working in a project where retrieving data from database takes time since the number of records are more than 2000 .
Am using JPQL to query the database and display it in JQGRID .

Can any one suggest or guide me how to query huge amount of data from database which takes less time .

I am happy to provide any kind of extra information needed

Also please guide me if there is already a solution ….

Thank you ….

  • 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-09T12:59:37+00:00Added an answer on June 9, 2026 at 12:59 pm

    The first thing you need to do is profile your query to see where your time is being spent. 45 seems like an insane amount of time to read 2,000 records. On a simple desktop I can read over 10,000 simple objects in less than 1 second. Are your objects very complex?

    You might want to enable logging as a start, it could be your time is being spent fetching relationships, (the n+1 problem).

    If you are using EclipseLink you can enable the PerformanceMonitor, it can give you a profile dump of where your time is being spent. Using a Java profiler such as JProfiler would also be good.

    See also,
    http://java-persistence-performance.blogspot.com/2011/06/how-to-improve-jpa-performance-by-1825.html

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

Sidebar

Related Questions

I had a working project in VS2008 / .Net 3.5 using controls from the
While working a project tonight, I ended up using one .js resource file for
I am working on a personal project as a way of learning more about
I have been working on large datasets lately (more than 400 thousands lines). So
Retrieving data from the REST Server works well, but if I want to post
I have been working on a project that takes a MySQL dump and restores
I'm working on a project which parses information with a NLP library from classified
I am working on a project for an RSS Client. Right now I'm retrieving
This is supposed to be a working project from my friend. He demonstrated the
I'm copying some objective c++ files over from another (working) project. I get no

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.