Suppose we have a table that contains information about a person. Columns like NAME or SURNAME are small (I mean their size is not very large), but the columns containing the personβs photo or video (blob columns) can be very large. Therefore, when we execute the select operation:
select * from person
he will extract all this information. But in most cases, we only need to get the personβs name or surname, so we fulfill this request:
select name, surname from person
Q : Will Oracle read the entire record (including blob columns) and then just filter out the first and last name columns, or will it only read the first and last name columns?
In addition, even if we create a separate table for such large data (photos and videos of a person) and have a foreign key for this table in the user table and want to get only a photo, we therefore execute this query:
select photo from person p join largePesonData d on p.largeDataID = d.largeDataID where p.id = 1
Will Oracle read the whole record in the personal table and the entire record in the largePesonData file, or will it just read the photo column in largePesonData?
source share