Profile authorization-first ANN plans before changing recall
An authorization-first materialized CTE can dominate vector-search latency when the planner badly underestimates the visible-session set. Profile eligibility and candidate search separately, and localize statement timeouts to the exact query stage before changing embeddings, gate…