102 lines
2.7 KiB
JSON
102 lines
2.7 KiB
JSON
[
|
|
{
|
|
"queryid": -1973204932425384048,
|
|
"calls": 24316,
|
|
"total_exec_ms": 15927.584,
|
|
"mean_exec_ms": 0.655,
|
|
"rows": 24316,
|
|
"shared_blks_hit": 573397,
|
|
"shared_blks_read": 2,
|
|
"temp_blks_written": 0,
|
|
"query": "INSERT INTO message_idempotency(user_id, chat_id, idempotency_key, message_id)\nVALUES ($1, $2, $3, $4)\nON CONFLICT (user_id, chat_id, idempotency_key) DO NOTHIN"
|
|
},
|
|
{
|
|
"queryid": -7361367982095387306,
|
|
"calls": 24336,
|
|
"total_exec_ms": 11223.18,
|
|
"mean_exec_ms": 0.461,
|
|
"rows": 24336,
|
|
"shared_blks_hit": 244460,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "INSERT INTO messages (chat_id, sender_id, text)\nVALUES ($1, $2, $3)\nRETURNING id, chat_id, sender_id, text, created_at"
|
|
},
|
|
{
|
|
"queryid": 5278999262105563684,
|
|
"calls": 26031,
|
|
"total_exec_ms": 4135.478,
|
|
"mean_exec_ms": 0.159,
|
|
"rows": 26031,
|
|
"shared_blks_hit": 104124,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "SELECT c.id, c.title, c.created_at, array_agg(cm.user_id)::uuid[] AS member_ids\nFROM chats c\n JOIN chat_members cm ON cm.chat_id = c.id\nWHERE c.id = $1\n"
|
|
},
|
|
{
|
|
"queryid": -6556208730317240597,
|
|
"calls": 2,
|
|
"total_exec_ms": 38.06,
|
|
"mean_exec_ms": 19.03,
|
|
"rows": 2,
|
|
"shared_blks_hit": 2833,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "SELECT count(*) FROM messages"
|
|
},
|
|
{
|
|
"queryid": 6097083398544187049,
|
|
"calls": 24296,
|
|
"total_exec_ms": 30.053,
|
|
"mean_exec_ms": 0.001,
|
|
"rows": 0,
|
|
"shared_blks_hit": 0,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "commit"
|
|
},
|
|
{
|
|
"queryid": 4854991825702068830,
|
|
"calls": 24402,
|
|
"total_exec_ms": 20.55,
|
|
"mean_exec_ms": 0.001,
|
|
"rows": 0,
|
|
"shared_blks_hit": 0,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "begin"
|
|
},
|
|
{
|
|
"queryid": 7421764486656699138,
|
|
"calls": 4,
|
|
"total_exec_ms": 1.999,
|
|
"mean_exec_ms": 0.5,
|
|
"rows": 4,
|
|
"shared_blks_hit": 4,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "SELECT json_build_object($1, count(*), $2, count(*) FILTER (WHERE state=$3), $4, count(*) FILTER (WHERE wait_event_type=$5), $6, count(*) FILTER (WHERE wait_eve"
|
|
},
|
|
{
|
|
"queryid": -1241709283587570954,
|
|
"calls": 1,
|
|
"total_exec_ms": 0.591,
|
|
"mean_exec_ms": 0.591,
|
|
"rows": 1,
|
|
"shared_blks_hit": 0,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "SELECT pg_stat_statements_reset()"
|
|
},
|
|
{
|
|
"queryid": -7676915344437841334,
|
|
"calls": 37,
|
|
"total_exec_ms": 0.089,
|
|
"mean_exec_ms": 0.002,
|
|
"rows": 0,
|
|
"shared_blks_hit": 0,
|
|
"shared_blks_read": 0,
|
|
"temp_blks_written": 0,
|
|
"query": "rollback"
|
|
}
|
|
]
|