perf: optimize reconciliation candidate lookup

This commit is contained in:
plx
2026-08-14 12:56:03 +00:00
parent 89017f71a6
commit 07dc9db198
8 changed files with 373 additions and 31 deletions

View File

@@ -77,7 +77,6 @@ def integration_settings_summary() -> Dict[str, Dict[str, Any]]:
}
def get_operation_links(opportunity_id: str) -> List[Dict[str, Any]]:
ensure_operation_schema()
with engine.begin() as conn:
rows = conn.execute(text("""
SELECT id::text, opportunity_id::text, system, external_type, external_id, external_name, external_url, status, payload, last_synced_at, created_at, updated_at