When you include the execution plan in a query, then click the Execution Plan tab, the URL is updated to include an anchor to #executionPlan. However, when you follow this link, the query does not generate the execution plan, you still have to check the box and re-run.

Example: http://data.stackexchange.com/stackoverflow/query/622784/example#executionPlan

Expected: Include execution plan checked, execution plan generated, Execution Plan tab active.

Actual: Include execution plan not checked, no execution plan generated, Execution Plan tab not visible.

Note that anchors to e.g. #messages work fine, which isn't consistent with #executionPlan.

(Browser is Chrome 55, Windows, if it matters.)

  • 1
    I don't think that does what you hope it does. You only navigate to the executionPlan tab with that url. By default the query isn't run with the plan and the plan isn't cached. To get an link that sets both text and exec plan options use this link: http://data.stackexchange.com/stackoverflow/query/623444/example?opt.textResult‌​s=true&opt.withExecutionPlan=true. That works for me. So I think it is by design. – rene Feb 3 '17 at 21:53
  • 1
    Do note I handcrafted that url. There is no link in the UI for that link. – rene Feb 3 '17 at 22:02
  • @rene Nice, thanks. Actually I was wondering what happened to the "opt." parameters in general. It used to add one in the permalink for plots (meta.stackexchange.com/questions/236770/…). I wonder if I should transform this info a bug/request about opt.withExecutionPlan not being added to the URL when the box is checked. In any case good find, this makes linking to the plans possible. – Jason C Feb 4 '17 at 1:56

You must log in to answer this question.

Browse other questions tagged .