-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Model.ExtractorSettings
, bump DaxModel version 1.5.0 (#121)
* Re-run DMV extractor only if model has any DL partitions * Add ExtractorSettings * Refactor StatExtractor access modifiers to ensure consistent ExtractorSettings * Bump CurrentDaxModelVersion 1.5.0 * Mark `StatExtractor.UpdateStatisticsModel` obsolete * Rename ExtractorSettings to ExtractorProperties * Fix Dax.Model.Extractor namespace in test utils Program.cs
- Loading branch information
1 parent
3049bd8
commit 204761e
Showing
7 changed files
with
113 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
namespace Dax.Metadata; | ||
|
||
using System.ComponentModel; | ||
|
||
public sealed class ExtractorProperties | ||
{ | ||
/// <summary> | ||
/// Specifies whether to enable statistics collection from the data instead of relying on the the DMVs. The result is more accurate statistics, but it can be slower. | ||
/// </summary> | ||
public bool StatisticsEnabled { get; set; } | ||
|
||
/// <remarks> | ||
/// This settings only applies when <see cref="StatisticsEnabled"/> is <see langword="true"/>. | ||
/// </remarks> | ||
public DirectLakeExtractionMode DirectLakeMode { get; set; } | ||
|
||
/// <remarks> | ||
/// This settings only applies when <see cref="StatisticsEnabled"/> is <see langword="true"/>. | ||
/// </remarks> | ||
public DirectQueryExtractionMode DirectQueryMode { get; set; } | ||
} | ||
|
||
public enum DirectLakeExtractionMode | ||
{ | ||
/// <summary> | ||
/// Only does a detailed scan of columns that are already in memory | ||
/// </summary> | ||
[Description("Only does a detailed scan of columns that are already in memory")] | ||
ResidentOnly = 0, | ||
|
||
/// <summary> | ||
/// Only does a detailed scan of columns referenced by measures or relationships | ||
/// </summary> | ||
[Description("Only does a detailed scan of columns referenced by measures or relationships")] | ||
Referenced = 1, | ||
|
||
/// <summary> | ||
/// Does a detailed scan of all columns forcing them to be paged into memory | ||
/// </summary> | ||
[Description("Does a detailed scan of all columns forcing them to be paged into memory")] | ||
Full = 2 | ||
} | ||
|
||
public enum DirectQueryExtractionMode | ||
{ | ||
/// <summary> | ||
/// Excludes all DirectQuery tables from statistics collection | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Includes all DirectQuery tables in statistics collection | ||
/// </summary> | ||
Full = 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters