I have the following:(a) One Dynamic SQL Query that takes 37 ms when run as a single query or in an SP.(b) Three SQL Indexed View queries that take 0 ms when run together. When i add (a) + (b) in the same SP, i should get 37 ms + 0 ms = 37ms, but NO it takes 400 ms.I have no idea what is causing the extra 363 ms of latency.I have looked at the execution plan, and don't see what could be causing this, but to be honest i don't have much experience with execution plans.Any ideas?Thanks
↧