ITP55: Data Storage Structures

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

53 Terms

1
New cards

defines how a database system organizes, manages, and accesses data physically on storage devices, while also providing logical views to users and applications

Data Storage Architecture

2
New cards

is organized logically as a sequence of records.

File

3
New cards

are provided as a basic construct in operating systems, so we shall assume the existence of an underlying file system

File

4
New cards

also logically partitioned into fixed-length storage units.

File Organization

5
New cards

are the units of both storage allocation and data transfer.

Blocks

6
New cards

Each record fits entirely within one block.

File Organization

7
New cards

Store record i starting from byte n * (i – 1), where n is the size of each record

Fixed Length Records

8
New cards

do not allow records to cross block boundaries

Fixed Length Records

9
New cards

Occur when records have fields of different sizes (e.g., strings).

Variable-Length Records

10
New cards

Also caused by repeating fields (arrays, multisets).

Variable-Length Records

11
New cards

Can result from multiple record types in one file.

Variable-Length Records

12
New cards

whose structure is the same for all records of the same relation

fixed length

13
New cards

holds the content

variable length

14
New cards

are allocated as many bytes as required to store their value.

Fixed-length attributes

15
New cards

are represented in the initial part of the record by a pair (offset, length)

Variable-length attributes

16
New cards

denotes where the data for that attribute begins within the record

offset

17
New cards

is the length in bytes of the variable-sized attribute.

length

18
New cards

is commonly used for organizing records within a block

slotted-page structure

19
New cards

may be stored either as files in a file system area managed by the database, or as file structures stored in and managed by the database

Large objects

20
New cards

Any record can be placed anywhere in the file where there is space for the record.

Heap file organization

21
New cards

Records are stored in sequential order, according to the value of a “search key” of each record

Sequential file organization

22
New cards

records from different relations are stored in the same file or block.

Multitable clustering file organization

23
New cards

educes join operation costs.

Multitable clustering file organization

24
New cards

The traditional sequential file organization does support ordered access even if there are insert, delete, and update operations, which may change the ordering of records

B+-tree file organization

25
New cards

is computed on some attribute of each record.

Hashing file organization

26
New cards

specifies in which block of the file the record should be placed

Hashing file organization

27
New cards

Once placed in a particular location, the record is not usually moved.

heap file organization

28
New cards

track which blocks have free space to store records.

free-space map

29
New cards

is commonly represented by an array containing 1 entry for each block in the relation

free-space map

30
New cards

is designed for efficient processing of records in sorted order based on some search key.

Sequential file

31
New cards

is any attribute or set of attributes; it need not be the primary key, or even a superkey

search key

32
New cards

is a file organization that stores related records of two or more relations in each block

multitable clustering file

33
New cards

is the attribute that defines which records are stored together

cluster key

34
New cards

is typically done on the basis of an attribute value

Table Partitioning

35
New cards

data about data

metadata

36
New cards

Relational schemas and other metadata about relations are stored in a structure

Data Dictionary or System Catalog

37
New cards

is that part of main memory available for storage of copies of disk blocks.

buffer

38
New cards

responsible for the allocation of buffer space is called the buffer manager.

subsystem

39
New cards

in which the block that was referenced least recently is written back to disk and is removed from the buffer

LRU

40
New cards

memory block that is not allowed to be written back to dis

Pinned Block

41
New cards

frees the space occupied by a block as soon as the final tuple of that block has been processed

Toss-immediate strategy

42
New cards

system must pin the block currently being processed. After the final tuple of that block has been processed, the block is unpinned, and it becomes the most recently used block

MRU strategy

43
New cards

can use statistical information regarding the probability that a request will reference a particular relation

Buffer Manager

44
New cards

support forced output of blocks for the purpose of recovery

Buffer Managers

45
New cards

write buffers speed up disk writes by writing blocks to a non-volatile RAM or flash buffer immediately

Non volatile

46
New cards

a disk devoted to writing a sequential log of block updates

Log Disk

47
New cards

Used exactly like nonvolatile RAM

Log Disk

48
New cards

each attribute of a relation is stored separately, with values of the attribute from successive tuples stored at successive positions in the file

Column-oriented storage

49
New cards

Reduced IO if only some attributes are accessed Improved CPU cache performance Improved compression Vector processing on modern CPU architectures

Column-oriented storage

50
New cards

found to be more efficient for decision support than row-oriented representation

Columnar

51
New cards

Can store records directly in memory without a buffer manager

Main Memory Databases

52
New cards

can be used in-memory for decision support applications

Column-oriented storage

53
New cards

reduces memory requirement

Compression