Hurry! 20% Off Ends SoonRegister Now
  • Home
  • Blog
  • MSBI
  • SQL Server Performance Tuning Tips and Tricks in MSBI

SQL Server Performance Tuning Tips and Tricks in MSBI

SQL Server Performance Tuning 

For more than 2 yrs of experience people, this PERFORMANCE TUNING mandatory concept and they must have good knowledge on this.

Situations to go:
a) To create a package with optimization.
b) There is a package which is running for such a long time.
In the above situation, we need to identify the “bottlenecks” and resolve them.
These bottlenecks can be at many levels

  1. Package level.
  2. Source level.
  3. Destination level.
  4. Transformation level.
  5. Data flow task level.
  6. System-level.

Identifying bottlenecks
By using “progress tab” information or by using “log providers” we identify the bottlenecks (because they display step by step execution)

Learn how to use SQL Server , from beginner basics to advanaced techniques taught by industry Experts Enroll for free SQL Server Training Demo

Package level tuning tips

Implement checkpoints to have better restart ability of components in the package.
a) Disable event handlers: Event handlers decrease package performance so, unnecessary event handlers should be removed or disabled.
b) Maximum concurrent executables: Increasing the one no. of executable will increase the parallelism of the package and concurrently execute in less time.
c) Maximum error count: Default ‘1’ means it fails for a single error in the package. If you increase the error count it doesn’t fail the package until it reaches the count.

 

Frequently Asked MSBI Interview Questions & Answers

Data flow task level tips

1) Delay validation: (it’s true/ false)
True means the validations of component is delayed until the execution of other component finished.
Delay validation=true
 Delay validation
Description: Until execute SQL task1” execution finishes. “Execute SQL task2”. Validation not started.
BLOB temp storage path: Specify this at the time of working with Binary large objects such as images, media files etc..
Default buffer max. rows and size: Increase or decrease according to the volume of data loading. i.e., for more volume increase rows and buffer size, for less volume, decrease rows and buffer size.
Engine threads: Default it takes ‘10’, if we increase more threads it runs more parallel and uses more processes to finish the data flow operations.
Run in optimized mode: If it’s true the dataflow avoids unnecessary transformations, conservations, etc operations usage.

MindMajix Youtube Channel

Source level tuning tips

a) In case of flat file
Try to take the flat-file local to the system.
Use the property “fast parse=true”. So that the columns user faster, local neutral parsing routines and avoid unnecessary conversions.

b) If the source is table or view
Create indexes on the source table so that it set gives the data faster.
Instead of taking a table, take an SQL query or SQL command as a data access mode to get required columns and rows of data.

Destination level tuning tips

a) In case of flat file

  1. Try to take the file locally to the system
  2. In the case of relational destination (table or view)
  3. Use data access mode as SQL command to load any required rows and columns.

b) Use data access mode as a fast load to load the data much faster.
c) The table contains constraints, indexes, triggers, and then loading will be slow. So we need to disable or drop them, later once the loading is finished recreate or enable them.
To implement this there are many ways:
 Destination level tuning
Another way to implement the above package functionality is by event handling by
On pre execute of data flow → Disable/drop      functionality
On post execute of data flow → Enable /recreate

Transformation level tuning tips

We need to identify either the transformation is synchronous or asynchronous.
Asynchronous transformation always taken time to run than synchronous.
Synchronous transformation:
Here the rows are processed as it is getting from the source.
Eg: derived column, data conversion…. Etc.
This transformation occupies less memory and processes

Asynchronous transformation:
In this case, until the required rows the system collects, it doesn’t perform any operation.
It requires more memory and processes many rows. This transformation either blocks partially or fully. So these transformations can also be called as “partially blocking or full blocking transformations”.
Eg:  sort, aggregate, merge..etc.
In this transformation, until they receive all rows they will not perform any operation.

  • Use ‘multicast’ transformation to read source data only one time and to perform different operations on the source in a single package.
  • Use ‘lookup’ transformation to get the exact values.
  • Use ‘SQL query options’ for look up to write customized query and to get required data.
  • Use ‘Bulk insert task’ to load the data from file to table if the table already existed and there are no transformations required.
Explore MSBI Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!

 

List of Related Microsoft Certification Courses:

 SSIS Power BI
 SSRS SharePoint
 SSAS SQL Server DBA
 SCCM BizTalk Server
 Team Foundation Server BizTalk Server Administrator

 

 

Job Support Program

Online Work Support for your on-job roles.

jobservice

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
MSBI TrainingDec 24 to Jan 08View Details
MSBI TrainingDec 28 to Jan 12View Details
MSBI TrainingDec 31 to Jan 15View Details
MSBI TrainingJan 04 to Jan 19View Details
Last updated: 03 Apr 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less
  1. Share:
MSBI Articles