diff options
author | Vitaly Takmazov | 2023-01-18 12:43:42 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-18 12:54:34 +0300 |
commit | a56652bdd65a9987231e890f46e85e482c8d2f7f (patch) | |
tree | 85afc1318ee76fd9def4c2cf00f7ebd509af68f9 /src/main/java/com/juick/service/MessagesService.java | |
parent | 118464cfdabdad2b943e959e14ceb3012642a301 (diff) |
Avoid nested transactions when reading messages from database
Diffstat (limited to 'src/main/java/com/juick/service/MessagesService.java')
-rw-r--r-- | src/main/java/com/juick/service/MessagesService.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java index b9ee612a..995e8e53 100644 --- a/src/main/java/com/juick/service/MessagesService.java +++ b/src/main/java/com/juick/service/MessagesService.java @@ -125,9 +125,6 @@ public interface MessagesService { @Cacheable(value = "messages", key="{ #visitor.uid, #mids.hashCode() }") List<Message> getMessages(User visitor, List<Integer> mids); - - Map<Integer,Set<Reaction>> updateReactionsFor(final List<Integer> mid); - @Cacheable(value = "replies", key="{ #user.uid, #mid }") List<Message> getReplies(User user, int mid); |