Skip to content

Commit

Permalink
Fix #102 - Add order claus on column store index creation (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored Jan 31, 2024
1 parent c448290 commit fc10350
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/KernelMemory.MemoryStorage.SqlServer/SqlServerMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ FOREIGN KEY ([memory_id]) REFERENCES {this.GetFullTableName(this._config.MemoryT
IF OBJECT_ID(N'[{this._config.Schema}.IXC_{$"{this._config.EmbeddingsTableName}_{index}"}]', N'U') IS NULL
CREATE CLUSTERED COLUMNSTORE INDEX [IXC_{$"{this._config.EmbeddingsTableName}_{index}"}]
ON {this.GetFullTableName($"{this._config.EmbeddingsTableName}_{index}")};
ON {this.GetFullTableName($"{this._config.EmbeddingsTableName}_{index}")}
ORDER ([memory_id]);
IF OBJECT_ID(N'{this.GetFullTableName($"{this._config.TagsTableName}_{index}")}', N'U') IS NULL
CREATE TABLE {this.GetFullTableName($"{this._config.TagsTableName}_{index}")}
Expand Down

0 comments on commit fc10350

Please sign in to comment.