Explain the trade-offs between different database architectures in the context of a financial crime detection system.
Write a SQL query that summarizes completed detection runs for each architecture and exposes comparable operational trade-offs through latency, alerts, cost, and throughput metrics.
architecture_name, run_count, avg_latency_ms, total_alerts, avg_cost_usd, and avg_throughput_tx_per_sec.| Column | Type | Description |
|---|---|---|
| architecture_idPK | INT | Unique architecture identifier |
| architecture_name | VARCHAR(100) | Architecture name |
| architecture_type | VARCHAR(50) | Broad database architecture category |
| Column | Type | Description |
|---|---|---|
| run_idPK | INT | Unique detection run identifier |
| architecture_id | INT | Referenced architecture |
| status | VARCHAR(20) | Run status |
| latency_ms | DECIMAL(10,2) | End-to-end detection latency in milliseconds |
| alert_count | INT | Number of alerts generated |
| cost_usd | DECIMAL(10,2) | Estimated run cost in US dollars |
| transactions_processed | BIGINT | Number of transactions processed |
| runtime_seconds | DECIMAL(10,2) | Run duration in seconds |