Skip to content

Commit

Permalink
improved index definition
Browse files Browse the repository at this point in the history
  • Loading branch information
yorek committed Sep 29, 2020
1 parent 7f728c4 commit 6d7a58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/azure-sql/provision/db/provision.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ADD CONSTRAINT [pk__rawdata] PRIMARY KEY NONCLUSTERED
) WITH (DATA_COMPRESSION = PAGE) ON [ps_af]([PartitionId])
GO

CREATE NONCLUSTERED INDEX ix1 ON [dbo].[rawdata] ([DeviceId], [DeviceSequenceNumber]) WITH (DATA_COMPRESSION = PAGE) ON [ps_af]([PartitionId])
CREATE NONCLUSTERED INDEX ix1 ON [dbo].[rawdata] ([DeviceId] ASC, [DeviceSequenceNumber] DESC) WITH (DATA_COMPRESSION = PAGE) ON [ps_af]([PartitionId])
GO

CREATE NONCLUSTERED INDEX ix2 ON [dbo].[rawdata] ([BatchId]) WITH (DATA_COMPRESSION = PAGE) ON [ps_af]([PartitionId])
Expand Down

0 comments on commit 6d7a58b

Please sign in to comment.