Replies: 11 comments
|
Yes, it was deliberate. I couldn't think of a scenario where a query could have a side effect so I decided to go with it. Can you share some of the examples? |
|
Triggers adding to log tables, performance impact. |
|
Triggers on Select? |
|
Sorry, was thinking of SQL audit, nit triggers |
|
I guess (or hope) most people don't use a production database when debugging their code and in the dev environment audit probably doesn't need to be turned on. |
|
One of the reasons the extension is in preview is to gather feedback from users so if many people request it, I could implement using an estimated plan. |
|
Cool, or make it an option to choose between actual and estimated? |
|
I would vote for displaying the estimated plan by default and then displaying the actual plan after the user clicks on something, because of the mentioned possible side effects. |
|
I agree with your decision for using the actual query plans and your statement that when used under a debugger it is highly unlikely your pointing at production database. Estimated plans have never been very useful when I’ve tried optimising queries, actual queries is my default these days. |
|
I agree that estimated execution plans are an order of magnitude worse when debugging problems. |
|
One thought to add here; I wonder whether having the option to do an Sure, explain isn't as accurate, buuuut it might be faster. Not sure if it's feasible with the code (need to look more at the code and understand VS plugins), but I'm wondering whether one could run two threads (one doing the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I see you are using the actual plan, causing SQL Server to actually execute your query - is that deliberate?
(Sometimes executing a query can have side effects) - I see you do the same for Postgres
All reactions