SQLSat - Processing - Tabular - Models 2
SQLSat - Processing - Tabular - Models 2
SQLSat - Processing - Tabular - Models 2
{
"refresh": {
"type": "automatic",
"objects": [
{
"database": "SQLSaturday"
}
]
}
}
Bill Anton
Bill Anton
SSAS / Power BI Consultant
www.opifexsolutions.com
[email protected]
@SQLbyoBI
Analysis Service
Azure SQL DW
SQL Server
Analysis Service
(on-premise)
(on-premise) Data Gateway Azure SQL DB Analysis Service
Storage blob
SQL Server
(on-premise)
Tabular Object Model
Database
Model
Table A Table B
{
"refresh": {
"type": "automatic",
"objects": [
{
"database": "AdventureWorks"
}
]
}
}
Phases of Processing
- Open connection
- Execute SQL
- Encoding
- Compression
- ProcessRecalc
Processing Phases
Source: https://channel9.msdn.com/Events/TechEd/Europe/2014/DBI-B414
Segment = 8 million rows (default) Source: https://channel9.msdn.com/Events/TechEd/Australia/2012/DBI315
Parallel Processing
Parallel Processing (the correct way)
ProcessData ProcessRecalc
Demo 01: ProcessRecalc
Builds any calculated columns, calculated tables, hierarchies, and/or relationships that needs to
be rebuilt.
{
"refresh": {
"type": "calculate",
"objects": [
{
"database": "AdventureWorks"
}
]
}
}
Common Processing Strategies
• ProcessFull at the database level
• Pros: simple, data remains available for queries
• Cons: requires most memory
• Model Flipping
• Pros: low latency
• Cons: complicated and expensive
Performance Considerations
• Processing is resource intensive (CPU, Memory)
• Balance is key!
• Throughput vs Resource Constraints
• Intra-day Processing or Overnight?
• Don’t forget to tune the source
• Use Perfmon and Extended Events to Monitor
(or purchase BI Sentry or BI Manager)
Additional Resources
Performance Tuning of Tabular Models in SQL Server 2012 Analysis Services
https://blogs.msdn.microsoft.com/karang/2013/08/02/sql-2012-tabular-performance-tuning-of-
tabular-models-in-sql-server-2012-analysis-services/