4267 lines
232 KiB
JSON
4267 lines
232 KiB
JSON
{
|
|
"date": "2026-11-02",
|
|
"checkpoint": "340f3bb",
|
|
"php": "8.4.27",
|
|
"identity": {
|
|
"database": "sgf_tempo_test",
|
|
"role": "sgf_test_runner",
|
|
"port": 55439,
|
|
"cluster": "sgf_modular_regression_2576427d1939"
|
|
},
|
|
"method": "Sequential in-process HTTP kernel requests; three measured repetitions after warm-up; fixtures rolled back; no external HTTP\/browser or concurrent capacity claim.",
|
|
"bounds": {
|
|
"sql_timeout_ms": 3000,
|
|
"case_budget_ms": 15000,
|
|
"query_budget": 2500
|
|
},
|
|
"datasets": [
|
|
{
|
|
"clients": 1000,
|
|
"services": 100,
|
|
"drafts_per_area": 100,
|
|
"module_events": 7376,
|
|
"history_pairs_per_nonpending_record": 4,
|
|
"statistics": "ANALYZE within disposable regression database; no index or schema changes",
|
|
"cases": [
|
|
{
|
|
"label": "clients\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 358.76,
|
|
"elapsed_ms": 389.158,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3667,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 367.94,
|
|
"elapsed_ms": 398.619,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3667,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 366.39,
|
|
"elapsed_ms": 396.387,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3667,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 396.387,
|
|
"min_ms": 389.158,
|
|
"max_ms": 398.619,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 169.09,
|
|
"planning_ms": 0.085,
|
|
"execution_ms": 3.14,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 162.74,
|
|
"planning_ms": 0.098,
|
|
"execution_ms": 2.543,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 21.3,
|
|
"planning_ms": 0.136,
|
|
"execution_ms": 0.031,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page40",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 380.79,
|
|
"elapsed_ms": 412.169,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3668,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 384.89,
|
|
"elapsed_ms": 416.832,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3668,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 381.02,
|
|
"elapsed_ms": 412.127,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3668,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 412.169,
|
|
"min_ms": 412.127,
|
|
"max_ms": 416.832,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 174.5,
|
|
"planning_ms": 0.081,
|
|
"execution_ms": 2.92,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 168.87,
|
|
"planning_ms": 0.111,
|
|
"execution_ms": 2.741,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 23.33,
|
|
"planning_ms": 0.088,
|
|
"execution_ms": 0.02,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size100\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 1494.17,
|
|
"elapsed_ms": 1599.724,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13718,
|
|
"rows": 100
|
|
},
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 1505.42,
|
|
"elapsed_ms": 1610.975,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13718,
|
|
"rows": 100
|
|
},
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 1520.44,
|
|
"elapsed_ms": 1629.661,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13718,
|
|
"rows": 100
|
|
}
|
|
],
|
|
"median_ms": 1610.975,
|
|
"min_ms": 1599.724,
|
|
"max_ms": 1629.661,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 200,
|
|
"cumulative_ms": 698.67,
|
|
"planning_ms": 0.08,
|
|
"execution_ms": 3.066,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 200,
|
|
"cumulative_ms": 686.59,
|
|
"planning_ms": 0.095,
|
|
"execution_ms": 2.644,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 203,
|
|
"cumulative_ms": 88.99,
|
|
"planning_ms": 0.08,
|
|
"execution_ms": 0.025,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/pending\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 424.61,
|
|
"elapsed_ms": 457.593,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3519,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 419.23,
|
|
"elapsed_ms": 448.405,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3519,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 428.4,
|
|
"elapsed_ms": 460.165,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3519,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 457.593,
|
|
"min_ms": 448.405,
|
|
"max_ms": 460.165,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 180.3,
|
|
"planning_ms": 0.075,
|
|
"execution_ms": 2.868,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7377,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 171.87,
|
|
"planning_ms": 0.114,
|
|
"execution_ms": 2.994,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7377,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "2aa8f0d422e62ad031253c1476d659a5008ba77e259ff6147bdc94077f26b8c2",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 35.84,
|
|
"planning_ms": 0.265,
|
|
"execution_ms": 46.766,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 74,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 1932,
|
|
"Actual Loops": 74,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 5669,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 1708,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/associated\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 411.86,
|
|
"elapsed_ms": 442.645,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3894,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 416.29,
|
|
"elapsed_ms": 447.464,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3894,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 421.44,
|
|
"elapsed_ms": 455.008,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3894,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 447.464,
|
|
"min_ms": 442.645,
|
|
"max_ms": 455.008,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 181.48,
|
|
"planning_ms": 0.06,
|
|
"execution_ms": 3.121,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7368,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 176.45,
|
|
"planning_ms": 0.138,
|
|
"execution_ms": 2.848,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7368,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 23.99,
|
|
"planning_ms": 0.093,
|
|
"execution_ms": 0.025,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/removed\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 460.3,
|
|
"elapsed_ms": 491.494,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3594,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 457.88,
|
|
"elapsed_ms": 488.169,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3594,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 462.41,
|
|
"elapsed_ms": 493.232,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3594,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 491.494,
|
|
"min_ms": 488.169,
|
|
"max_ms": 493.232,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 181.47,
|
|
"planning_ms": 0.076,
|
|
"execution_ms": 3.297,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 180.22,
|
|
"planning_ms": 0.092,
|
|
"execution_ms": 2.895,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "bd4b37781795488951ceb422408ad8bcecd0349cfd031cc1d27d150aad66292b",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit ma WHERE ma.tenant_id=a_clients.tenant_id AND ma.company_id=a_clients.company_id\n AND ma.action='module.record.associated' AND ma.details::jsonb->>'area'=? AND ma.details::jsonb->>'record_id'=a_clients.id::text\n AND NOT EXISTS (SELECT 1 FROM identity_audit mr WHERE mr.tenant_id=ma.tenant_id AND mr.company_id=ma.company_id AND mr.id>ma.id\n AND mr.action='module.record.disassociated' AND mr.details::jsonb->>'area'=ma.details::jsonb->>'area'\n AND mr.details::jsonb->>'record_id'=ma.details::jsonb->>'record_id' AND mr.details::jsonb->>'module_id'=ma.details::jsonb->>'module_id')) AND EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 48.76,
|
|
"planning_ms": 0.617,
|
|
"execution_ms": 58.798,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 684,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 684,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 49,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 73,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 1881,
|
|
"Actual Loops": 73,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 5669,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 1708,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 176,
|
|
"Actual Loops": 49,
|
|
"Shared Hit Blocks": 454,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash Join",
|
|
"Actual Rows": 333,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 454,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3001,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 4376,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash",
|
|
"Actual Rows": 2668,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 2668,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 4709,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page1\/search",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 22.41,
|
|
"elapsed_ms": 28.234,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 444,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 20.1,
|
|
"elapsed_ms": 25.291,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 444,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 21.28,
|
|
"elapsed_ms": 26.646,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 444,
|
|
"rows": 1
|
|
}
|
|
],
|
|
"median_ms": 26.646,
|
|
"min_ms": 25.291,
|
|
"max_ms": 28.234,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 8.19,
|
|
"planning_ms": 0.069,
|
|
"execution_ms": 2.999,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7377,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 6.95,
|
|
"planning_ms": 0.11,
|
|
"execution_ms": 2.8,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7377,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 5,
|
|
"cumulative_ms": 2.02,
|
|
"planning_ms": 0.081,
|
|
"execution_ms": 0.022,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "service_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 748.79,
|
|
"elapsed_ms": 813.066,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7131,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 735.72,
|
|
"elapsed_ms": 799.069,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7131,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 738.33,
|
|
"elapsed_ms": 803.138,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7131,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 803.138,
|
|
"min_ms": 799.069,
|
|
"max_ms": 813.066,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 326.29,
|
|
"planning_ms": 0.056,
|
|
"execution_ms": 2.528,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 316.37,
|
|
"planning_ms": 0.089,
|
|
"execution_ms": 2.515,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 127,
|
|
"cumulative_ms": 51.56,
|
|
"planning_ms": 0.095,
|
|
"execution_ms": 0.03,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "billing_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 933.35,
|
|
"elapsed_ms": 1013.678,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9103,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 937.34,
|
|
"elapsed_ms": 1018.197,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9103,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 971.46,
|
|
"elapsed_ms": 1056.87,
|
|
"peak_php_bytes": 46137344,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9103,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 1018.197,
|
|
"min_ms": 1013.678,
|
|
"max_ms": 1056.87,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 424.64,
|
|
"planning_ms": 0.128,
|
|
"execution_ms": 2.833,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 413.2,
|
|
"planning_ms": 0.117,
|
|
"execution_ms": 2.765,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 7369,
|
|
"Shared Hit Blocks": 227,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 152,
|
|
"cumulative_ms": 65.01,
|
|
"planning_ms": 0.105,
|
|
"execution_ms": 0.044,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"complete_traversal": {
|
|
"pages": 10,
|
|
"records": 1000,
|
|
"ordered_exact_coverage": true
|
|
}
|
|
},
|
|
{
|
|
"clients": 5000,
|
|
"services": 100,
|
|
"drafts_per_area": 500,
|
|
"module_events": 34570,
|
|
"history_pairs_per_nonpending_record": 4,
|
|
"statistics": "ANALYZE within disposable regression database; no index or schema changes",
|
|
"cases": [
|
|
{
|
|
"label": "clients\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1632.23,
|
|
"elapsed_ms": 1684.663,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3697,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1586.49,
|
|
"elapsed_ms": 1636.775,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3697,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1622.39,
|
|
"elapsed_ms": 1673.001,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3697,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 1673.001,
|
|
"min_ms": 1636.775,
|
|
"max_ms": 1684.663,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 795.19,
|
|
"planning_ms": 0.144,
|
|
"execution_ms": 14.724,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 777.54,
|
|
"planning_ms": 0.163,
|
|
"execution_ms": 13.51,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 31.88,
|
|
"planning_ms": 0.157,
|
|
"execution_ms": 0.052,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page200",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1837.08,
|
|
"elapsed_ms": 1900.257,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3687,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1739.99,
|
|
"elapsed_ms": 1796.64,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3687,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2072.2,
|
|
"elapsed_ms": 2138.55,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3687,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 1900.257,
|
|
"min_ms": 1796.64,
|
|
"max_ms": 2138.55,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 1013.26,
|
|
"planning_ms": 0.165,
|
|
"execution_ms": 25.467,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 966.26,
|
|
"planning_ms": 0.184,
|
|
"execution_ms": 15.102,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 69.83,
|
|
"planning_ms": 0.152,
|
|
"execution_ms": 0.045,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size100\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 7535.83,
|
|
"elapsed_ms": 7772.069,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13797,
|
|
"rows": 100
|
|
},
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 6855.82,
|
|
"elapsed_ms": 7042.245,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13797,
|
|
"rows": 100
|
|
},
|
|
{
|
|
"queries": 710,
|
|
"database_ms": 7631.28,
|
|
"elapsed_ms": 7848.852,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 13797,
|
|
"rows": 100
|
|
}
|
|
],
|
|
"median_ms": 7772.069,
|
|
"min_ms": 7042.245,
|
|
"max_ms": 7848.852,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 200,
|
|
"cumulative_ms": 3831,
|
|
"planning_ms": 0.111,
|
|
"execution_ms": 15.179,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 200,
|
|
"cumulative_ms": 3604.48,
|
|
"planning_ms": 0.177,
|
|
"execution_ms": 14.23,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 203,
|
|
"cumulative_ms": 133.44,
|
|
"planning_ms": 0.134,
|
|
"execution_ms": 0.034,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/pending\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2139.25,
|
|
"elapsed_ms": 2194.232,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3520,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2078.96,
|
|
"elapsed_ms": 2131.78,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3520,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2090.02,
|
|
"elapsed_ms": 2142.079,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3520,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 2142.079,
|
|
"min_ms": 2131.78,
|
|
"max_ms": 2194.232,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 858.91,
|
|
"planning_ms": 0.127,
|
|
"execution_ms": 15.575,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34571,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 849.56,
|
|
"planning_ms": 0.223,
|
|
"execution_ms": 15.059,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34571,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "2aa8f0d422e62ad031253c1476d659a5008ba77e259ff6147bdc94077f26b8c2",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 306.06,
|
|
"planning_ms": 0.327,
|
|
"execution_ms": 369.109,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1294,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13802,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1294,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13802,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 75,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 7,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 9463,
|
|
"Actual Loops": 75,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13802,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 28339,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 6232,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/associated\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1903.74,
|
|
"elapsed_ms": 1959.618,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3920,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1961.46,
|
|
"elapsed_ms": 2016.863,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3920,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 1995.68,
|
|
"elapsed_ms": 2056.513,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3920,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 2016.863,
|
|
"min_ms": 1959.618,
|
|
"max_ms": 2056.513,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 915.22,
|
|
"planning_ms": 0.152,
|
|
"execution_ms": 16.379,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 894.15,
|
|
"planning_ms": 0.238,
|
|
"execution_ms": 15.621,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "1f1dd3cbe9987e82119821655a82e34abb945053431bd0b10ae2057991975844",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and EXISTS (SELECT 1 FROM identity_audit ma WHERE ma.tenant_id=a_clients.tenant_id AND ma.company_id=a_clients.company_id\n AND ma.action='module.record.associated' AND ma.details::jsonb->>'area'=? AND ma.details::jsonb->>'record_id'=a_clients.id::text\n AND NOT EXISTS (SELECT 1 FROM identity_audit mr WHERE mr.tenant_id=ma.tenant_id AND mr.company_id=ma.company_id AND mr.id>ma.id\n AND mr.action='module.record.disassociated' AND mr.details::jsonb->>'area'=ma.details::jsonb->>'area'\n AND mr.details::jsonb->>'record_id'=ma.details::jsonb->>'record_id' AND mr.details::jsonb->>'module_id'=ma.details::jsonb->>'module_id')) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 72.84,
|
|
"planning_ms": 0.576,
|
|
"execution_ms": 81.432,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2581,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2581,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 73,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 7,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 1101,
|
|
"Actual Loops": 73,
|
|
"Shared Hit Blocks": 2574,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash Join",
|
|
"Actual Rows": 1667,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2574,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 15003,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 19568,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash",
|
|
"Actual Rows": 13336,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 13336,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 21235,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/removed\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2488.58,
|
|
"elapsed_ms": 2552.849,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3620,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2432.83,
|
|
"elapsed_ms": 2494.562,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3620,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 2258.08,
|
|
"elapsed_ms": 2310.739,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3620,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 2494.562,
|
|
"min_ms": 2310.739,
|
|
"max_ms": 2552.849,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 887.78,
|
|
"planning_ms": 0.143,
|
|
"execution_ms": 16.041,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 862.63,
|
|
"planning_ms": 0.165,
|
|
"execution_ms": 15.01,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "bd4b37781795488951ceb422408ad8bcecd0349cfd031cc1d27d150aad66292b",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit ma WHERE ma.tenant_id=a_clients.tenant_id AND ma.company_id=a_clients.company_id\n AND ma.action='module.record.associated' AND ma.details::jsonb->>'area'=? AND ma.details::jsonb->>'record_id'=a_clients.id::text\n AND NOT EXISTS (SELECT 1 FROM identity_audit mr WHERE mr.tenant_id=ma.tenant_id AND mr.company_id=ma.company_id AND mr.id>ma.id\n AND mr.action='module.record.disassociated' AND mr.details::jsonb->>'area'=ma.details::jsonb->>'area'\n AND mr.details::jsonb->>'record_id'=ma.details::jsonb->>'record_id' AND mr.details::jsonb->>'module_id'=ma.details::jsonb->>'module_id')) AND EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 369.53,
|
|
"planning_ms": 0.506,
|
|
"execution_ms": 420.736,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3868,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13227,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3868,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13227,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 49,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2581,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 74,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 7,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 1108,
|
|
"Actual Loops": 74,
|
|
"Shared Hit Blocks": 2574,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash Join",
|
|
"Actual Rows": 1667,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2574,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 15003,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 19568,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash",
|
|
"Actual Rows": 13336,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 13336,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 21235,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 13894,
|
|
"Actual Loops": 49,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 13227,
|
|
"Temp Written Blocks": 575
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 28339,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 6232,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page1\/search",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 80.01,
|
|
"elapsed_ms": 87.596,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 81.51,
|
|
"elapsed_ms": 87.95,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 84.15,
|
|
"elapsed_ms": 90.796,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
}
|
|
],
|
|
"median_ms": 87.95,
|
|
"min_ms": 87.596,
|
|
"max_ms": 90.796,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 38.38,
|
|
"planning_ms": 0.122,
|
|
"execution_ms": 16.492,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 35.6,
|
|
"planning_ms": 0.173,
|
|
"execution_ms": 16.469,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34563,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 5,
|
|
"cumulative_ms": 2.67,
|
|
"planning_ms": 0.187,
|
|
"execution_ms": 0.061,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "service_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 3158.44,
|
|
"elapsed_ms": 3256.54,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7203,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 3095.39,
|
|
"elapsed_ms": 3185.649,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7203,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 3095.54,
|
|
"elapsed_ms": 3188.597,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7203,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 3188.597,
|
|
"min_ms": 3185.649,
|
|
"max_ms": 3256.54,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 1516.45,
|
|
"planning_ms": 0.104,
|
|
"execution_ms": 13.491,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 1461.44,
|
|
"planning_ms": 0.152,
|
|
"execution_ms": 12.559,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34562,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 127,
|
|
"cumulative_ms": 67.02,
|
|
"planning_ms": 0.218,
|
|
"execution_ms": 0.057,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "billing_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 3922.3,
|
|
"elapsed_ms": 4043.363,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9188,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 4058.86,
|
|
"elapsed_ms": 4188.515,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9188,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 4169.54,
|
|
"elapsed_ms": 4307.64,
|
|
"peak_php_bytes": 50331648,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9188,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 4188.515,
|
|
"min_ms": 4043.363,
|
|
"max_ms": 4307.64,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 2041.5,
|
|
"planning_ms": 0.122,
|
|
"execution_ms": 14.831,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34571,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 1948.73,
|
|
"planning_ms": 0.237,
|
|
"execution_ms": 13.171,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 34571,
|
|
"Shared Hit Blocks": 1287,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 152,
|
|
"cumulative_ms": 96.28,
|
|
"planning_ms": 0.192,
|
|
"execution_ms": 0.05,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"clients": 10000,
|
|
"services": 100,
|
|
"drafts_per_area": 1000,
|
|
"module_events": 68579,
|
|
"history_pairs_per_nonpending_record": 4,
|
|
"statistics": "ANALYZE within disposable regression database; no index or schema changes",
|
|
"cases": [
|
|
{
|
|
"label": "clients\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4780.02,
|
|
"elapsed_ms": 4835.928,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3698,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4576.91,
|
|
"elapsed_ms": 4631.248,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3698,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4756.07,
|
|
"elapsed_ms": 4810.975,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3698,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 4810.975,
|
|
"min_ms": 4631.248,
|
|
"max_ms": 4835.928,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 3873.94,
|
|
"planning_ms": 0.185,
|
|
"execution_ms": 64.568,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 830.3,
|
|
"planning_ms": 0.241,
|
|
"execution_ms": 6.799,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 15243,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 32.38,
|
|
"planning_ms": 0.112,
|
|
"execution_ms": 0.031,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page400",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4471.41,
|
|
"elapsed_ms": 4527.26,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3725,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4590.41,
|
|
"elapsed_ms": 4642.234,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3725,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4556.85,
|
|
"elapsed_ms": 4611.245,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3725,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 4611.245,
|
|
"min_ms": 4527.26,
|
|
"max_ms": 4642.234,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 3754.97,
|
|
"planning_ms": 0.142,
|
|
"execution_ms": 68.613,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 747.35,
|
|
"planning_ms": 0.227,
|
|
"execution_ms": 4.76,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 451,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 451,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 11918,
|
|
"Shared Hit Blocks": 451,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 53,
|
|
"cumulative_ms": 31.54,
|
|
"planning_ms": 0.138,
|
|
"execution_ms": 0.036,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size100\/page1",
|
|
"status": "case_budget_reached",
|
|
"samples": [],
|
|
"elapsed_ms": 15009.324,
|
|
"top_query_plans": []
|
|
},
|
|
{
|
|
"label": "clients\/pending\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 6305.97,
|
|
"elapsed_ms": 6364.869,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3521,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 6240.05,
|
|
"elapsed_ms": 6297.975,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3521,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 6465.94,
|
|
"elapsed_ms": 6525.731,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3521,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 6364.869,
|
|
"min_ms": 6297.975,
|
|
"max_ms": 6525.731,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 3866.57,
|
|
"planning_ms": 0.158,
|
|
"execution_ms": 75.838,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22860,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 1785.21,
|
|
"planning_ms": 0.277,
|
|
"execution_ms": 33.611,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2631,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2631,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 68580,
|
|
"Shared Hit Blocks": 2631,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "2aa8f0d422e62ad031253c1476d659a5008ba77e259ff6147bdc94077f26b8c2",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 665.56,
|
|
"planning_ms": 0.283,
|
|
"execution_ms": 761.231,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3447,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 27818,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3447,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 27818,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 75,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 21,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 18907,
|
|
"Actual Loops": 75,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 27818,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 56670,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 11910,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/associated\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4483.53,
|
|
"elapsed_ms": 4540.215,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3921,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4196.53,
|
|
"elapsed_ms": 4249.11,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3921,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 4111.84,
|
|
"elapsed_ms": 4163.441,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3921,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 4249.11,
|
|
"min_ms": 4163.441,
|
|
"max_ms": 4540.215,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 3497.55,
|
|
"planning_ms": 0.115,
|
|
"execution_ms": 70.259,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 347.48,
|
|
"planning_ms": 0.267,
|
|
"execution_ms": 6.306,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 15243,
|
|
"Shared Hit Blocks": 572,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "1f1dd3cbe9987e82119821655a82e34abb945053431bd0b10ae2057991975844",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and EXISTS (SELECT 1 FROM identity_audit ma WHERE ma.tenant_id=a_clients.tenant_id AND ma.company_id=a_clients.company_id\n AND ma.action='module.record.associated' AND ma.details::jsonb->>'area'=? AND ma.details::jsonb->>'record_id'=a_clients.id::text\n AND NOT EXISTS (SELECT 1 FROM identity_audit mr WHERE mr.tenant_id=ma.tenant_id AND mr.company_id=ma.company_id AND mr.id>ma.id\n AND mr.action='module.record.disassociated' AND mr.details::jsonb->>'area'=ma.details::jsonb->>'area'\n AND mr.details::jsonb->>'record_id'=ma.details::jsonb->>'record_id' AND mr.details::jsonb->>'module_id'=ma.details::jsonb->>'module_id')) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 128.14,
|
|
"planning_ms": 0.575,
|
|
"execution_ms": 138.726,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 7001,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 7001,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 73,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 21,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 2271,
|
|
"Actual Loops": 73,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 3334,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash Join",
|
|
"Actual Rows": 1111,
|
|
"Actual Loops": 3,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 10001,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 12859,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash",
|
|
"Actual Rows": 8889,
|
|
"Actual Loops": 3,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 26668,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 41912,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/removed\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 5154.46,
|
|
"elapsed_ms": 5207.686,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3621,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 5286.15,
|
|
"elapsed_ms": 5345.707,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3621,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 185,
|
|
"database_ms": 5142.61,
|
|
"elapsed_ms": 5201.238,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 3621,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 5207.686,
|
|
"min_ms": 5201.238,
|
|
"max_ms": 5345.707,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 3668.84,
|
|
"planning_ms": 0.178,
|
|
"execution_ms": 68.149,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "bd4b37781795488951ceb422408ad8bcecd0349cfd031cc1d27d150aad66292b",
|
|
"query_shape": "select \"id\", \"name\", \"version\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and NOT EXISTS (SELECT 1 FROM identity_audit ma WHERE ma.tenant_id=a_clients.tenant_id AND ma.company_id=a_clients.company_id\n AND ma.action='module.record.associated' AND ma.details::jsonb->>'area'=? AND ma.details::jsonb->>'record_id'=a_clients.id::text\n AND NOT EXISTS (SELECT 1 FROM identity_audit mr WHERE mr.tenant_id=ma.tenant_id AND mr.company_id=ma.company_id AND mr.id>ma.id\n AND mr.action='module.record.disassociated' AND mr.details::jsonb->>'area'=ma.details::jsonb->>'area'\n AND mr.details::jsonb->>'record_id'=ma.details::jsonb->>'record_id' AND mr.details::jsonb->>'module_id'=ma.details::jsonb->>'module_id')) AND EXISTS (SELECT 1 FROM identity_audit me WHERE me.tenant_id=a_clients.tenant_id AND me.company_id=a_clients.company_id\n AND me.action IN ('module.record.associated','module.record.disassociated') AND me.details::jsonb->>'area'=? AND me.details::jsonb->>'record_id'=a_clients.id::text) order by \"id\" asc limit 25 offset 0",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 733.12,
|
|
"planning_ms": 0.658,
|
|
"execution_ms": 881.884,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 10427,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 26659,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 25,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 10427,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 26659,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Nested Loop",
|
|
"Actual Rows": 49,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 7001,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "a_clients_pkey",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 74,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 21,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 2243,
|
|
"Actual Loops": 74,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 3334,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash Join",
|
|
"Actual Rows": 1111,
|
|
"Actual Loops": 3,
|
|
"Shared Hit Blocks": 6980,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 10001,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 12859,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Hash",
|
|
"Actual Rows": 8889,
|
|
"Actual Loops": 3,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 26668,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 41912,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Materialize",
|
|
"Actual Rows": 27770,
|
|
"Actual Loops": 49,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 26659,
|
|
"Temp Written Blocks": 1159
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 56670,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 11910,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 50,
|
|
"cumulative_ms": 546.54,
|
|
"planning_ms": 0.424,
|
|
"execution_ms": 9.711,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 21909,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "clients\/all\/size25\/page1\/search",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 194.53,
|
|
"elapsed_ms": 202.488,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 184.34,
|
|
"elapsed_ms": 191.482,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
},
|
|
{
|
|
"queries": 17,
|
|
"database_ms": 200.12,
|
|
"elapsed_ms": 207.993,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 448,
|
|
"rows": 1
|
|
}
|
|
],
|
|
"median_ms": 202.488,
|
|
"min_ms": 191.482,
|
|
"max_ms": 207.993,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 161.05,
|
|
"planning_ms": 0.222,
|
|
"execution_ms": 68.219,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 2,
|
|
"cumulative_ms": 21.71,
|
|
"planning_ms": 0.255,
|
|
"execution_ms": 10.017,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 21899,
|
|
"Shared Hit Blocks": 814,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6215888ed64dd10d0827c22a7f7fa5ca6e8054443ac1afa2895fda2fce443e55",
|
|
"query_shape": "select count(*) as \"aggregate\" from \"a_clients\" where (\"tenant_id\" = ? and \"company_id\" = ? and \"unit_id\" is null) and \"name\"::text ilike ?",
|
|
"calls_per_request": 1,
|
|
"cumulative_ms": 5.85,
|
|
"planning_ms": 0.205,
|
|
"execution_ms": 4.07,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Aggregate",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 218,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "a_clients",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 10099,
|
|
"Shared Hit Blocks": 218,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "service_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 9242.53,
|
|
"elapsed_ms": 9365.193,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7237,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 8875.38,
|
|
"elapsed_ms": 8990.342,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7237,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 435,
|
|
"database_ms": 12379.55,
|
|
"elapsed_ms": 12583.293,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 7237,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 9365.193,
|
|
"min_ms": 8990.342,
|
|
"max_ms": 12583.293,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 9899.36,
|
|
"planning_ms": 0.142,
|
|
"execution_ms": 73.679,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 9,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 100,
|
|
"cumulative_ms": 2272.78,
|
|
"planning_ms": 0.207,
|
|
"execution_ms": 2.667,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 229,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 229,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 6003,
|
|
"Shared Hit Blocks": 229,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 127,
|
|
"cumulative_ms": 120.31,
|
|
"planning_ms": 0.106,
|
|
"execution_ms": 0.033,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "billing_drafts\/all\/size25\/page1",
|
|
"status": "ok",
|
|
"samples": [
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 11345.98,
|
|
"elapsed_ms": 11503.069,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9243,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 11037.21,
|
|
"elapsed_ms": 11182.421,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9243,
|
|
"rows": 25
|
|
},
|
|
{
|
|
"queries": 560,
|
|
"database_ms": 11666.82,
|
|
"elapsed_ms": 11822.235,
|
|
"peak_php_bytes": 56623104,
|
|
"transient_php_bytes": 0,
|
|
"response_bytes": 9243,
|
|
"rows": 25
|
|
}
|
|
],
|
|
"median_ms": 11503.069,
|
|
"min_ms": 11182.421,
|
|
"max_ms": 11822.235,
|
|
"top_query_plans": [
|
|
{
|
|
"signature": "29cd14953ae00d4924174dbf61a66235b5f3e4e25025e95082e8815225f5d8ba",
|
|
"query_shape": "select DISTINCT ON (details::jsonb->>'module_id') action,details from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ? and \"action\" <> ? order by details::jsonb->>'module_id', \"id\" desc",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 9863.83,
|
|
"planning_ms": 0.154,
|
|
"execution_ms": 84.542,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Unique",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Sort",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Gather",
|
|
"Actual Rows": 8,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 3,
|
|
"Actual Loops": 3,
|
|
"Rows Removed by Filter": 22857,
|
|
"Shared Hit Blocks": 3426,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "301fba08d3697ddc87f53289f111d1812baf48ff3aaa8ad9ec5cf3e4b322b791",
|
|
"query_shape": "select max(\"id\") as \"aggregate\" from \"identity_audit\" where (\"tenant_id\" = ? and \"company_id\" = ?) and \"action\" in (?, ?, ?) and details::jsonb->>'area' = ? and details::jsonb->>'record_id' = ?",
|
|
"calls_per_request": 125,
|
|
"cumulative_ms": 1619.73,
|
|
"planning_ms": 0.2,
|
|
"execution_ms": 0.567,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 39,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Limit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 39,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Index Name": "identity_audit_pkey",
|
|
"Relation Name": "identity_audit",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 1000,
|
|
"Shared Hit Blocks": 39,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"signature": "6dd9838dd9a9b2efb7d055e23df0d5d0f8fe97c318a74397b9142995c89f86e8",
|
|
"query_shape": "select exists(select * from \"permission_grants\" where \"user_id\" = ? and \"tenant_id\" = ? and \"company_id\" = ? and \"permission\" = ? and \"unit_id\" is null) as \"exists\"",
|
|
"calls_per_request": 152,
|
|
"cumulative_ms": 95.18,
|
|
"planning_ms": 0.097,
|
|
"execution_ms": 0.039,
|
|
"nodes": [
|
|
{
|
|
"Node Type": "Result",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Relation Name": "permission_grants",
|
|
"Actual Rows": 1,
|
|
"Actual Loops": 1,
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"completed": true
|
|
}
|