Table Partitioning:: Secret Weapon For Big Data Problems
Table Partitioning:: Secret Weapon For Big Data Problems
2
How to contact me?
http://johnsterrett.com/go/partition
Blog: http://JohnSterrett.com/
Twitter: @JohnSterrett
LinkedIn: http://linkedin.com/in/johnsterrett
3
Agenda
Big Data starting to slow you down? Data growth putting your
maintenance tasks in danger of not meeting your SLAs? Wish you
could archive old data with minimal impact to your tables during the
archive process or that you could eliminate most of the data in your
tables when you query them? If so, it’s time you consider implementing
table partitioning to help with general performance and reduce your
window for completing maintenance tasks.
4
Assumptions…
5
The Big Question…
6
How partitioning helps me?
7
How partitioning helps me?
8
How partitioning helps me?
9
Big Question…
10
High Level…
11
High Level…
Partition Table
Partition Scheme
Partition Function
12
Selecting The Partition Column
13
Partition Function
14
Partition Function
15
Partition Function - Range
16
Partition Scheme
17
Partitioning
DEMO
19
Improving Maintenance Tasks
20
Incremental Statistics
21
HOW DOES TABLE PARTITIONING IMPROVE
PERFORMANCE?
22
Partition Elimination
23
Skip-Scan: Seek keys
24
Database Compression by Partition
25
Partitioning
DEMO
27
Real World Example:
28
Quickest way to move billions of rows
29
Sliding Window Goals
30
Range Right - MERGE
31
Range Left - MERGE
32
Range Right - SPLIT
33
Range Left - SPLIT
34
Visual Sliding Window Example
35
Visual Sliding Window Example
Staging
Table
(EMPTY)
FG2
Visual Sliding Window Example
Staging
Table
(DATA)
FG2
Visual Sliding Window Example
Staging
Table
(DATA)
FG2
Visual Sliding Window Example
Staging
Table
(DATA)
FG2
Visual Sliding Window Example
Staging
Table
(EMPTY)
FG2
Visual Sliding Window Example
43
Partitioning
DEMO
http://johnsterrett.com/go/partition
Blog: http://JohnSterrett.com/
Twitter: @JohnSterrett
LinkedIn: http://linkedin.com/in/johnsterrett
45
Thank you
for attending this session and the
2013 PASS Summit in Charlotte, NC
46
October 15-18, 2013 | Charlotte, NC