Skip to content

Instantly share code, notes, and snippets.

@dgosbell
Last active April 11, 2023 22:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
// =====================================
// 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