Skip to content

Commit

Permalink
Cosmetics for blocking query in activities
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Sep 5, 2022
1 parent 88ed33a commit 57f275e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/pocketdb/repositories/web/WebRpcRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 57f275e

Please sign in to comment.