From 57f275ea9dcd3c7c61a75561c809cef6a97f6937 Mon Sep 17 00:00:00 2001 From: lostystyg Date: Mon, 5 Sep 2022 15:04:22 +0400 Subject: [PATCH] Cosmetics for blocking query in activities --- .../repositories/web/WebRpcRepository.cpp | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/pocketdb/repositories/web/WebRpcRepository.cpp b/src/pocketdb/repositories/web/WebRpcRepository.cpp index c1bf6c84d..99c0f8b36 100644 --- a/src/pocketdb/repositories/web/WebRpcRepository.cpp +++ b/src/pocketdb/repositories/web/WebRpcRepository.cpp @@ -5542,20 +5542,21 @@ namespace PocketDb 'reputation', ifnull(rmac.Value,0) ) ) - ) from Transactions mac indexed by Transactions_Type_Last_String1_Height_Id + ) + from Transactions mac indexed by Transactions_Type_Last_String1_Height_Id - left join Payload pmac - on pmac.TxHash = mac.Hash + left join Payload pmac + on pmac.TxHash = mac.Hash - left join Ratings rmac indexed by Ratings_Type_Id_Last_Height - on rmac.Type = 0 - and rmac.Id = mac.Id - and rmac.Last = 1 + left join Ratings rmac indexed by Ratings_Type_Id_Last_Height + on rmac.Type = 0 + and rmac.Id = mac.Id + and rmac.Last = 1 - where mac.String1 in (select value from json_each(b.String3)) - and mac.Type = 100 - and mac.Last = 1 - and mac.Height > 0 + where mac.String1 in (select value from json_each(b.String3)) + and mac.Type = 100 + and mac.Last = 1 + and mac.Height > 0 ), null, null,