mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-24 17:24:14 -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;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ NodeType: Constraint Label: CK_Employee_VacationHours SubType: Status:
|
||||
NodeType: Index Label: NonClusteredIndex-Login (Non-Unique, Non-Clustered) SubType: Status:
|
||||
NodeType: Statistic Label: NonClusteredIndex-Login SubType: Status:
|
||||
NodeType: Statistic Label: PK_Employee_BusinessEntityID SubType: Status:
|
||||
NodeType: Table Label: HumanResources.Employee_Temporal (System-Versioned) SubType: Status:
|
||||
NodeType: Table Label: HumanResources.Employee_Temporal SubType: Status:
|
||||
NodeType: Column Label: BusinessEntityID (PK, int, not null) SubType: Status:
|
||||
NodeType: Column Label: NationalIDNumber (nvarchar(15), not null) SubType: Status:
|
||||
NodeType: Column Label: LoginID (nvarchar(256), not null) SubType: Status:
|
||||
|
||||
Reference in New Issue
Block a user