From fabcc4e520227c4367a39bf0882097201acd155f Mon Sep 17 00:00:00 2001 From: lostystyg Date: Wed, 20 Jul 2022 15:30:28 +0300 Subject: [PATCH] Inner join instead of cross for repost in activities --- src/pocketdb/repositories/web/WebRpcRepository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketdb/repositories/web/WebRpcRepository.cpp b/src/pocketdb/repositories/web/WebRpcRepository.cpp index dd1207e56..d60f48d7c 100644 --- a/src/pocketdb/repositories/web/WebRpcRepository.cpp +++ b/src/pocketdb/repositories/web/WebRpcRepository.cpp @@ -5058,7 +5058,7 @@ namespace PocketDb from Transactions r indexed by Transactions_Type_Last_String1_Height_Id - cross join Transactions p indexed by Transactions_Type_Last_String2_Height + join Transactions p indexed by Transactions_Type_Last_String2_Height on p.Type in (200,201,202) and p.Last = 1 and p.String2 = r.String3