Columnstores and Sparse Columns Flashcards Preview

70-464 Certification > Columnstores and Sparse Columns > Flashcards

Flashcards in Columnstores and Sparse Columns Deck (19)
Loading flashcards...
1

What are columnstore indexes used for?

Storing and querying large data warehousing fact tables (Large amounts of data that don't change)

2

What is a column store?

It's data that is logically organized in columns and rows but physically stored in a column-wise data format

3

What is a rowgroup?

A group of rows that are compressed into columnstore format at the same time.

4

What is the maximum amount of rows in a rowgroup?

1,048,576 rows

5

What happens to a rowgroup that has all data deleted?

It transitions from COMPRESSION to TOMBSTONE state and is later removed by a background process named the tuple-mover.

6

What happens with a columnstore that has many small rowgroups?

The columnstore index quality suffers.

7

What is a column segment?

A column of data from within the rowgroup.

8

What does the rowgroup contain?

One column segment for every column on the table.

9

What is the clustered columnstore index?

It is the physical storage for the entire table.

10

What is a Delta Rowgroup?

It is a clustered B-Tree index that stores rows until the number of rows reaches the threshold of a columnstore (1048576 rows) and then it is moved into the columnstore.

11

What are the benefits to using a columnstore?

*It provides a high level of data compression, typically by 10x, to reduce data warehouse storage costs.
*Performance is better for queries
*Smaller in memory footprint
*Batch execution by processing multiple rows together
*Queries usually only select a few columns which reduces I/O

12

Can you have a columnstore index on a rowstore table?

Yes, if you have 2016 or higher. You have to use a nonclustered columnstore and it takes more space.

13

When do you use a nonclustered columnstore index?

To perform analysis in real time on an OLTP workload.

14

How many columns must be included for a nonclustered columnstore index on a Memory Optimized OLTP table?

All of them.

15

When should you use sparse columns?

When the space saved is at least 20 percent to 40 percent

16

What type of indexes are sparse columns especially useful?

Filtered indexes because they can index only the rows that have values

17

Can a sparse column have a default value?

No

18

Can a computed column be a sparse column?

Yes it can be PART of a computed column, but a computed column cannot be marked as sparse.

19

Can a table be compressed that contains a sparse column?

No, sparse columns are not compatible with compression.