From f6fcd76683518f30b1c27de6f54c8202a7a35f93 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 12 Oct 2024 01:51:30 +0200 Subject: [PATCH] Add Index to Load on LcgNode --- Common/Redis/LcgNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Redis/LcgNode.cs b/Common/Redis/LcgNode.cs index 611c1006..df34b255 100644 --- a/Common/Redis/LcgNode.cs +++ b/Common/Redis/LcgNode.cs @@ -2,12 +2,12 @@ namespace OpenShock.Common.Redis; -[Document(StorageType = StorageType.Json, IndexName = "lcg-online-v2")] +[Document(StorageType = StorageType.Json, IndexName = "lcg-online-v3")] public sealed class LcgNode { [RedisIdField] [Indexed] public required string Fqdn { get; set; } [Indexed] public required string Country { get; set; } - public required byte Load { get; set; } + [Indexed] public required byte Load { get; set; } [Indexed] public string Environment { get; set; } = "Production"; } \ No newline at end of file