Outliers
Queries that have longest execution time in aggregate
Queries that have longest execution time in aggregate
| Query | Exec time | Prop exec time | Calls | Sync io time |
|---|---|---|---|---|
| LOCK TABLE "schema_migrations" IN SHARE UPDATE EXCLUSIVE MODE | 4.694132 seconds | 44.4 | 3635 | 0 seconds |
| SELECT t.oid, t.typname, t.typsend, t.typreceive, t.typoutput, t.typinput, coalesce(d.typelem, t.typelem), coalesce(r.rngsubtype, $1), ARRAY ( SELECT a.atttypid FROM pg_attribute AS a WHERE a.attrelid = t.typrelid AND a.attnum > $2 AND NOT a.attisdropped ORDER BY a.attnum ) FROM pg_type AS t LEFT JOIN pg_type AS d ON t.typbasetype = d.oid LEFT JOIN pg_range AS r ON r.rngtypid = t.oid OR (t.typbasetype <> $3 AND r.rngtypid = t.typbasetype) WHERE (t.typrelid = $4) AND (t.typelem = $5 OR NOT EXISTS (SELECT $6 FROM pg_catalog.pg_type s WHERE s.typrelid != $7 AND s.oid = t.typelem)) | 1.446538 seconds | 13.7 | 1 | 0 seconds |
| CREATE TABLE IF NOT EXISTS "schema_migrations" ("version" bigint, "inserted_at" timestamp(0), PRIMARY KEY ("version")) | 0.875155 seconds | 8.3 | 3635 | 0 seconds |
| INSERT INTO "air_pollutions" ("aqi_idx","city_id","co_ugm3","nh3_ugm3","no2_ugm3","no_ugm3","o3_ugm3","pm10_ugm3","pm2_5_ugm3","so2_ugm3","timestamp") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) | 0.463073 seconds | 4.4 | 110 | 0 seconds |
| select register_city( $1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 ) | 0.430485 seconds | 4.1 | 129 | 0 seconds |
| select installed_version from pg_available_extensions where name=$1 | 0.287711 seconds | 2.7 | 120 | 0 seconds |
| INSERT INTO "openweather_maps" ("city_id","clouds_all_pt","description","feels_like_c","ground_level_mb","humidity_pct","icon","ow_temperature_c","pressure_mb","sea_level_mb","temp_max_c","temp_min_c","timestamp","visibility_m","weather_tag","wind_direction_deg","wind_gust_ms","wind_speed_ms") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18) | 0.250905 seconds | 2.4 | 86 | 0 seconds |
| SELECT t.oid, t.typname, t.typsend, t.typreceive, t.typoutput, t.typinput, coalesce(d.typelem, t.typelem), coalesce(r.rngsubtype, $1), ARRAY ( SELECT a.atttypid FROM pg_attribute AS a WHERE a.attrelid = t.typrelid AND a.attnum > $2 AND NOT a.attisdropped ORDER BY a.attnum ) FROM pg_type AS t LEFT JOIN pg_type AS d ON t.typbasetype = d.oid LEFT JOIN pg_range AS r ON r.rngtypid = t.oid OR (t.typbasetype <> $3 AND r.rngtypid = t.typbasetype) WHERE (t.typrelid = $4) AND (t.typelem = $5 OR NOT EXISTS (SELECT $6 FROM pg_catalog.pg_type s WHERE s.typrelid != $7 AND s.oid = t.typelem)) | 0.231474 seconds | 2.2 | 1 | 0 seconds |
| CREATE OR REPLACE FUNCTION field(anyelement, VARIADIC anyarray) RETURNS BIGINT AS $$ SELECT rownum FROM (SELECT ROW_NUMBER() OVER () AS rownum, elem FROM unnest($2) elem) numbered WHERE numbered.elem = $1 UNION ALL SELECT 0 $$ LANGUAGE SQL IMMUTABLE | 0.218421 seconds | 2.1 | 165 | 0 seconds |
| SELECT s0."version"::bigint FROM "schema_migrations" AS s0 | 0.194633 seconds | 1.8 | 3635 | 0 seconds |