286 lines
11 KiB
JSON
286 lines
11 KiB
JSON
{
|
|
"phase": "before",
|
|
"generatedAt": "2026-07-12T23:07:27.771Z",
|
|
"queryId": "query_07",
|
|
"queryName": "Conteo de busqueda textual real para marcapasos",
|
|
"sqlFile": "queries/query_07.sql",
|
|
"explain": {
|
|
"Plan": {
|
|
"Node Type": "Aggregate",
|
|
"Strategy": "Plain",
|
|
"Partial Mode": "Simple",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13171.25,
|
|
"Total Cost": 13171.26,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 8,
|
|
"Actual Startup Time": 16.261,
|
|
"Actual Total Time": 16.263,
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Output": [
|
|
"count(*)"
|
|
],
|
|
"Shared Hit Blocks": 901,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": "invima_api_catalog",
|
|
"Schema": "public",
|
|
"Alias": "invima_api_catalog",
|
|
"Startup Cost": 3715.04,
|
|
"Total Cost": 13165.27,
|
|
"Plan Rows": 2392,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 4.478,
|
|
"Actual Total Time": 16.234,
|
|
"Actual Rows": 430,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Recheck Cond": "((to_tsvector('spanish'::regconfig, COALESCE(invima_api_catalog.search_text, ''::text)) @@ '''marcapas'''::tsquery) OR (COALESCE(invima_api_catalog.registro_sanitario, ''::text) ~~* '%marcapasos%'::text) OR (COALESCE(invima_api_catalog.expediente, ''::text) ~~* '%marcapasos%'::text) OR (COALESCE(invima_api_catalog.producto, ''::text) ~~* '%marcapasos%'::text) OR (COALESCE(invima_api_catalog.categoria_canonica, ''::text) ~~* '%marcapasos%'::text) OR (COALESCE(invima_api_catalog.categoria_linea, ''::text) ~~* '%marcapasos%'::text))",
|
|
"Rows Removed by Index Recheck": 1,
|
|
"Exact Heap Blocks": 205,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 901,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": "BitmapOr",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3715.04,
|
|
"Total Cost": 3715.04,
|
|
"Plan Rows": 2393,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 4.285,
|
|
"Actual Total Time": 4.287,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Shared Hit Blocks": 690,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_invima_api_catalog_search_fts",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 2095.3,
|
|
"Plan Rows": 1689,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.448,
|
|
"Actual Total Time": 1.448,
|
|
"Actual Rows": 420,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(to_tsvector('spanish'::regconfig, COALESCE(invima_api_catalog.search_text, ''::text)) @@ '''marcapas'''::tsquery)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 490,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Bitmap Index Scan",
|
|
"Parent Relationship": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_bench_catalog_registro_coalesce_trgm",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 119.7,
|
|
"Plan Rows": 141,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.013,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(COALESCE(invima_api_catalog.registro_sanitario, ''::text) ~~* '%marcapasos%'::text)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 17,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Bitmap Index Scan",
|
|
"Parent Relationship": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_bench_catalog_expediente_coalesce_trgm",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 160.91,
|
|
"Plan Rows": 141,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.005,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(COALESCE(invima_api_catalog.expediente, ''::text) ~~* '%marcapasos%'::text)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 17,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Bitmap Index Scan",
|
|
"Parent Relationship": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_bench_catalog_producto_coalesce_trgm",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 124.95,
|
|
"Plan Rows": 141,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 2.774,
|
|
"Actual Total Time": 2.774,
|
|
"Actual Rows": 420,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(COALESCE(invima_api_catalog.producto, ''::text) ~~* '%marcapasos%'::text)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 132,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Bitmap Index Scan",
|
|
"Parent Relationship": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_bench_catalog_categoria_canonica_coalesce_trgm",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 609.42,
|
|
"Plan Rows": 141,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.026,
|
|
"Actual Total Time": 0.026,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(COALESCE(invima_api_catalog.categoria_canonica, ''::text) ~~* '%marcapasos%'::text)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 17,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Bitmap Index Scan",
|
|
"Parent Relationship": "Member",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "idx_bench_catalog_categoria_linea_coalesce_trgm",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 601.17,
|
|
"Plan Rows": 141,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.015,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "(COALESCE(invima_api_catalog.categoria_linea, ''::text) ~~* '%marcapasos%'::text)",
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 17,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 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 Time": 0.225,
|
|
"Triggers": [],
|
|
"Execution Time": 16.352
|
|
}
|
|
}
|