Skip to content

Instantly share code, notes, and snippets.

@dgosbell
Last active April 6, 2024 03:42
Show Gist options
  • Save dgosbell/07518d43be479681113953fa543cf7b4 to your computer and use it in GitHub Desktop.
Save dgosbell/07518d43be479681113953fa543cf7b4 to your computer and use it in GitHub Desktop.
// =====================================
// Author: Darren Gosbell
// Date: 12 Apr 2023
// This script works in Tabular Editor and sets the MaxParallelismPerQuery
// setting at the database level.
// =====================================
if (Model.Database.CompatibilityLevel < 1569)
{
Model.Database.CompatibilityLevel = 1569;
}
// The max number of parallel SE query for a single Dax query.
Model.MaxParallelismPerQuery = 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment