mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 01:25:40 -05:00
temporary fix to make oe tables expanding faster (#343)
This commit is contained in:
@@ -14,11 +14,13 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
||||
{
|
||||
public override string GetNodeCustomName(object smoObject, SmoQueryContext smoContext)
|
||||
{
|
||||
Table table = smoObject as Table;
|
||||
if (table != null && table.IsSystemVersioned)
|
||||
{
|
||||
return $"{table.Schema}.{table.Name} ({SR.SystemVersioned_LabelPart})";
|
||||
}
|
||||
// TODO: this code makes expanding the tables slow because of loading the IsSystemVersioned property for each table.
|
||||
// Have to uncomment this after optimizing the way properties are loaded for SMO objects
|
||||
//Table table = smoObject as Table;
|
||||
//if (table != null && table.IsSystemVersioned)
|
||||
//{
|
||||
// return $"{table.Schema}.{table.Name} ({SR.SystemVersioned_LabelPart})";
|
||||
//}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user