-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add 'LedgerViewType' as supported property for SQL 2022 and Azure DBs #1801
Conversation
src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs
Show resolved
Hide resolved
@@ -106,6 +106,9 @@ | |||
<Filter Property="IsSystemObject" Value="0" Type="bool" /> | |||
<Filter Property="IsDroppedLedgerView" Value="0" Type="bool" ValidFor="Sql2022|AzureV12"/> | |||
</Filters> | |||
<Properties> | |||
<Property Name="LedgerViewType" ValidFor="Sql2022|AzureV12"/> | |||
</Properties> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't OE pick up the property list from here instead of requiring the C# code override?
If someone has cycles to optimize this a bit, I recommend:
|
even better - we updated SetDefaultInitFields/ClearAndInitialize to ignore unsupported properties already. Give it a try. In reply to: 1374521242 |
Thanks for the feedback @shueybubbles ! @kburtram @aasimkhan30 @nofield I think it would be best for you to take a decision on how/when to improve the OE design, as area owners. As of the issue with Views listing in OE, it is related to the Ledger Type, and the change in PR fixes it, but I'll leave that to you to decide if you would like to go for complete fix or this change for upcoming release. Also, I couldn't find any other missing property that is leading to performance degradation at the moment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please see which of David's feedback can be applied incrementally to this PR and which are larger refactoring. The refactorings can be picked up separately by the OE committers.
I don't think much can be done as of current design incrementally in this PR. We should prioritize #1802 sometime soon, will follow up for any undertakings. |
PR fixes issue microsoft/azuredatastudio#21541 and microsoft/azuredatastudio#21171
It seems we're hitting these warnings for every single view element in OE, and we end up making a new query for every view.
Adding LedgerViewType as supported property for Azure SQL and SQL 2022, as I see other Ledger Types are added similar way.
Local testing seems to fix the issue.
@shueybubbles @nofield would appreciate your feedback :)