Im just starting to get into this topics and looking for general advice on how to set up the partitions.I have a transaction table with 50 million records that's very hard to query. it holds data for the last 4 years but the application only ever looks at the last 6 months so i believe this is and ideal candidate for partitioning. Would it be better to 1) create a partition based on each year for all data so would have a 2015, 2014, 2013, 2012?2) create 1 partition based on month for this years data then 3 based on year so would have jan,feb,march,april,may..., 2014, 2013, 2012For 1) would you have to perform some maintenance at the turn of each year for accommodating the next years data. For 2) although this would give better performance as query's are mostly in the last 6 months wouldn't this have more maintenance to move month data to year partitions come the turn of the year and then create the next years months partitions.Maybe im over complicating things and the norm is to just to create year partitions, whats the general feeling on this
↧