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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:15:56+00:00 2026-05-20T20:15:56+00:00

Odd question for an odd situation i am in. Is there any noticable performance

  • 0

Odd question for an odd situation i am in.

Is there any noticable performance difference when selecting all the columns of a table which has 29 varchar(255) columns?

Would performance improve if they were varchar(50) instead?

Most data in the columns are infact less than 30 chars if that matters.

  • 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-20T20:15:57+00:00Added an answer on May 20, 2026 at 8:15 pm

    It depends.

    If you are simply querying the data in a PL/SQL block where there is no network traffic, it shouldn’t matter assuming the data is actually the same size in both cases. You may use marginally more PGA memory if you fetch the data into PL/SQL variables but it’s very unlikely that would make any appreciable difference in performance.

    If you are fetching the data across the network, however, it could well make a difference. Many drivers would end up allocating space based on the potential size of the result set (i.e. 255 bytes or 255 characters depending on the character set, NLS_LENGTH_SEMANTICS, and other bits of globalization fun) which could mean that you’d be allocating 5 times more RAM on the client machine than necessary (where “client machine” here may refer to the middle tier of a three-tier application). That could, in turn, end up impacting performance.

    Based on your username, I would tend to suspect that you’re using Java and JDBC. If you are using a Type 4 JDBC driver, I’d tend to wager that you’d only be allocating space based on how big the data actually is. If you’re using a JDBC-ODBC bridge, on the other hand, I’d tend to wager that the ODBC driver is allocating space based on the maximum size of the column. This would obviously depend on the driver you’re using– this is my personal educated guess not based on actually profiling the memory use of various drivers.

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

Sidebar

Related Questions

This might be an odd question, but when I scale my image in C#
Another question asked about determining odd/evenness in C, and the idiomatic (x & 1)
So odd situation that I ran into today with OrderBy: Func<SomeClass, int> orderByNumber =
I have an odd problem...I'm using a documentation generator which generates a lot of
I have a situation where T4MVC is generating everything properly (meaning intellisense shows all
I have an odd question. Let's assume I create something using scaffolding. This should
I have an odd question, and seeing as the real context is fairly complex
Sorry for the odd question but this is one that makes me want to
This is a fairly odd question... I believe it would involve some sort of
Im aware this may be a slightly odd question, but given a Page class

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.