Skip to content

Commit

Permalink
fix #107: 일대다 관계에서 pagination 할 시 "다"의 데이터가 page size 차지하는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoguoo committed Mar 13, 2024
1 parent 8e9f86e commit 2beeb2b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public Page<Room> findListPage(RoomListRequestDto request, Pageable pageable) {
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
.orderBy(roomStatusPriority.asc(), room.createdAt.desc())
.distinct()
.fetch();

JPAQuery<Long> countQuery = jpaQueryFactory
Expand Down

0 comments on commit 2beeb2b

Please sign in to comment.