|
Metadata for faster retrieval Indexing Conclusion You can speed up search times by narrowing the search scope What is a database index Types of database indexes Database Anatomy of a query Sequential scan traverses the entire table Index scan Looks up metadata first to find records faster Index-only scan Finds records directly in the index The price you pay for faster reads Summary and next steps know about databases Databases are like libraries. Books in a library are usually well organized just like data in a database. Both provide a good structure for storing large amounts of information for later retrieval. Continuing with the library analogy, libraries store large amounts of data. The more books you have the longer it will take to find one.
The time required to retrieve a book may be aff photo editing servies ected by the library's strategy for storing and searching books. Store books in smaller bookshelf partitions For example, you might naively organize your books into one large bookshelf in alphabetical order by title. One strategy for retrieving books faster is to store them in smaller bookshelves in alphabetical order. This is similar to partitioning a table in a database. The table is divided into smaller chunks by the partition key included in the query. The partition key is the column used to split the table. The database uses partition keys to narrow the range of data to be queried.
Table Partitioning More People Searching Leads to Faster Search Query Parallelization Another strategy for speeding up book retrieval is to invite more people to join your search and distribute their works in a structured way. Some databases support a similar mode where the database server can allocate more compute or cores to execute queries. This is called parallel query execution. Parallel database queries Use the catalog to store book metadata for faster retrieval Index Database index You can add prefixes to queries to view information about the database query plan. If you are interested in learning more about the Query Planner there is a talk explaining it. Sequential scan traverses the entire.
|
|