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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:02:56+00:00 2026-05-27T04:02:56+00:00

Suppose we have a table which holds information about person. Columns like NAME or

  • 0

Suppose we have a table which holds information about person. Columns like NAME or SURNAME are small (I mean their size isn’t very large), but columns that hold a photo or maybe a person’s video (blob columns) may be very large. So when we perform a select operation:

select * from person

it will retrieve all this information. But in most cases we need only retrieve name or surname of person, so we perform this query:

select name, surname from person

Question: will Oracle read the whole record (including the blob columns) and then simply filter out name and surname columns, or will it only read name and surname columns?

Also, even if we create a separate table for such large data(person’s photo and video) and have a foreign key to that table in person’s table and want to retrieve only photo, so we perform this query:

select photo 
from person p 
join largePesonData d on p.largeDataID = d.largeDataID 
where p.id = 1 

Will Oracle read a whole record in person table and whole record in largePesonData or will it simply read the column with photo in largePesonData?

  • 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-27T04:02:57+00:00Added an answer on May 27, 2026 at 4:02 am

    Oracle reads the data in blocks.
    Let’s assume that your block size is 8192 bytes and your average row size is 100 bytes – that would mean each block would populate 8192/100 = 81 rows (It’s not accurate since there is some overhead coming from the block header – but I’m trying to keep things simple).

    So when you
    select name, surname from person;
    You actually retrieve at least on block with all of it’s data (81 rows), and later after it is being screened returning you only the data you requested.

    Two exceptions to this are:

    1. BLOB Column – “select name, surename from person” will not retrieve the BLOB contents itself because BLOB columns contain a reference to the actual BLOB (which sits somewhere else on the tablespace or even in anoter TS)
    2. Indexed columns – In case you created an index on the table using the columns name and surname it is possible that Oracle will only scan this specific index and retrieve only those two columns.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have requirement like, suppose I have a 'property' table which has 'ListingKey' field
Suppose I have table Person table Employee, which inherits Person. I want to get
Suppose I have a table called 'test', into which there are three columns named
Suppose I have a column in a table which may hold information as short
Suppose I have an SQL table entitled Facility which looks like this: || FacilityID
Suppose I have this table: id | name | city ------------------ 1 | n1
Suppose I have a table like: create table { id numeric(5,3), code varchar(10) }
I have 1000 records in a table which holds position field starting from 1
Suppose we have a table with different columns representing properties of an object e.g.
I have a question... Suppose that I have a table that holds names of

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.