FlashKeepers

Computer Science · College · College and University

Database Systems, Unit 6: Indexing and Query Optimization

Database Systems, unit: Indexing and Query Optimization. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

About this set

38 basic cards for College Computer Science. Set 6 of 8 in Database Systems. It opens with "What is an index, in a database?" and "What is the main tradeoff of adding an index?". Study it alongside the other College sets below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is an index, in a database?
Show answerA data structure that improves the speed of data retrieval operations
What is the main tradeoff of adding an index?
Show answerFaster reads at the cost of slower writes and additional storage
What is a B-tree index?
Show answerA balanced tree structure commonly used for database indexing, supporting fast lookups and range queries
What is a clustered index?
Show answerAn index that determines the physical storage order of table rows
What is a non-clustered index?
Show answerAn index stored separately from the table data, containing pointers to the actual rows
What is a composite index?
Show answerAn index built on more than one column
What is query optimization?
Show answerThe process of choosing the most efficient way to execute a database query
What is a query execution plan?
Show answerA breakdown of the steps a database engine will take to run a query
What is a full table scan?
Show answerReading every row in a table to find matching data, typically slower than using an index
What is selectivity, in indexing terms?
Show answerA measure of how many distinct values a column has relative to total rows
Why is an index less useful on a low-selectivity column?
Show answerIt filters out relatively few rows, so scanning may be nearly as fast
What is a covering index?
Show answerAn index that contains all the columns needed to satisfy a query without accessing the table
What is query caching?
Show answerStoring the results of a query to speed up repeated identical requests
What is the EXPLAIN command used for?
Show answerShowing how a database will execute a given query
What is a hash index?
Show answerAn index using a hash function for very fast equality lookups, but not range queries

23 more cards in the app

Study this set free