Add UsePagedSqlQuery setting to NucacheSettings (#14806)

* imlement UsePagedSqlQuery

* Remove unneccesary spacing
This commit is contained in:
Nikolaj Geisle
2023-09-14 20:11:08 +02:00
committed by GitHub
parent 0a4cc27a5d
commit 8ccc2faee0
2 changed files with 47 additions and 59 deletions

View File

@@ -14,6 +14,7 @@ public class NuCacheSettings
internal const string StaticNuCacheSerializerType = "MessagePack";
internal const int StaticSqlPageSize = 1000;
internal const int StaticKitBatchSize = 1;
internal const bool StaticUsePagedSqlQuery = true;
/// <summary>
/// Gets or sets a value defining the BTree block size.
@@ -40,4 +41,7 @@ public class NuCacheSettings
public int KitBatchSize { get; set; } = StaticKitBatchSize;
public bool UnPublishedContentCompression { get; set; } = false;
[DefaultValue(StaticUsePagedSqlQuery)]
public bool UsePagedSqlQuery { get; set; } = true;
}