Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Seeing Last Plan with Actual Plan Command #2663

Open
ambroselittle opened this Issue Sep 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@ambroselittle
Copy link

ambroselittle commented Sep 21, 2018

  • SQL Operations Studio Version: Version 0.33.7-insider (0.33.7-insider)
  • macOS 10.13.6 (17G2307)

Also tried it on the current stable version. Actually, that's where I found it first..

Steps to Reproduce:

  1. Create a query window with > 1 queries.
  2. Use Run Current Query with Actual Plan command.

Actual:
Seems to cycle through the query plans in the Query Plan tab.
See: https://www.dropbox.com/s/jng6j59n7okxp0r/sqlops-actual-plan-bug.mov?dl=0

Expected:
Show them all, similar to Explain.

Maybe my expectations are just off?

@ambroselittle

This comment has been minimized.

Copy link
Author

ambroselittle commented Nov 19, 2018

I can confirm this is still an issue in Version 1.2.4 (1.2.4).

This is more or less the only thing that keeps me having to run Parallels and SMS. Would love to see it fixed!

@kburtram

This comment has been minimized.

Copy link
Member

kburtram commented Dec 11, 2018

This is basically the same issue as #1995. The problem is that showplan control we're using only renders one showplan XML document at a time.

If there are multiple statements within a batch then only a single XML showplan is returned for all the statements in the batch when getting the estimated plan. If there are multiple batches then one XML showplan is returned per-batch with estimated. With actual plans one XML document is returned per statement regardless of batches.

We have a couple different ideas how to resolve this limitation, but this isn't fixed in Dec release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.