At a glance
- The Request:You tell the database what you want using a SQL query.
- The Brain:The query optimizer looks at the request and builds a list of possible paths.
- The Cost:Each path gets a score based on how much work it takes (CPU and memory).
- The Plan:The engine picks the path with the lowest score and runs it.