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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:18:44+00:00 2026-06-02T17:18:44+00:00

In few article it is mentioned that we should not fetch all column of

  • 0

In few article it is mentioned that we should not fetch all column of a table. We should avoid Select * from table1 and write Select name, age, phone from table1.

Q1) Does this mean while writing HQL, we should not write from Table1?

Q2) I heard that some company uses stored procedure in their java code to fetch data, instead of writing select statement. Is this technique really efficient?

Q3) I heard that for a single application. Sometimes many database are used instead of having single database. Why is that so? Is this technique a good one?

  • 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-02T17:18:46+00:00Added an answer on June 2, 2026 at 5:18 pm

    Answer 1: Hibernate does not use select *: It translates select from table to select col1, col2, col3 ... from table1. Further, if you do not define a column to hibernate, it will not select it.

    Answer 2: My recommendation is to avoid using stored procedures. They are rarely in fact faster than queries, especially for simple data retrieval. There are many good reasons not to use them, which include 1) not portable, 2) impossible to debug, 3) can’t unit test, the list goes on

    Answer 3: I would use one database and not split your data. It’s too hard to manage and you are adding more components to your system for no gain (also most systems use one database, so it can’t be that bad). Distributed databases however are a good idea.

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

Sidebar

Related Questions

In Peter Alfred's article on multivariative scattered data interpolation he mentioned, that from a
having problem with null pointer exception and i read few article bout that error
I am having a few issues with the below SQL. SELECT * FROM (SELECT
I have a few models: 'Article, Video, BlogPost, News, Commodity'. Each are in their
I have a few classes: Article ------- Content ID Magazine -------- Name Code And
I've read the article (and few others on the subject), but still can't figure
few links on Internet (ex: http://drdobbs.com/article/print?articleId=232300575&siteSectionName= http://www.hydrogenaudio.org/forums//lofiversion/index.php/t74268.html ) point out that there is a
I've found a few articles & discussions on how to import data from Access
I was reading this Ars article on password security and it mentioned there are
I was going through an article today when it mentioned the following: We've found

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.