Data Storage Flashcards
(128 cards)
Access ZTime
Time required to access the first byte in a read or write operation
Transfer Rate
speed at which data is read or written. following initial access.
Volatile memory
Memory that is lost when disconnected from power.
Non-volatile memory
Memory is retained when power is lost
Main Memory/RAM
Primary memory used when computer programs execute
Flash Memory/SSD
less expensive and higher capacity than main memory
Magnetic Disk/HDD
used to store large amounts of data
Sectors
Magnetic disk groups data in sectors, traditionally 512 bytes per sector but 4 kilobytes with newer disk formats
Pages
Flash memory groups data in pages, usually between 2 kilobytes and 16 kilobytes per page
Block
Databases and file systems use a uniform size, called a block, when transferring data between main memory and storage media
Row-oriented storage
Relational databases usually store an entire row within one block, which is called row-oriented storage
Column-oriented/Columnar Storage
Each block stores values for a single column only.
Table Structure
Scheme for organizing rows in blocks on storage media
heap table
no order is imposed on rows
Sorted Table/Sort Column
Database designer identifies a sort column that determines physical row order
Hash Table
Rows are assigned to buckets
Bucket
Block or group of blocks containing rows
Hash Key
Column or group of columns, usually the primary key
hash Function
Computes the bucket containing the row from the hash key
Modulo Function
Simple has function with four steps
Dynamic hash function
Automatically allocates more blocks to the table, creates additional buckets, and distributes rows across al buckets. With more buckers, fewer rows are assigned to each bucket and, on average, buckets contain fewer linked blocks.
Table clusts/Multi-Tables
Interleave rows of two or mote tables in the same storage area.
Cluster key
Column that is available in all interleaved tables
Single-level index
File containing column values, along with pointers to rows containing the column value