EXPLICAR: Cómo ve la base de datos su solicitud

Cuando envía una consulta SQL, el programador de PostgreSQL elabora un plan para recuperar datos: si revisar toda la tabla (Seq Scan) o utilizar un índice. El comando EXPLAIN muestra este plan sin ejecutar una consulta; EXPLAIN ANALYZE en realidad ejecuta la consulta y muestra el tiempo real de los pasos. A continuación se muestra el mismo filtro por edad: primero, puede ver visualmente cómo se cortan las filas, luego analizaremos la salida "seca" del programador y compararemos el plan antes y después de crear el índice.

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.