Data Management - Foundations - D426 (5/6)

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/70

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.

71 Terms

1
New cards

hash function (Hash table)

The ____ function computes the bucket containing the row from the hash key.

2
New cards

row-oriented storage (Storage media)

To minimize block transfers, relational databases usually store an entire row within one block, which is called ___-________ storage.

3
New cards

hash key (Hash table)

The ____ key is a column or group of columns, usually the primary key.

4
New cards

modulo function (Hash table)

The ______ function is a simple hash function with four steps.

5
New cards

Access time (Storage media)

______ time is the time required to access the first byte in a read or write operation.

6
New cards

Transfer rate (Storage media)

________ rate is the speed at which data is read or written, following initial access.

7
New cards

Volatile memory (Storage media)

________ memory is memory that is lost when disconnected from power.

8
New cards

Non-volatile memory (Storage media)

___-________ memory is retained without power.

9
New cards

Main memory / random-access memory (RAM)(Storage media)

____ ______, is the primary memory used when computer programs execute.

10
New cards

Flash memory / solid-state drive (SSD) (Storage media)

_____ ______, is less expensive and higher capacity than main memory.

11
New cards

Magnetic disk / hard-disk drive (HDD) (Storage media)

________ ____, also called hard-disk drive (HDD), is used to store large amounts of data.

12
New cards

sectors (Storage media)

Magnetic disk groups data in _______, traditionally 512 bytes per sector but 4 kilobytes with newer disk formats.

13
New cards

pages (Storage media)

Flash memory groups data in _____, usually between 2 kilobytes and 16 kilobytes per page.

14
New cards

block (Storage media)

Databases and file systems use a uniform size, called a _____, when transferring data between main memory and storage media.

15
New cards

column-oriented/columnar storage (Storage media)

______-________, each block stores values for a single column only.

16
New cards

table structure (Heap table)

A _____ structure is a scheme for organizing rows in blocks on storage media.

17
New cards

heap table (Heap table)

In a ____ table, no order is imposed on rows.

18
New cards

sorted table / sort column (Sorted table)

In a ______ table, the database designer identifies a ____ column that determines physical row order.

19
New cards

hash table (Hash table)

In a ____ table, rows are assigned to buckets.

20
New cards

bucket (Hash table)

A ______ is a block or group of blocks containing rows.

21
New cards

dynamic hash function (Hash table)

A _______ hash function automatically allocates more blocks to the table, creates additional buckets, and distributes rows across all buckets. With more buckets, fewer rows are assigned to each bucket and, on average, buckets contain fewer linked blocks.

22
New cards

Table clusters / multi-tables (Table clusters)

_____ _______, interleave rows of two or more tables in the same storage area.

23
New cards

cluster key (Table clusters)

Table clusters have a _______ key, a column that is available in all interleaved tables.

24
New cards

single-level index (Single-level indexes)

A ______-_____ index is a file containing column values, along with pointers to rows containing the column value.

25
New cards

multi-column index (Single-level indexes)

In a _____-______ index, each index entry is a composite of values from all indexed columns. In all other respects, _____-______ indexes behave exactly like indexes on a single column.

26
New cards

table scan (Query processing)

A _____ scan is a database operation that reads table blocks directly, without accessing an index.

27
New cards

index scan (Query processing)

An _____ scan is a database operation that reads index blocks sequentially, in order to locate the needed table blocks.

28
New cards

Hit ratio/filter factor/selectivity (Query processing)

___ _____, is the percentage of table rows selected by a query.

29
New cards

binary search (Binary search)

______ ______, the database repeatedly splits the index in two until it finds the entry containing the search value:.

30
New cards

primary index / clustering index (Primary and secondary indexes)

A _______ _____, is an index on a sort column.

31
New cards

secondary index / nonclustering index (Primary and secondary indexes)

A_________ _____, is an index that is not on the sort column.

32
New cards

dense index (Primary and secondary indexes)

A _____ index contains an entry for every table row.

33
New cards

sparse index (Primary and secondary indexes)

A ______ index contains an entry for every table block.

34
New cards

Multi-level index(Multi-level indexes)

A _____-_____ index stores column values and row pointers in a hierarchy.

35
New cards

fan-out (Number of levels)

The number of index entries per block is called the ___-___of a multi-level index.

36
New cards

branch (Balanced indexes)

Each path from the top-level block to a bottom-level block is called a ______.

37
New cards

balanced / imbalanced (Balanced indexes)

Multi-level indexes are called ________ when all branches are the same length and __________ when branches are different lengths.

38
New cards

B+tree (B-tree and B+tree indexes)

______. All indexed values appear in the bottom level. Pointers to table blocks appear only in the bottom level. Since some indexed values also appear in higher levels, values are occasionally repeated in the index.

39
New cards

B-tree (B-tree and B+tree indexes)

______. If an indexed value appears in a higher level, the value is not repeated at lower levels. Instead, a pointer to the corresponding table block appears in the higher level along with the value.

40
New cards

hash index (Hash indexes)

In a ____ index, index entries are assigned to buckets.

41
New cards

bucket(Hash indexes)

A ______ is a block or group of blocks containing index entries.

42
New cards

hash function(Hash indexes)

The bucket containing each index entry is determined by a ____ function, which computes a bucket number from the value of the indexed column.

43
New cards

hash key (Hash indexes)

A hash ___ is a column that determines the physical location of rows in a hash table.

44
New cards

bitmap index (Bitmap indexes)

A ______ index is a grid of bits:.

45
New cards

physical index (Logical indexes)

A single- or multi-level index normally contains pointers to table blocks and is called a ________ index.

46
New cards

logical index (Logical indexes)

A _______ index is a single- or multi-level index in which pointers to table blocks are replaced with primary key

47
New cards

function index (Function indexes)

In a ________ index, the database designer specifies a function on the column value. Index entries contain the result of the function applied to column values, rather than the column values.

48
New cards

tablespace (Tablespaces)

A __________ is a database object that maps one or more tables to a single file.

49
New cards

fragmented (Tablespaces)

As files are updated, blocks become scattered, or __________, across many tracks.

50
New cards

partition (Partitions)

A _________ is a subset of table data. One table has many partitions that do not overlap and, together, contain all table data.

51
New cards

horizontal partition (Partitions)

A __________ partition is a subset of table rows.

52
New cards

vertical partition (Partitions)

A ________ partition is a subset of table columns.

53
New cards

shard (Partitions)

Like a partition, a _____ is a subset of table data, usually a subset of rows rather than columns. Unlike partitions, which are stored on different storage devices of a single computer, _____s are stored on different computers of a distributed database.

54
New cards

partition expression (Partition types)

To partition a table, the database administrator specifies a partition __________ based on one or more partition columns.

55
New cards

partition columns (Partition types)

The partition expression may be simple, such as the value of a single partition column, or a complex expression based on several partition _______.

56
New cards

range partition (Partition types)

A _____ partition associates each partition with a range of partition expression values. The VALUES LESS THAN keywords specify the upper bound of each range. The MAXVALUE keyword represents the highest column value, and VALUES LESS THAN MAXVALUE specifies the highest range. Each partition is explicitly named by the database administrator.

57
New cards

list partition (Partition types)

A ____ partition associates each partition with an explicit list of partition expression values using the VALUES IN keywords. Like a range partition, each partition is explicitly named.

58
New cards

hash partition (Partition types)

A ____ partition requires a partition expression with positive integer values. The database administrator specifies the number of partitions, N, and partitions are automatically named p0 through p(N-1). The partition number for each row is computed as: (partition expression value) modulo N.

59
New cards

key partition (Partition types)

A ___ partition is similar to a hash partition, except the partition expression is determined automatically by the database.

60
New cards

Logical design (Physical design)

_______ design specifies tables, columns, and keys.

61
New cards

Physical design (Physical design)

________ design specifies indexes, table structures, and partitions. ________ design affects query performance but never affects query results.

62
New cards

storage engine /storage manager (Physical design)

A _______ ______ translates instructions generated by a query processor into low-level commands that access data on storage media. \n\n_______ ______ support different index and table structures, so physical design is dependent on a specific storage engine.

63
New cards

CREATE INDEX (statements)

The _______ _____ statement creates an index by specifying the index name and table columns that compose the index.

64
New cards

DROP INDEX (statements)

The ____ _____ statement deletes a table's index.

65
New cards

SHOW INDEX (statements)

The ____ _____ statement displays a table's index.

66
New cards

CREATE INDEX IndexName \n\nON TableName (Column1, Column2, ..., ColumnN);

Create an index

67
New cards

DROP INDEX IndexName ON TableName;

Delete an index

68
New cards

SHOW INDEX FROM TableName;

Show an index

69
New cards

EXPLAIN (statement)

The _______ statement generates a result table that describes how a statement is executed by the storage engine.

70
New cards

slow query log(Physical design process)

The MySQL ____ _____ log is a file that records all long-running queries submitted to the database.

71
New cards

Physical design process (Physical design process)

1. Create initial physical design \n\n2. Identify slow queries \n\n3. EXPLAIN slow queries \n\n4. Create and drop indexes \n\n5. Partition large tables