From 6c6cb156d49d8e141005c7ee8dba6da79e453137 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 19 Mar 2022 21:57:02 -0400 Subject: [PATCH] fix: temporarily remove message count statistics because postgres locks --- PluralKit.Core/Database/Repository/ModelRepository.Stats.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs b/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs index 306e577d..6c08781a 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs @@ -14,8 +14,8 @@ public partial class ModelRepository conn.ExecuteAsync("update info set group_count = (select count(*) from groups)")); await _db.Execute(conn => conn.ExecuteAsync("update info set switch_count = (select count(*) from switches)")); - await _db.Execute(conn => - conn.ExecuteAsync("update info set message_count = (select count(*) from messages)")); + // await _db.Execute(conn => + // conn.ExecuteAsync("update info set message_count = (select count(*) from messages)")); } public Task GetStats()