Архивация списков #13
@@ -19,3 +19,4 @@ workspace.xml
|
|||||||
**/obj/
|
**/obj/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
logs/
|
logs/
|
||||||
|
appsettings.Local.json
|
||||||
@@ -21,6 +21,11 @@ const string CorsPolicyName = "Frontend";
|
|||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Локальные оверрайды, не попадающие в git (см. .gitignore) — на своей машине
|
||||||
|
// можно, например, занизить ListPartitioning:ItemCountThreshold, чтобы не
|
||||||
|
// накапливать тысячи тестовых заявок для проверки создания партиций.
|
||||||
|
builder.Configuration.AddJsonFile("appsettings.Local.json", optional: true, reloadOnChange: true);
|
||||||
|
|
||||||
builder.Host.UseSerilog((context, services, configuration) => configuration
|
builder.Host.UseSerilog((context, services, configuration) => configuration
|
||||||
.ReadFrom.Configuration(context.Configuration)
|
.ReadFrom.Configuration(context.Configuration)
|
||||||
.Enrich.FromLogContext()
|
.Enrich.FromLogContext()
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ListPartitioning": {
|
"ListPartitioning": {
|
||||||
"ItemCountThreshold": 2,
|
"ItemCountThreshold": 4900,
|
||||||
"StaleLockAfter": "00:30:00",
|
"StaleLockAfter": "00:30:00",
|
||||||
"CheckThresholdOnRead": true
|
"CheckThresholdOnRead": true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user