SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Partitioning - Sliding Window (Switching) and Always On - Advice Please!


Partitioning - Sliding Window (Switching) and Always On - Advice Please!

Author
Message
Andy Hyslop
Andy Hyslop
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2149 Visits: 3045
Hi

I couldn't seem to find a forum for this, so picked this one as seemed to be the closest.

I've been looking round for a while on this but I'm either looking in the wrong places or there is not much out there.

I am looking at a partitioning a large table with millions or rows per month and would like to implement a sliding window technique or switching a months worth of data into an archive table every month.

In terms of the technique I'm OK with that (although if anyone has any advice then please feel free to chirp up). What I am not sure about is this, the DB will be participating in a Availability Group 1 Synchronous Replica and 2 Asynchronous Replicas , what kind of effect will this have on DB's / Availability Group?

Does anyone have any experience of this?

Cheers

Andy

==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe
Andy Hyslop
Andy Hyslop
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2149 Visits: 3045
Hmm no takers? Looks like I will be the first person ever to try Partition Sliding with Always On..... ;-) Rolleyes

==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe
WolfgangE
WolfgangE
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1283 Visits: 798
I'd say you are the second :-)

I'm setting up an Always On Group these weeks.
I also have some large tables that are partitioned by month. The database ist part of the Always On Group.

My first test of switching out an partition into another table worked fine at the first try. The partition was empty but the whole process worked.
The next time we have a partition full with data. I do not expect any problems as the mechanism of the sliding window seems to work. The interesting thing is: We use synchonous mode. How long will the transaction of switching out the table really need and what does this mean for the primary replica? How long will it be "non writeable". As our network connection between the primary and the only secondary replica is quite strong I do not expect any problems here neither.

In the end this means for me: As the sliding window itself works great it seems to be like on any "non-always-on-database", only to keep in mind the any transaction has to be committed from the secondary replica when using synchronous data transfer.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search