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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:53:02+00:00 2026-06-07T11:53:02+00:00

1>Table with millions row and 100 columns I want to run a query which

  • 0

1>Table with millions row and 100 columns I want to run a query which will return one row (and I need 3-4 column) from the table. Which of JDBC or Hibernate is a better option for this use case.

2>Also is there any risk of getting Out Of Memory if we use hibernate in this case. I do not have any idea about caching issues in hibernate and heard people get OOM.

3>Which of hibernate/JDBC will give faster result. As the time matters in my case.

  • 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-07T11:53:03+00:00Added an answer on June 7, 2026 at 11:53 am
    1. You can do this easily with Hibernate, just use a “view object”. Performance will be the same as with native JDBC.
    2. No, Hibernate will only process what’s returned in the Resultset. If that only contains one row, there won’t be any problem.
    3. Hibernate will be slow in two cases: it generates sub-optimal queries (you can tune this with .hbm config file and/or annotations) or slow to process the results (this happens when the returned Resultset is huge).

    By the way, see my blog entry on using Hibernate for OLAP style queries.

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

Sidebar

Related Questions

I need to select a row from table that has more than 5 millions
Let's say I have a table with millions of rows in which I have
We have a table in which we store millions of small BLOBs (2-10kb). And
I've got this table with an int(11) column and hundreds of millions of rows.
I will be having a table in SQL Server 2008 that will hold millions
Using MySQL with a very large table (millions of entries), I need to find
I need to create a table that has some fields that another one has
I have got a table containing rows of related data which I need to
I'm looking to transfer some data from a multi-million row table into another table.
My 'people' table has one row per person, and that person has a division

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.