Архивация списков #13

Merged
gorbenko.pavel merged 16 commits from archive into main 2026-08-19 09:08:37 +00:00
3 changed files with 8 additions and 2 deletions
Showing only changes of commit 9d59074289 - Show all commits
+1
View File
@@ -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
}, },