Skip to the content ForoHackers
Log inJoin

El índice que pusimos hizo la query más lenta, wey

DatabasesSQL
#11203 · · Quote · Report

Copia de ensayo. Facturas ABIERTAS: 9.920 de 10.000. Cerradas: 80. Estimación del plan para abiertas: 140. Pues vaya don, yo para fallar por nueve mil ni cobro. ¿De quién es hijo este índice?

#11394 · · Quote · Report

How old are the stats? If you ran the plan before loading the pile and reused those stats, the estimate may be ancient history. On your copy compare again after ANALYZE. Also which state do you actually sell tickets for?

#11395 · · Quote · Report

Con estadísticas nuevas se acerca a las 9.920. Para las abiertas el plan lee la tabla del tirón. Para las ochenta cerradas sigue sirviendo el índice. Me da que el culpable no era mexicano ni hijo de nadie.

#11396 · · Quote · Report

queda absuelto el índice sólo de lunes a viernes y mientras se mantenga la proporción. el EXPLAIN ANALYZE que ejecuta cosas me lo dejan en la copia, eh.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply