Skip to content

Commit 357c8af

Browse files
Merge pull request #4749 from segmentio/sneha-shashidhar-patch-4
Update schema.md
2 parents ef6f84c + 7390d77 commit 357c8af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/connections/storage/warehouses/schema.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ All four timestamps pass through to your Warehouse for every ETL'd event. In mos
453453
`received_at` is UTC timestamp set by the Segment API when the API receives the payload from client or server. All tables use `received_at` for the sort key.
454454

455455
> info ""
456-
> We recommend using the `received_at` timestamp for all queries based on time. The reason for this is two-fold. First, the `sent_at` timestamp relies on a client's device clock being accurate, which is generally unreliable. Secondly, we set `received_at` as the sort key in Redshift schemas, which means queries will execute much faster when using `received_at`. You can continue to use `timestamp` or `sent_at` timestamps in queries if `received_at` doesn't work for your analysis, but the queries will take longer to complete.
456+
> Segment recommends using the `received_at` timestamp for all queries based on time. The reason for this is two-fold. First, the `sent_at` timestamp relies on a client's device clock being accurate, which is generally unreliable. Secondly, Segment sets `received_at` as the sort key in Redshift schemas, which means queries will execute much faster when using `received_at`. You can continue to use `timestamp` or `sent_at` timestamps in queries if `received_at` doesn't work for your analysis, but the queries will take longer to complete.
457+
>
458+
> For Business Tier customers, Segment suggests enabling `received_at` in the Selective Sync settings to ensure syncs and backfills complete successfully.
457459
458460
`received_at` does not ensure chronology of events. For queries based on event chronology, `timestamp` should be used.
459461

0 commit comments

Comments
 (0)