Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

Create a partition for a temporal table based on a period

$
0
0


To improve the performance of my ETL, I decided to use temporal table instead of a slowly changing dimension.

For my Employee dimension, I created a temporal table.Now I want to split data into partitions based on periods.

I already declared StartTimeV and EndTimeV (the created columns for my temporal tables) as system period start time and end time periods. I want to create a partition for my temporal table based on the period (StartTimeV and EndTimeV). Is it possible to make it with applying the DATE_DIFF function between the two columns to get partitions for each month of the year?




Viewing all articles
Browse latest Browse all 2729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>