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

Added support for oracle database #36

Merged
merged 5 commits into from
Sep 18, 2024
Merged

Conversation

ElectricVampire
Copy link
Contributor

I did try to add support for oracle, if its ok - I can easily extend this for mysql as well.

I know execution plan looks pretty straight forward without any interactive UI like SQL server, but this is how I see it today in Sql Developer(IDE for Oracle) as well, so for start I think it's good as it will help - I am working on making it as tree but couple of my friends who are oracle DBA from multiple years don't like it as they are used of the view which I have updated in readme.

Thank you for great work with this extension. Let me know your thoughts on this PR

@Giorgi
Copy link
Owner

Giorgi commented Sep 15, 2024

Can you post a screenshot of what it looks like?

@ElectricVampire
Copy link
Contributor Author

ElectricVampire commented Sep 15, 2024

I have added in readme as well you check out in PR file diff or you can check it out here,
Its more or less same as how oracle shows it in their IDE (Excluding the new cloud oracle sql developer) -
image

command.ExecuteNonQuery();

// Querying the execution plan using DBMS_XPLAN
command.CommandText = "SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY())";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this give an actual query plan or an estimated one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an estimated plan, should we give option for actual plan or show only actual plan

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual is better as that's how it behaves for other databases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual is better as that's how it behaves for other databases.

Done, also added a line in readme which make it clear to users that all plans are actual query plans

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also tell me scope for this PR, would you consider it only when tree visuals are ready?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Textual plan is fine. You can do the tree in a separate PR if you want to. I'll review the changes later today.

Copy link
Contributor Author

@ElectricVampire ElectricVampire Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Textual plan is fine. You can do the tree in a separate PR if you want to. I'll review the changes later today.

Thanks, I shared this with my oracle DBA friends they liked the plan content specially I/O stats, but they complained hitting 5 sec time out more often than not.When I looked its mostly in first connection and specially when its remote DB in another region - Like their machine is in ASIA and they are connecting DB in US East.
I see this in known issues, need to think how we can get around this.
Just throwing an idea - Few weeks ago I wrote an extension to do Sonar scan in VS with Sonar Qube, To do this I used docked browser control at bottom of VS, Do you think its worth exploring this path?

@Giorgi Giorgi merged commit 66d0bad into Giorgi:main Sep 18, 2024
@ElectricVampire ElectricVampire deleted the master branch October 2, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants