Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Server 2008: What to do and What not to do Eladio Rincón Javier Loria Solid.

Similar presentations


Presentation on theme: "SQL Server 2008: What to do and What not to do Eladio Rincón Javier Loria Solid."— Presentation transcript:

1 SQL Server 2008: What to do and What not to do Eladio Rincón (ERincon@solidq.com)ERincon@solidq.com Javier Loria (javier@solidq.com)javier@solidq.com Solid Quality Mentors

2 Agenda

3 SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal 436595SO4365967610-4020-00067624643.9362 436605SO4366011712310-4020-0001171553.1035 436615SO43661442010-4020-00044239422.1198 436625SO436622272310-4020-00022734689.5578 436635SO4366351010-4020-000510503.3507 436645SO4366439710-4020-00039729312.401 436655SO4366514610-4020-00014617199.2839 436665SO4366651110-4020-0005116079.6842 436675SO4366764610-4020-0006467326.5034 436685SO4366851410-4020-00051443272.067 436695SO4366957810-4020-000578881.4687 436705SO4367050410-4020-0005047344.5034 436715SO4367120010-4020-0002009760.1695 436725SO4367211910-4020-0001197345.0284 436735SO4367361810-4020-0006184474.5179 Row Data Compression 3 © 2008 Solid Quality Mentors 436595SO4365967610-4020-00067624643.9362 436605SO4366011712310-4020-0001171553.1035 Fixed length data types are physically rearranged as variable data types

4 Page Data Compression: (1/3) 436595SO4365967610-4020-00067624643.9362 436605SO4366011712310-4020-0001171553.1035 436615SO43661442010-4020-00044239422.1198 436625SO436622272310-4020-00022734689.5578 436635SO4366351010-4020-000510503.3507 436645SO4366439710-4020-00039729312.401 436655SO4366514610-4020-00014617199.2839 436665SO4366651110-4020-0005116079.6842 436675SO4366764610-4020-0006467326.5034 436685SO4366851410-4020-00051443272.067 436695SO4366957810-4020-000578881.4687 436705SO4367050410-4020-0005047344.5034 436715SO4367120010-4020-0002009760.1695 436725SO4367211910-4020-0001197345.0284 436735SO4367361810-4020-0006184474.5179 SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal Page data compression begins with row data compression

5 Page Data Compression: (2/3) {1-3}595SO43659676{5}67624643.9362 {1}05 117123{5}1171553.1035 {1}15 4420{5}44239422.1198 {1}25 22723{5}22734689.5578 {1}35 510{5}510503.3507 {1}45 397{5}39729312.401 {1}55 146{5}14617199.2839 {1}65 511{5}5116079.6842 {1}75 646{5}6467326.5034 {1}85 514{5}51443272.067 {1}95 578{5}578881.4687 {2}05 504{5}5047344.5034 {2}15 200{5}2009760.1695 SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5}10-4020-000 {2}4367{2}SO437 Compression header created to stored column prefix tokens. Token prefix replaced and suffix value calculated when necessary.

6 Page Data Compression (3/3) Dictionary data compression searches and replaces repeated values at page level. {1-3}595SO43659676{5}67624643.9362676 {1}05 117123{5}1171553.1035117123 {1}15 {B}{5}44239422.11984435 {1}25 22723{5}22734689.557822723 {1}35 510{5}510503.3507530 {1}45 397{5}39729312.401347 {1}55 146{5}14617199.2839166 {1}65 511{5}5116079.6842{B} {1}75 676{5}6467326.5034646 {1}85 514{5}51443272.067514 SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5}10-4020-000 {2}4367{2}SO437

7 Page Data Compression (3/3) Dictionary data compression searches and replaces repeated values at page level. {1-3}595SO43659676{5}{A}24643.9362{A} {1}05 117123{5}1171553.1035117123 {1}15 4420{5}44239422.11984435 {1}25 22723{5}22734689.557822723 {1}35 510{5}510503.3507530 {1}45 397{5}39729312.401347 {1}55 146{5}14617199.2839166 {1}65 511{5}5116079.68424420 {1}75 {A}{5}6467326.5034646 {1}85 514{5}51443272.067514 SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5}10-4020-000 {2}4367{2}SO437 {A} 676{B}4420

8 Data Compression: Performance Implications

9 Memory Consumption Best Practices for using Microsoft SQL Server 2008 data compression with HP ProLiant and Integrity servers and HP StorageWorks EVA8x00

10 CPU Consumption Best Practices for using Microsoft SQL Server 2008 data compression with HP ProLiant and Integrity servers and HP StorageWorks EVA8x00

11 What to do?, and What not to do? 11 © 2008 Solid Quality Mentors Fact Tables Historic Information DeNormalized tables Transactional Tables Frequently Updated Tables CPU stressed Servers

12 Agenda

13 Filtered Indexes © 2008 Solid Quality Mentors 13 Clustered IndexNon-clustered Index

14 Filtered Indexes: Faster and better searches

15 What to do?, and What not to do? 15 © 2008 Solid Quality Mentors Nullable/Sparse Columns Last Period Index Active/Inactive Non-selective columns Frequently updated columns “Partition” by Filtered Index

16 Agenda

17 Resource Governor 17 © 2008 Solid Quality Mentors

18 Resource Governor Handling SLAs

19 Mixing Workloads (1/2) 19 Evaluation and recommendations for using Microsoft SQL Server 2008, HP

20 Mixing Workloads (2/2) Evaluation and recommendations for using Microsoft SQL Server 2008, HP

21 What to do?, and What not to do? 21 © 2008 Solid Quality Mentors Batch Processes (ETL, …) Limit Ad-hoc Reports Allocate based on budget Not “performance” tool Create too many group/pools Security

22 Agenda

23 Change Data Capture 23 © 2008 Solid Quality Mentors SalesOrderIDStatusCustomerIDSubTotal 43659567624643.9362 4366051171231553.1035 436615442039422.1198 4366252272334689.5578 436635510503.3507 12345.6789 Transaction Log MetadataSalesOrderIDStatusCustomerIDSubTotal 43659567624643.9362 43659567612345.6789 No triggers, based on service broker technology

24 Change Data Capture Building a Faster and Better ETL

25 What to do?, and What not to do? 25 © 2008 Solid Quality Mentors Use to Populate DW Use to create audit trails Consider I/O Impact ` Every Table/Every Column Turn Off SQL Server Agent Insert/Update

26 Agenda

27 Questions 27 © 2008 Solid Quality Mentors

28 Please remember to fill out evaluations


Download ppt "SQL Server 2008: What to do and What not to do Eladio Rincón Javier Loria Solid."

Similar presentations


Ads by Google