• Aucun résultat trouvé

SSIS Dataflow Performance Tuning Jamie Thomson

N/A
N/A
Protected

Academic year: 2022

Partager "SSIS Dataflow Performance Tuning Jamie Thomson"

Copied!
22
0
0

Texte intégral

(1)

SSIS Dataflow Performance Tuning

Jamie Thomson

(2)

• Buffer Architecture

• Design for perf!

• General tuning tips

SSIS Dataflow Performance Tuning

(3)

Buffer

Architecture

(4)

• An area of memory

• Created by asynchronous components

• Does not move or change shape

• Data in a buffer can be changed by components

• Is what you see in a data viewer

What is a buffer?

(5)

Demo 1

What is a buffer

(6)

Synchronous

• Aka Row transformations

Asynchronous

• Partially blocking

• Fully blocking

Buffer Architecture

(7)

Synchronous components

• Same buffer used for input and output

• Number of rows in = Number of rows out

• Generally very quick

• Examples:

• Derived Column

• Conditional Split

• Multicast

(8)

Asynchronous components

• Creates new buffers for output

• Different “shaped” input and output buffers

• Number of rows in <> Number of rows out

• Generally slower

• Examples:

• Aggregate

• Sort

(9)

…is a section of data flow starting from an asynchronous output and terminating

at inputs on transforms that have no synchronous outputs

-Kirk Haselden, P546 of “Microsoft SQL Server Integration Services”

Execution trees

(10)

Demo 2

Synchronous and

Asynchronous components (Count the expression

trees)

(11)

Execution trees

(12)

Inside an execution tree – What we think happens

Buffers don’t

move

(13)

Inside an execution tree – What actually happens

(14)

Design for

perf!

(15)

“The Data Flow Task is performant by design, without any tuning or

optimization the default settings generally deliver great performance”

Kirk Haselden, Microsoft SQL Server 2005 Integration Services, Chapter 23 – Data Flow Task Internals and

Tuning

(16)

• Remove unrequired columns (heed the warnings)

• Fixed-width files – only parse what you need

• ALWAYS use a SQL statement

• Only parse when needed (or leave as strings)

Only do what you have to

(17)

Demo 3

Parse at source or in flow

Lookups vs Merge Joins

(18)

General

tuning tips!

(19)

• Use FastParse if possible

• Turn off OnPipelineRowsSent

• Let the database do what its good at

• Raw files

• 64bit

(20)

• Keep columns narrow

• Point BufferTempStoragePath/BLOBTempStoragePath at fast drives

• Increase DefaultBufferMaxSize &

DefaultBufferMaxRows

• Optimise the destination (fast load, table lock, simple/bulk logged

recovery/disable indexes)

• Identify bottlenecks

(21)

Demo 4

Chaining expression components

Redirect or Passthrough in a Lookup

Fast Parse

(22)

SSIS Performance Tuning Whitepaper –

by

Elizabeth Vitt et al

Microsoft SQL Server 2005 Integration Services (Chapter 23)

by Kirk Haselden

Further reading

Références

Documents relatifs

Open the Data Flow Task named Excel Extract and drag a Flat File Destination to the designer surface. If you have a Union All that was serving as a placeholder,

including relational database server, full text indexing and search, XML data import and export, distributed and heterogeneous data integration, analysis server and client for

 Database with Integrated OLAP and Data Transformation Services (DTS).  Integration with the

• Ensure the domain account can run queries against the other server.. Lab

• Specify report, execution conditions, parameters, rendering Specify report, execution conditions, parameters, rendering format, delivery location, etc. format, delivery

Microsoft SQL Server Microsoft SQL Server Administration for SAP Administration for SAP SQL Server Architecture SQL Server Architecture...

BIN05-HOL Report Builder 3.0 Report Authoring and Microsoft SQL Server 2008 R2 Reporting Services. MGT25-HOL Utilizing SQL Server Reporting Services with Microsoft System Center

SQL Server 2005 ofrece una plataforma de datos más confiable, segura y SQL Server 2005 ofrece una plataforma de datos más confiable, segura y productiva para aplicaciones de unidad