Skip to content

Commit 6d7a58b

Browse files
committed
improved index definition
1 parent 7f728c4 commit 6d7a58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/azure-sql/provision/db/provision.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ADD CONSTRAINT [pk__rawdata] PRIMARY KEY NONCLUSTERED
7777
) WITH (DATA_COMPRESSION = PAGE) ON [ps_af]([PartitionId])
7878
GO
7979

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

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

0 commit comments

Comments
 (0)