Skip to content

Commit a4a28d6

Browse files
committed
Removed now-obsolete TopicIndex view
The `TopicIndex` extracted the latest version of the key attributes—i.e., `Key`, `ContentType`, and `ParentID`—from the `Attributes` table and pivoted them to columns. That complexity can now be handled by a straight query of the `Topics` table, as has already been implemented in the dependency functions and stored procedures (2dc4fb2). As such, the `TopicIndex` view is no longer used, and no longer serves a purpose, and can be safely removed.
1 parent da9813b commit a4a28d6

3 files changed

Lines changed: 0 additions & 45 deletions

File tree

OnTopic.Data.Sql.Database/OnTopic.Data.Sql.Database.sqlproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
<Build Include="Functions\GetExtendedAttribute.sql" />
9090
<Build Include="Functions\GetParentID.sql" />
9191
<Build Include="Functions\GetTopicID.sql" />
92-
<Build Include="Functions\GetTopicIDByUniqueKey.sql" />
9392
<Build Include="Functions\GetUniqueKey.sql" />
9493
<Build Include="Stored Procedures\CreateTopic.sql" />
9594
<Build Include="Stored Procedures\DeleteTopic.sql" />
@@ -119,7 +118,6 @@
119118
<Build Include="Views\AttributeIndex.sql" />
120119
<Build Include="Views\AttributeIndex.sql" />
121120
<Build Include="Views\ExtendedAttributeIndex.sql" />
122-
<Build Include="Views\TopicIndex.sql" />
123121
<Build Include="Views\VersionHistoryIndex.sql" />
124122
</ItemGroup>
125123
<ItemGroup>

OnTopic.Data.Sql.Database/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ The following is a summary of the most relevant stored procedures.
4545

4646
## Views
4747
The majority of the views provide records corresponding to the latest version of records for each topic. These include:
48-
- **[`TopicIndex`](Views/TopicIndex.sql)**: Includes the core topic attributes, `topicId`, `Key`, `ParentId`, and `ContentType`.
4948
- **[`AttributeIndex`](Views/AttributeIndex.sql)**: Includes the `TopicId`, `AttributeKey` and `AttributeValue`.
5049
- **[`ExtendedAttributesIndex`](Views/ExtendedAttributeIndex.sql)**: Includes the `TopicId` and `AttributeXml`.
5150
- **[`VersionHistoryIndex`](Views/VersionHistoryIndex.sql)**: Includes up to the last five `Version` records for every `TopicId`.

OnTopic.Data.Sql.Database/Views/TopicIndex.sql

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)