Which of the following best explains why the way data is stored affects how fast a database can find and return information?
Think about how a disk reads data physically.
When data is stored sequentially, the disk head moves less, so reading is faster. Random storage causes more movement, slowing access.
For queries that ask for a range of values (like all records between two dates), which storage organization typically performs best?
Consider which organization keeps related data close together.
Clustered storage sorts data by key, so range queries can read continuous blocks, improving speed.
How does an index on a database column improve the speed of queries?
Think about how a phone book helps find a name faster.
An index is like a sorted list that lets the database find rows quickly without scanning the entire table.
Which statement correctly compares how row-oriented and column-oriented storage affect query performance?
Think about what data each query needs to read.
Row-oriented stores full rows together, so queries needing many columns of few rows are faster. Column-oriented stores data by columns, speeding queries needing few columns but many rows.
Fragmentation happens when data is stored in many small pieces scattered on disk. Why does this reduce query performance?
Think about how a disk reads data physically when pieces are not together.
Fragmentation causes the disk head to move frequently between scattered pieces, increasing the time to read data and slowing queries.