Skip to content

Commit 2e4d5ae

Browse files
committed
feat: use new compression settings in sample
1 parent 01ef041 commit 2e4d5ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/Eftdb.Samples.Shared/Models/DeviceReading.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace CmdScale.EntityFrameworkCore.TimescaleDB.Example.DataAccess.Models
66
{
7-
[Hypertable(nameof(Time), ChunkSkipColumns = new[] { "Time" }, ChunkTimeInterval = "1 day", EnableCompression = true)]
7+
[Hypertable(nameof(Time), ChunkSkipColumns = new[] { "Time" }, ChunkTimeInterval = "1 day", EnableCompression = true, CompressionSegmentBy = new[] { "DeviceId" }, CompressionOrderBy = new[] { "Time DESC" })]
88
[Index(nameof(Time), Name = "ix_device_readings_time")]
99
[PrimaryKey(nameof(Id), nameof(Time))]
1010
[ReorderPolicy("ix_device_readings_time", InitialStart = "2025-09-23T09:15:19.3905112Z", ScheduleInterval = "1 day", MaxRuntime = "00:00:00", RetryPeriod = "00:05:00", MaxRetries = 3)]

0 commit comments

Comments
 (0)