feat: add 4 and 5 track 2

This commit is contained in:
TAskMAster339
2026-10-01 20:46:42 +03:00
parent a9dda20540
commit b0fe7350c8
135 changed files with 45120 additions and 145 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"started_utc": "2026-10-01T14:58:56.553767+00:00",
"run_id": "20261001-a",
"base_commit": "a9dda2054084cb22936feb90d197462c7dc74809",
"dirty": true,
"docker_version": "28.5.1",
"docker_resources": "16 CPUs; 7942131712 bytes RAM",
"postgres": "PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit",
"page_size": 50,
"warmup": 1,
"repetitions": 7,
"settings": "{ \"effective_cache_size\" : \"524288\", \"fsync\" : \"on\", \"full_page_writes\" : \"on\", \"max_parallel_workers_per_gather\" : \"2\", \"shared_buffers\" : \"16384\", \"synchronous_commit\" : \"on\", \"work_mem\" : \"4096\" }",
"source_hashes": {
"src\\experiments\\track2\\run.py": "d168c6979e60670b8a1e97cad614f9d48bfa7ed747c51ffd196728b888f99a8d",
"src\\experiments\\track2\\seed.sql": "db0c76bfd8963c8f09186a5c320062110b63f0930a92097f3ac9bacae695e5d7",
"compose.track2.yaml": "8e9da80fb6cd9c93f87c5432a9d0ad8e5b899ba6ede399aea94504f67351f34f"
}
}
+62
View File
@@ -0,0 +1,62 @@
-- read-base-large-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-large-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-large-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50;
-- read-base-medium-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-medium-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-medium-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50;
-- read-base-small-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-small-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-base-small-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50;
-- read-covering-large-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-large-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-large-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50;
-- read-covering-medium-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-medium-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-medium-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50;
-- read-covering-small-first
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-small-late
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50;
-- read-covering-small-offset
SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50;
-- write-none (TRUNCATE before each trial)
INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id;
-- write-base (TRUNCATE before each trial)
INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id;
-- write-covering (TRUNCATE before each trial)
INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id;
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.069,
"Actual Total Time": 0.077,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.068,
"Actual Total Time": 0.073,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.41,
"Triggers": [],
"Execution Time": 0.129
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.038,
"Actual Total Time": 0.046,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.037,
"Actual Total Time": 0.041,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.434,
"Triggers": [],
"Execution Time": 0.098
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.036,
"Actual Total Time": 0.045,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.036,
"Actual Total Time": 0.04,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.544,
"Triggers": [],
"Execution Time": 0.097
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.038,
"Actual Total Time": 0.046,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.037,
"Actual Total Time": 0.042,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.434,
"Triggers": [],
"Execution Time": 0.099
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.036,
"Actual Total Time": 0.044,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.035,
"Actual Total Time": 0.04,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.432,
"Triggers": [],
"Execution Time": 0.096
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.041,
"Actual Total Time": 0.049,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.04,
"Actual Total Time": 0.044,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.658,
"Triggers": [],
"Execution Time": 0.134
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.76,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.04,
"Actual Total Time": 0.048,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8713.54,
"Plan Rows": 100350,
"Plan Width": 86,
"Actual Startup Time": 0.039,
"Actual Total Time": 0.043,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.519,
"Triggers": [],
"Execution Time": 0.113
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.058,
"Actual Total Time": 0.072,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.875,
"Triggers": [],
"Execution Time": 0.17
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.131,
"Actual Total Time": 0.174,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.126,
"Actual Total Time": 0.166,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 1.362,
"Triggers": [],
"Execution Time": 0.336
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.07,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.055,
"Actual Total Time": 0.065,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.489,
"Triggers": [],
"Execution Time": 0.116
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.091,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.069,
"Actual Total Time": 0.085,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.613,
"Triggers": [],
"Execution Time": 0.188
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.061,
"Actual Total Time": 0.145,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.06,
"Actual Total Time": 0.14,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.633,
"Triggers": [],
"Execution Time": 0.209
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.084,
"Actual Total Time": 0.099,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.083,
"Actual Total Time": 0.094,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.47,
"Triggers": [],
"Execution Time": 0.153
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 20.95,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.087,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3489.9,
"Plan Rows": 8496,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.081,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.463,
"Triggers": [],
"Execution Time": 0.143
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 21.731,
"Actual Total Time": 21.746,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.074,
"Actual Total Time": 18.401,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 1.45,
"Triggers": [],
"Execution Time": 21.833
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 25.307,
"Actual Total Time": 25.336,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.061,
"Actual Total Time": 22.002,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.7,
"Triggers": [],
"Execution Time": 25.397
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 38.115,
"Actual Total Time": 38.134,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.054,
"Actual Total Time": 30.229,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.757,
"Triggers": [],
"Execution Time": 38.209
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 26.947,
"Actual Total Time": 26.962,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.043,
"Actual Total Time": 23.382,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.753,
"Triggers": [],
"Execution Time": 27.124
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 23.966,
"Actual Total Time": 23.985,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.065,
"Actual Total Time": 19.876,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.682,
"Triggers": [],
"Execution Time": 24.055
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 19.854,
"Actual Total Time": 19.867,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.074,
"Actual Total Time": 16.461,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.693,
"Triggers": [],
"Execution Time": 19.912
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 7589.28,
"Total Cost": 7593.5,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 30.997,
"Actual Total Time": 31.018,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 8462.84,
"Plan Rows": 100360,
"Plan Width": 86,
"Actual Startup Time": 0.125,
"Actual Total Time": 26.972,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 1933,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.81,
"Triggers": [],
"Execution Time": 31.424
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.088,
"Actual Total Time": 0.098,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.086,
"Actual Total Time": 0.093,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.505,
"Triggers": [],
"Execution Time": 0.157
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.082,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.069,
"Actual Total Time": 0.077,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.635,
"Triggers": [],
"Execution Time": 0.162
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.066,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.055,
"Actual Total Time": 0.061,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.454,
"Triggers": [],
"Execution Time": 0.12
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.098,
"Actual Total Time": 0.111,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.097,
"Actual Total Time": 0.105,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.634,
"Triggers": [],
"Execution Time": 0.195
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.054,
"Actual Total Time": 0.063,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.053,
"Actual Total Time": 0.059,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.485,
"Triggers": [],
"Execution Time": 0.125
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.071,
"Actual Total Time": 0.084,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.069,
"Actual Total Time": 0.078,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.674,
"Triggers": [],
"Execution Time": 0.161
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 13.52,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.135,
"Actual Total Time": 0.147,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3838.5,
"Plan Rows": 14651,
"Plan Width": 86,
"Actual Startup Time": 0.133,
"Actual Total Time": 0.141,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.876,
"Triggers": [],
"Execution Time": 0.244
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.848,
"Triggers": [],
"Execution Time": 0.137
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.438,
"Triggers": [],
"Execution Time": 0.176
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.063,
"Actual Total Time": 0.081,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.062,
"Actual Total Time": 0.076,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.559,
"Triggers": [],
"Execution Time": 0.151
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.093,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.071,
"Actual Total Time": 0.087,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.668,
"Triggers": [],
"Execution Time": 0.183
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.114,
"Actual Total Time": 0.135,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.113,
"Actual Total Time": 0.129,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.715,
"Triggers": [],
"Execution Time": 0.214
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.125,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.069,
"Actual Total Time": 0.12,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.755,
"Triggers": [],
"Execution Time": 0.207
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 17.16,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.066,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3622.96,
"Plan Rows": 10821,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.062,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 6,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.456,
"Triggers": [],
"Execution Time": 0.127
}
]
@@ -0,0 +1,933 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 10.726,
"Actual Total Time": 10.761,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 8.986,
"Actual Total Time": 9.996,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.314,
"Actual Total Time": 3.839,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.281,
"Actual Total Time": 1.283,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.498,
"Triggers": [],
"Execution Time": 11.286
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 9.039,
"Actual Total Time": 9.047,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 7.75,
"Actual Total Time": 8.597,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.54,
"Actual Total Time": 3.504,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.505,
"Actual Total Time": 1.506,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.791,
"Triggers": [],
"Execution Time": 9.546
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 7.511,
"Actual Total Time": 7.52,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 6.563,
"Actual Total Time": 7.068,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.33,
"Actual Total Time": 2.872,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.292,
"Actual Total Time": 1.293,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.77,
"Triggers": [],
"Execution Time": 8.024
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 11.438,
"Actual Total Time": 11.454,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 10.158,
"Actual Total Time": 10.913,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.262,
"Actual Total Time": 4.467,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.216,
"Actual Total Time": 1.218,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.748,
"Triggers": [],
"Execution Time": 12.108
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 14.981,
"Actual Total Time": 14.989,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 13.989,
"Actual Total Time": 14.533,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.44,
"Actual Total Time": 4.544,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.392,
"Actual Total Time": 1.393,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.859,
"Triggers": [],
"Execution Time": 15.625
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 12.365,
"Actual Total Time": 12.374,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 11.186,
"Actual Total Time": 11.87,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 1.145,
"Actual Total Time": 3.649,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 1.103,
"Actual Total Time": 1.105,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.71,
"Triggers": [],
"Execution Time": 12.976
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3483.7,
"Total Cost": 3483.83,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 10.253,
"Actual Total Time": 10.261,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3449.95,
"Total Cost": 3486.58,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 9.109,
"Actual Total Time": 9.707,
"Actual Rows": 13550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 2377,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 331,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 537.97,
"Total Cost": 2436.12,
"Plan Rows": 14652,
"Plan Width": 86,
"Actual Startup Time": 0.893,
"Actual Total Time": 2.644,
"Actual Rows": 15000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 215,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 325,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 534.31,
"Plan Rows": 14652,
"Plan Width": 0,
"Actual Startup Time": 0.868,
"Actual Total Time": 0.868,
"Actual Rows": 15000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Shared Hit Blocks": 110,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.529,
"Triggers": [],
"Execution Time": 10.742
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.09,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.085,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.682,
"Triggers": [],
"Execution Time": 0.189
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.069,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.065,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.465,
"Triggers": [],
"Execution Time": 0.162
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.055,
"Actual Total Time": 0.073,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.054,
"Actual Total Time": 0.068,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.593,
"Triggers": [],
"Execution Time": 0.13
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.078,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.055,
"Actual Total Time": 0.073,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 1.06,
"Triggers": [],
"Execution Time": 0.139
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.068,
"Actual Total Time": 0.092,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.066,
"Actual Total Time": 0.085,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.558,
"Triggers": [],
"Execution Time": 0.237
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.105,
"Actual Total Time": 0.124,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.104,
"Actual Total Time": 0.118,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.517,
"Triggers": [],
"Execution Time": 0.185
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 33.37,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.073,
"Actual Total Time": 0.096,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3287.62,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.091,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.608,
"Triggers": [],
"Execution Time": 0.265
}
]
@@ -0,0 +1,506 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.059,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.05,
"Actual Total Time": 0.055,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.536,
"Triggers": [],
"Execution Time": 0.113
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.084,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.071,
"Actual Total Time": 0.078,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.729,
"Triggers": [],
"Execution Time": 0.184
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.049,
"Actual Total Time": 0.057,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.053,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.396,
"Triggers": [],
"Execution Time": 0.108
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.078,
"Actual Total Time": 0.089,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.077,
"Actual Total Time": 0.084,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.705,
"Triggers": [],
"Execution Time": 0.164
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.061,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.056,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.428,
"Triggers": [],
"Execution Time": 0.119
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.054,
"Actual Total Time": 0.062,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.053,
"Actual Total Time": 0.058,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.771,
"Triggers": [],
"Execution Time": 0.12
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 37.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.087,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 3255.93,
"Plan Rows": 4429,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.082,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 106,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.51,
"Triggers": [],
"Execution Time": 0.147
}
]
@@ -0,0 +1,933 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.118,
"Actual Total Time": 3.128,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 2.793,
"Actual Total Time": 2.971,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.651,
"Actual Total Time": 1.278,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.631,
"Actual Total Time": 0.632,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.531,
"Triggers": [],
"Execution Time": 3.357
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 5.525,
"Actual Total Time": 5.532,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 5.18,
"Actual Total Time": 5.356,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.494,
"Actual Total Time": 1.113,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.476,
"Actual Total Time": 0.477,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.434,
"Triggers": [],
"Execution Time": 6.092
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.791,
"Actual Total Time": 3.798,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 3.476,
"Actual Total Time": 3.645,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.327,
"Actual Total Time": 0.863,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.312,
"Actual Total Time": 0.313,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.637,
"Triggers": [],
"Execution Time": 4.049
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.756,
"Actual Total Time": 3.765,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 3.335,
"Actual Total Time": 3.588,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.336,
"Actual Total Time": 1.163,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.32,
"Actual Total Time": 0.321,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.779,
"Triggers": [],
"Execution Time": 3.985
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 2.768,
"Actual Total Time": 2.777,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 2.317,
"Actual Total Time": 2.585,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.388,
"Actual Total Time": 0.877,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.37,
"Actual Total Time": 0.371,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.417,
"Triggers": [],
"Execution Time": 2.991
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.265,
"Actual Total Time": 3.275,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 2.862,
"Actual Total Time": 3.097,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.414,
"Actual Total Time": 1.057,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.398,
"Actual Total Time": 0.399,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.488,
"Triggers": [],
"Execution Time": 3.493
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2278.04,
"Total Cost": 2278.17,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.615,
"Actual Total Time": 3.622,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2266.79,
"Total Cost": 2279.26,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 3.257,
"Actual Total Time": 3.456,
"Actual Rows": 4550,
"Actual Loops": 1,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "quicksort",
"Sort Space Used": 857,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 118,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Heap Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 183.07,
"Total Cost": 1960.42,
"Plan Rows": 4988,
"Plan Width": 86,
"Actual Startup Time": 0.727,
"Actual Total Time": 1.421,
"Actual Rows": 5000,
"Actual Loops": 1,
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Exact Heap Blocks": 73,
"Lossy Heap Blocks": 0,
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Bitmap Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Index Name": "messages_history_idx",
"Startup Cost": 0.0,
"Total Cost": 181.83,
"Plan Rows": 4988,
"Plan Width": 0,
"Actual Startup Time": 0.702,
"Actual Total Time": 0.703,
"Actual Rows": 5000,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Shared Hit Blocks": 39,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 107,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.959,
"Triggers": [],
"Execution Time": 3.853
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.098,
"Actual Total Time": 0.11,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.097,
"Actual Total Time": 0.104,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.574,
"Triggers": [],
"Execution Time": 0.186
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.086,
"Actual Total Time": 0.097,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.085,
"Actual Total Time": 0.092,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.622,
"Triggers": [],
"Execution Time": 0.18
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.086,
"Actual Total Time": 0.097,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.085,
"Actual Total Time": 0.091,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.953,
"Triggers": [],
"Execution Time": 0.23
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.074,
"Actual Total Time": 0.085,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.073,
"Actual Total Time": 0.079,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.526,
"Triggers": [],
"Execution Time": 0.183
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.083,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.071,
"Actual Total Time": 0.078,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.725,
"Triggers": [],
"Execution Time": 0.16
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.058,
"Actual Total Time": 0.066,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.061,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.566,
"Triggers": [],
"Execution Time": 0.135
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.106,
"Actual Total Time": 0.116,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7524.3,
"Plan Rows": 99994,
"Plan Width": 86,
"Actual Startup Time": 0.104,
"Actual Total Time": 0.11,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 4,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.559,
"Triggers": [],
"Execution Time": 0.203
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.05,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.049,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.53,
"Triggers": [],
"Execution Time": 0.128
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.13,
"Actual Total Time": 0.169,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.127,
"Actual Total Time": 0.162,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.607,
"Triggers": [],
"Execution Time": 0.286
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.054,
"Actual Total Time": 0.075,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.053,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.702,
"Triggers": [],
"Execution Time": 0.137
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.08,
"Actual Total Time": 0.112,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.079,
"Actual Total Time": 0.105,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.543,
"Triggers": [],
"Execution Time": 0.239
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.101,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.05,
"Actual Total Time": 0.096,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.501,
"Triggers": [],
"Execution Time": 0.171
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.075,
"Actual Total Time": 0.107,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.073,
"Actual Total Time": 0.101,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.778,
"Triggers": [],
"Execution Time": 0.279
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.053,
"Actual Total Time": 0.077,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 626.76,
"Plan Rows": 8317,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.073,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.591,
"Triggers": [],
"Execution Time": 0.148
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 25.087,
"Actual Total Time": 25.123,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.082,
"Actual Total Time": 21.666,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.63,
"Triggers": [],
"Execution Time": 25.219
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 20.685,
"Actual Total Time": 20.714,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.049,
"Actual Total Time": 17.425,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.428,
"Triggers": [],
"Execution Time": 20.767
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 19.804,
"Actual Total Time": 19.829,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.05,
"Actual Total Time": 16.562,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.446,
"Triggers": [],
"Execution Time": 19.878
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 21.916,
"Actual Total Time": 21.937,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.117,
"Actual Total Time": 18.38,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.478,
"Triggers": [],
"Execution Time": 21.989
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 19.856,
"Actual Total Time": 19.879,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.103,
"Actual Total Time": 16.814,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.937,
"Triggers": [],
"Execution Time": 19.961
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 18.093,
"Actual Total Time": 18.112,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.071,
"Actual Total Time": 15.06,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.421,
"Triggers": [],
"Execution Time": 18.162
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 6546.82,
"Total Cost": 6550.46,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 18.656,
"Actual Total Time": 18.676,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 7274.49,
"Plan Rows": 100004,
"Plan Width": 86,
"Actual Startup Time": 0.049,
"Actual Total Time": 15.518,
"Actual Rows": 90050,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 1237,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.412,
"Triggers": [],
"Execution Time": 18.723
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.077,
"Actual Total Time": 0.115,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.076,
"Actual Total Time": 0.109,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.59,
"Triggers": [],
"Execution Time": 0.2
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.079,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.075,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.416,
"Triggers": [],
"Execution Time": 0.135
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.081,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.077,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.463,
"Triggers": [],
"Execution Time": 0.154
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.079,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.05,
"Actual Total Time": 0.074,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.427,
"Triggers": [],
"Execution Time": 0.138
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.066,
"Actual Total Time": 0.1,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.065,
"Actual Total Time": 0.095,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.647,
"Triggers": [],
"Execution Time": 0.183
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.108,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.103,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.674,
"Triggers": [],
"Execution Time": 0.189
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.18,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.076,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1133.18,
"Plan Rows": 15038,
"Plan Width": 86,
"Actual Startup Time": 0.047,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.417,
"Triggers": [],
"Execution Time": 0.143
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.076,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.072,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.539,
"Triggers": [],
"Execution Time": 0.162
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.053,
"Actual Total Time": 0.072,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.052,
"Actual Total Time": 0.068,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.556,
"Triggers": [],
"Execution Time": 0.133
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.105,
"Actual Total Time": 0.13,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.103,
"Actual Total Time": 0.124,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.784,
"Triggers": [],
"Execution Time": 0.273
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.063,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.425,
"Triggers": [],
"Execution Time": 0.123
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.057,
"Actual Total Time": 0.119,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.056,
"Actual Total Time": 0.114,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.5,
"Triggers": [],
"Execution Time": 0.181
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.079,
"Actual Total Time": 0.105,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.078,
"Actual Total Time": 0.099,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.715,
"Triggers": [],
"Execution Time": 0.189
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.19,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.11,
"Actual Total Time": 0.149,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 833.24,
"Plan Rows": 11041,
"Plan Width": 86,
"Actual Startup Time": 0.109,
"Actual Total Time": 0.143,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 1.069,
"Triggers": [],
"Execution Time": 0.256
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 24.314,
"Actual Total Time": 24.326,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 11.675,
"Actual Total Time": 23.808,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.53,
"Triggers": [],
"Execution Time": 24.377
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 10.681,
"Actual Total Time": 10.693,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.063,
"Actual Total Time": 10.016,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.475,
"Triggers": [],
"Execution Time": 10.746
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 2.789,
"Actual Total Time": 2.801,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.104,
"Actual Total Time": 2.291,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.687,
"Triggers": [],
"Execution Time": 2.888
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 2.48,
"Actual Total Time": 2.492,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.141,
"Actual Total Time": 2.041,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.493,
"Triggers": [],
"Execution Time": 2.543
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 3.582,
"Actual Total Time": 3.597,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.123,
"Actual Total Time": 3.017,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.581,
"Triggers": [],
"Execution Time": 3.655
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 2.849,
"Actual Total Time": 2.861,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.059,
"Actual Total Time": 2.328,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.425,
"Triggers": [],
"Execution Time": 2.907
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 983.48,
"Total Cost": 987.12,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 2.561,
"Actual Total Time": 2.573,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 1095.62,
"Plan Rows": 15040,
"Plan Width": 86,
"Actual Startup Time": 0.066,
"Actual Total Time": 2.109,
"Actual Rows": 13550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 190,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.631,
"Triggers": [],
"Execution Time": 2.636
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.059,
"Actual Total Time": 0.075,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.058,
"Actual Total Time": 0.07,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.431,
"Triggers": [],
"Execution Time": 0.13
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.065,
"Actual Total Time": 0.081,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.064,
"Actual Total Time": 0.076,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.541,
"Triggers": [],
"Execution Time": 0.141
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.059,
"Actual Total Time": 0.076,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.058,
"Actual Total Time": 0.071,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.465,
"Triggers": [],
"Execution Time": 0.134
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.061,
"Actual Total Time": 0.08,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.06,
"Actual Total Time": 0.075,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.477,
"Triggers": [],
"Execution Time": 0.144
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.271,
"Actual Total Time": 0.317,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.27,
"Actual Total Time": 0.313,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 1.494,
"Triggers": [],
"Execution Time": 0.496
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.064,
"Actual Total Time": 0.08,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.063,
"Actual Total Time": 0.075,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.655,
"Triggers": [],
"Execution Time": 0.139
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.063,
"Actual Total Time": 0.078,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 375.54,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.062,
"Actual Total Time": 0.074,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.582,
"Triggers": [],
"Execution Time": 0.138
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.076,
"Actual Total Time": 0.105,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.075,
"Actual Total Time": 0.1,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.502,
"Triggers": [],
"Execution Time": 0.197
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.06,
"Actual Total Time": 0.079,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.059,
"Actual Total Time": 0.074,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.439,
"Triggers": [],
"Execution Time": 0.179
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.047,
"Actual Total Time": 0.063,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.432,
"Triggers": [],
"Execution Time": 0.124
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.067,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.047,
"Actual Total Time": 0.062,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.455,
"Triggers": [],
"Execution Time": 0.124
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.084,
"Actual Total Time": 0.105,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.068,
"Actual Total Time": 0.086,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.569,
"Triggers": [],
"Execution Time": 0.23
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.105,
"Actual Total Time": 0.127,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.103,
"Actual Total Time": 0.122,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.538,
"Triggers": [],
"Execution Time": 0.214
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 4.2,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.105,
"Actual Total Time": 0.129,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 332.22,
"Plan Rows": 4390,
"Plan Width": 86,
"Actual Startup Time": 0.104,
"Actual Total Time": 0.123,
"Actual Rows": 50,
"Actual Loops": 1,
"Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.629,
"Triggers": [],
"Execution Time": 0.239
}
]
@@ -0,0 +1,513 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.904,
"Actual Total Time": 0.921,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.072,
"Actual Total Time": 0.741,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.401,
"Triggers": [],
"Execution Time": 0.966
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 1.22,
"Actual Total Time": 1.235,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.186,
"Actual Total Time": 1.054,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.574,
"Triggers": [],
"Execution Time": 1.295
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 1.233,
"Actual Total Time": 1.244,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.096,
"Actual Total Time": 1.081,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.616,
"Triggers": [],
"Execution Time": 1.301
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 1.012,
"Actual Total Time": 1.027,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.086,
"Actual Total Time": 0.862,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.469,
"Triggers": [],
"Execution Time": 1.075
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.823,
"Actual Total Time": 0.834,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.064,
"Actual Total Time": 0.681,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.412,
"Triggers": [],
"Execution Time": 0.878
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 1.283,
"Actual Total Time": 1.299,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.108,
"Actual Total Time": 1.0,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.659,
"Triggers": [],
"Execution Time": 1.361
},
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 329.77,
"Total Cost": 333.43,
"Plan Rows": 50,
"Plan Width": 86,
"Actual Startup Time": 0.978,
"Actual Total Time": 0.988,
"Actual Rows": 50,
"Actual Loops": 1,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Only Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history_covering_idx",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 363.15,
"Plan Rows": 4956,
"Plan Width": 86,
"Actual Startup Time": 0.073,
"Actual Total Time": 0.828,
"Actual Rows": 4550,
"Actual Loops": 1,
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)",
"Rows Removed by Index Recheck": 0,
"Heap Fetches": 0,
"Shared Hit Blocks": 66,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 113,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.547,
"Triggers": [],
"Execution Time": 1.052
}
]
+218
View File
@@ -0,0 +1,218 @@
[
{
"name": "read-base-large-first",
"median_ms": 0.099,
"min_ms": 0.096,
"max_ms": 0.134,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 4,
"shared_read": 0
},
{
"name": "read-base-large-late",
"median_ms": 0.17,
"min_ms": 0.116,
"max_ms": 0.336,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 6,
"shared_read": 0
},
{
"name": "read-base-large-offset",
"median_ms": 25.397,
"min_ms": 19.912,
"max_ms": 38.209,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 90050,
"heap_fetches": null,
"shared_hit": 1933,
"shared_read": 0
},
{
"name": "read-base-medium-first",
"median_ms": 0.161,
"min_ms": 0.12,
"max_ms": 0.244,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-base-medium-late",
"median_ms": 0.176,
"min_ms": 0.127,
"max_ms": 0.214,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 6,
"shared_read": 0
},
{
"name": "read-base-medium-offset",
"median_ms": 11.286,
"min_ms": 8.024,
"max_ms": 15.625,
"scan": "Bitmap Index Scan",
"index": "messages_history_idx",
"scan_rows": 15000,
"heap_fetches": null,
"shared_hit": 331,
"shared_read": 0
},
{
"name": "read-base-small-first",
"median_ms": 0.185,
"min_ms": 0.13,
"max_ms": 0.265,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-base-small-late",
"median_ms": 0.12,
"min_ms": 0.108,
"max_ms": 0.184,
"scan": "Index Scan",
"index": "messages_history_idx",
"scan_rows": 50,
"heap_fetches": null,
"shared_hit": 4,
"shared_read": 0
},
{
"name": "read-base-small-offset",
"median_ms": 3.853,
"min_ms": 2.991,
"max_ms": 6.092,
"scan": "Bitmap Index Scan",
"index": "messages_history_idx",
"scan_rows": 5000,
"heap_fetches": null,
"shared_hit": 118,
"shared_read": 0
},
{
"name": "read-covering-large-first",
"median_ms": 0.183,
"min_ms": 0.135,
"max_ms": 0.23,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 4,
"shared_read": 0
},
{
"name": "read-covering-large-late",
"median_ms": 0.171,
"min_ms": 0.128,
"max_ms": 0.286,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-covering-large-offset",
"median_ms": 19.961,
"min_ms": 18.162,
"max_ms": 25.219,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 90050,
"heap_fetches": 0,
"shared_hit": 1237,
"shared_read": 0
},
{
"name": "read-covering-medium-first",
"median_ms": 0.154,
"min_ms": 0.135,
"max_ms": 0.2,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-covering-medium-late",
"median_ms": 0.181,
"min_ms": 0.123,
"max_ms": 0.273,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-covering-medium-offset",
"median_ms": 2.907,
"min_ms": 2.543,
"max_ms": 24.377,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 13550,
"heap_fetches": 0,
"shared_hit": 190,
"shared_read": 0
},
{
"name": "read-covering-small-first",
"median_ms": 0.139,
"min_ms": 0.13,
"max_ms": 0.496,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-covering-small-late",
"median_ms": 0.197,
"min_ms": 0.124,
"max_ms": 0.239,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 50,
"heap_fetches": 0,
"shared_hit": 5,
"shared_read": 0
},
{
"name": "read-covering-small-offset",
"median_ms": 1.075,
"min_ms": 0.878,
"max_ms": 1.361,
"scan": "Index Only Scan",
"index": "messages_history_covering_idx",
"scan_rows": 4550,
"heap_fetches": 0,
"shared_hit": 66,
"shared_read": 0
}
]
+52
View File
@@ -0,0 +1,52 @@
{
"dump_seconds": 1.0008760000346228,
"dump_bytes": 3613568,
"dump_sha256": "9e642628f6f6806a3b363880fa417dbc02aec454561dbf5bb6737ce25b99d8e5",
"restore_seconds": 1.5302693999838084,
"startup_restore_verify_seconds": 16.36345339997206,
"expected": {
"counts": {
"users": 1,
"chats": 3,
"chat_members": 3,
"messages": 120000,
"schema_migrations": 1
},
"distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000",
"samples": [
"{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}",
"{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}",
"{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}",
"{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}",
"{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}",
"{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}"
]
},
"actual": {
"counts": {
"users": 1,
"chats": 3,
"chat_members": 3,
"messages": 120000,
"schema_migrations": 1
},
"distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000",
"samples": [
"{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}",
"{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}",
"{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}",
"{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}",
"{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}",
"{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}",
"{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}"
]
},
"match": true,
"marker_source": 1,
"marker_restore": 0
}
+10
View File
@@ -0,0 +1,10 @@
{
"base": {
"table_bytes": 14049280,
"index_bytes": 7086080
},
"covering": {
"table_bytes": 14049280,
"index_bytes": 13574144
}
}
+800
View File
@@ -0,0 +1,800 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 48.154,
"Actual Total Time": 48.156,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.863,
"Actual Total Time": 5.57,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.022,
"Actual Total Time": 1.562,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.43,
"Triggers": [],
"Execution Time": 48.543
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 41.63,
"Actual Total Time": 41.631,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.288,
"Actual Total Time": 4.851,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.024,
"Actual Total Time": 1.296,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.343,
"Triggers": [],
"Execution Time": 42.037
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 43.15,
"Actual Total Time": 43.153,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 5.013,
"Actual Total Time": 5.55,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.018,
"Actual Total Time": 1.512,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.351,
"Triggers": [],
"Execution Time": 43.519
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 44.809,
"Actual Total Time": 44.81,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 3.851,
"Actual Total Time": 4.45,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.064,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.291,
"Triggers": [],
"Execution Time": 45.14
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 46.285,
"Actual Total Time": 46.287,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 5.283,
"Actual Total Time": 5.9,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.021,
"Actual Total Time": 1.305,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.357,
"Triggers": [],
"Execution Time": 46.609
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 48.791,
"Actual Total Time": 48.792,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 3.931,
"Actual Total Time": 4.628,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.174,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.321,
"Triggers": [],
"Execution Time": 49.153
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 50.597,
"Actual Total Time": 50.601,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50266,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 269,
"Shared Written Blocks": 269,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30121,
"WAL FPI": 0,
"WAL Bytes": 3343720,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 3.729,
"Actual Total Time": 4.504,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.016,
"Actual Total Time": 1.011,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.297,
"Triggers": [],
"Execution Time": 51.059
}
]
@@ -0,0 +1,800 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 55.017,
"Actual Total Time": 55.018,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.671,
"Actual Total Time": 5.489,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.082,
"Actual Total Time": 1.455,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.542,
"Triggers": [],
"Execution Time": 55.332
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 54.228,
"Actual Total Time": 54.23,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.845,
"Actual Total Time": 5.474,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.022,
"Actual Total Time": 1.317,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.427,
"Triggers": [],
"Execution Time": 54.593
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 46.811,
"Actual Total Time": 46.812,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50413,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.178,
"Actual Total Time": 5.114,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.353,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.305,
"Triggers": [],
"Execution Time": 47.249
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 52.45,
"Actual Total Time": 52.452,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.163,
"Actual Total Time": 4.827,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.02,
"Actual Total Time": 1.184,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.329,
"Triggers": [],
"Execution Time": 52.772
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 67.771,
"Actual Total Time": 67.773,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 6.878,
"Actual Total Time": 7.724,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.03,
"Actual Total Time": 1.734,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.545,
"Triggers": [],
"Execution Time": 68.123
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 49.711,
"Actual Total Time": 49.713,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.595,
"Actual Total Time": 5.392,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.399,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.347,
"Triggers": [],
"Execution Time": 50.048
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 53.561,
"Actual Total Time": 53.562,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 50414,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 336,
"Shared Written Blocks": 336,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 30188,
"WAL FPI": 0,
"WAL Bytes": 3897536,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.592,
"Actual Total Time": 5.291,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.23,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.297,
"Triggers": [],
"Execution Time": 53.906
}
]
+800
View File
@@ -0,0 +1,800 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 31.86,
"Actual Total Time": 31.864,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.815,
"Actual Total Time": 5.454,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.031,
"Actual Total Time": 1.465,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.521,
"Triggers": [],
"Execution Time": 32.501
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 29.682,
"Actual Total Time": 29.683,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.354,
"Actual Total Time": 4.861,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.024,
"Actual Total Time": 1.179,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.371,
"Triggers": [],
"Execution Time": 30.017
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 30.946,
"Actual Total Time": 30.948,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 5.131,
"Actual Total Time": 5.625,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.066,
"Actual Total Time": 1.55,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.469,
"Triggers": [],
"Execution Time": 31.337
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 37.267,
"Actual Total Time": 37.269,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.443,
"Actual Total Time": 5.163,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.022,
"Actual Total Time": 1.215,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.457,
"Triggers": [],
"Execution Time": 37.638
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 36.507,
"Actual Total Time": 36.508,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 5.085,
"Actual Total Time": 5.716,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.027,
"Actual Total Time": 1.658,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.639,
"Triggers": [],
"Execution Time": 36.936
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 33.163,
"Actual Total Time": 33.166,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 4.784,
"Actual Total Time": 5.364,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.025,
"Actual Total Time": 1.438,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.424,
"Triggers": [],
"Execution Time": 33.52
},
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_bench",
"Alias": "write_bench",
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 28.842,
"Actual Total Time": 28.844,
"Actual Rows": 0,
"Actual Loops": 1,
"Shared Hit Blocks": 30326,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 195,
"Shared Written Blocks": 196,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 20049,
"WAL FPI": 0,
"WAL Bytes": 2319396,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 1248.0,
"Total Cost": 1281.6,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 3.92,
"Actual Total Time": 4.403,
"Actual Rows": 10000,
"Actual Loops": 1,
"Sort Key": [
"write_input.chat_id",
"write_input.created_at",
"write_input.id"
],
"Sort Method": "quicksort",
"Sort Space Used": 1478,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 198,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0,
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "write_input",
"Alias": "write_input",
"Startup Cost": 0.0,
"Total Cost": 326.4,
"Plan Rows": 13440,
"Plan Width": 88,
"Actual Startup Time": 0.017,
"Actual Total Time": 1.062,
"Actual Rows": 10000,
"Actual Loops": 1,
"Shared Hit Blocks": 192,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"WAL Records": 0,
"WAL FPI": 0,
"WAL Bytes": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 51,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.299,
"Triggers": [],
"Execution Time": 29.241
}
]
+26
View File
@@ -0,0 +1,26 @@
[
{
"variant": "none",
"median_ms": 32.501,
"min_ms": 29.241,
"max_ms": 37.638,
"median_wal_bytes": 2319396,
"index_bytes": 417792
},
{
"variant": "base",
"median_ms": 46.609,
"min_ms": 42.037,
"max_ms": 51.059,
"median_wal_bytes": 3343720,
"index_bytes": 1024000
},
{
"variant": "covering",
"median_ms": 53.906,
"min_ms": 47.249,
"max_ms": 68.123,
"median_wal_bytes": 3897536,
"index_bytes": 1572864
}
]