231 lines
7.9 KiB
JSON
231 lines
7.9 KiB
JSON
{
|
|
"phase": "after",
|
|
"generatedAt": "2026-07-12T23:09:21.039Z",
|
|
"queryId": "query_03",
|
|
"queryName": "Conteo de dispositivos",
|
|
"sqlFile": "queries/query_03.sql",
|
|
"explain": {
|
|
"Plan": {
|
|
"Node Type": "Aggregate",
|
|
"Strategy": "Plain",
|
|
"Partial Mode": "Finalize",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 16589.86,
|
|
"Total Cost": 16589.87,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 8,
|
|
"Actual Startup Time": 140.241,
|
|
"Actual Total Time": 143.909,
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Output": [
|
|
"count(*)"
|
|
],
|
|
"Shared Hit Blocks": 32,
|
|
"Shared Read Blocks": 516,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": "Gather",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 16589.65,
|
|
"Total Cost": 16589.86,
|
|
"Plan Rows": 2,
|
|
"Plan Width": 8,
|
|
"Actual Startup Time": 20.368,
|
|
"Actual Total Time": 143.894,
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Output": [
|
|
"(PARTIAL count(*))"
|
|
],
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Single Copy": false,
|
|
"Shared Hit Blocks": 32,
|
|
"Shared Read Blocks": 516,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": "Aggregate",
|
|
"Strategy": "Plain",
|
|
"Partial Mode": "Partial",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 15589.65,
|
|
"Total Cost": 15589.66,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 8,
|
|
"Actual Startup Time": 6.708,
|
|
"Actual Total Time": 6.709,
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 3,
|
|
"Disabled": false,
|
|
"Output": [
|
|
"PARTIAL count(*)"
|
|
],
|
|
"Shared Hit Blocks": 32,
|
|
"Shared Read Blocks": 516,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Actual Startup Time": 0.009,
|
|
"Actual Total Time": 0.01,
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.005,
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": true,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "idx_invima_api_catalog_dataset",
|
|
"Relation Name": "invima_api_catalog",
|
|
"Schema": "public",
|
|
"Alias": "invima_api_catalog",
|
|
"Startup Cost": 0.43,
|
|
"Total Cost": 15383.19,
|
|
"Plan Rows": 82585,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 4.606,
|
|
"Actual Rows": 63201.33,
|
|
"Actual Loops": 3,
|
|
"Disabled": false,
|
|
"Output": [
|
|
"source_dataset_key"
|
|
],
|
|
"Index Cond": "(invima_api_catalog.source_dataset_key = 'dispositivos'::text)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 356,
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 32,
|
|
"Shared Read Blocks": 516,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.003,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Actual Startup Time": 0.001,
|
|
"Actual Total Time": 0.001,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Settings": {},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 2,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local 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.147,
|
|
"Triggers": [],
|
|
"Execution Time": 143.936
|
|
}
|
|
}
|