Skip to content

Commit

Permalink
Optimize broadcast report query based on timestamp (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c authored Aug 29, 2023
1 parent ef5d5d6 commit 831029c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface XMessageRepository extends ReactiveCassandraRepository<XMessage
Flux<XMessageDAO> findById(UUID uuid);

@AllowFiltering
Flux<Slice<XMessageDAO>> findAllByBotUuid(UUID botUuid, CassandraPageRequest pageRequest);
Flux<Slice<XMessageDAO>> findAllByBotUuidAndTimestampAfter(UUID botUuid, LocalDateTime timestamp, CassandraPageRequest pageRequest);

@AllowFiltering
Flux<XMessageDAO> findFirstByAppAndUserIdAndFromIdAndMessageStateOrderByTimestampDesc(String app, String userID, String fromId, String messageState);
Expand Down

0 comments on commit 831029c

Please sign in to comment.