Loading topic
WHERE condition. This is a full table scan, also called a sequential scan. It is simple and often efficient for small tables. As a table grows, however, the database must do more work even when the query needs only one r2 min readSELECT, WHERE, ORDER BY, and JOIN. You should also know that a table contains rows and columns, and that a primary key identifies a row.2 min readSELECT, WHERE, ORDER BY, primary keys, and the difference between linear and logarithmic work. This chapter focuses on how a database index stores keys and finds rows internally.2 min readSELECT, WHERE, and ORDER BY syntax, and understand that a B-tree keeps indexed values in sorted order.2 min readSELECT, WHERE, ORDER BY, and JOIN, and that you understand tables, rows, primary keys, and linear versus logarithmic work.2 min readSELECT, WHERE, ORDER BY, joins, tables, and indexes. It also assumes you understand that a sequential scan is linear work and that an index can reduce the rows a database must inspect.2 min readSELECT, WHERE, ORDER BY, tables, rows, columns, primary keys, and the difference between linear and logarithmic work. It also assumes PostgreSQL-style SQL.2 min readSELECT, WHERE, ORDER BY, tables, and primary keys. You should also understand that a linear scan examines rows one by one, while an index can narrow the search.2 min readSELECT, WHERE, ORDER BY, JOIN, tables, rows, columns, primary keys, and the difference between linear and logarithmic work.2 min readEXPLAIN plan.2 min readSELECT, WHERE, primary keys, and basic B-tree indexes. This chapter uses PostgreSQL syntax.2 min readSELECT, INSERT, UPDATE, and DELETE, and you understand tables, rows, columns, and primary keys. This chapter uses PostgreSQL syntax.2 min readSELECT, WHERE, primary keys, and basic B-tree indexes. A partial index contains entries for only some rows. An expression index contains the result of an expression, such as lower(email). Both reduce index size and can target a specific workload, but the query mus2 min readSELECT, WHERE, JOIN, primary keys, and basic EXPLAIN. This chapter uses PostgreSQL terms, but the general ideas apply to other relational databases.2 min readSELECT, WHERE, ORDER BY, and JOIN syntax. You should also understand tables, rows, primary keys, and the difference between linear and logarithmic work.2 min read