Skip to content

Commit

Permalink
more quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Baldwin committed Aug 5, 2024
1 parent 2a2f02c commit c1504c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-08-05-temporal-table-weirdness.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ END;
GO
```

The basic idea here is...Grab the rowcount above and below a specific point in time. Since the table is insert only, this will tell us exactly how many records are inserted, vs cleaned up by the retention policy cleanup job.
The basic idea here is...Grab the rowcount above and below a specific point in time. Since the table is insert only, this will tell us exactly how many rows are inserted, vs cleaned up by the retention policy cleanup job.

I ran the above proc every 5 minutes for a few days and then I ran this analysis query to see what it looked like:

Expand Down Expand Up @@ -261,4 +261,4 @@ I thought it would be cool if I could inspect the actual contents of the columns

Well...after about 5 hours of pulling my hair out...I discovered that `sys.column_store_segments` contains a `min_data_id` and a `max_data_id` value, but for columns of type `datetime2` it's just the raw value, rather than a pointer to some dictionary value or something...

So my next blog post will likely be how I figured that out and my solution for it. I didn't want this post to be even longer than it already is 😂
So my next blog post will be about how I figured that out and my solution for it. I didn't want this post to be even longer than it already is 😂

0 comments on commit c1504c8

Please sign in to comment.