Skip to content

Commit

Permalink
migrate selectManyWithRowBounds to using subquery
Browse files Browse the repository at this point in the history
  • Loading branch information
hilpitome committed Aug 1, 2024
1 parent 082c8d6 commit 2dc75d6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,18 @@
distinct
</if>
<include refid="Base_Event_Column_List" />
from core.event_metadata em
inner join core.event e on em.event_id = e.id
from core.event e
where e.id in (select em.event_id from core.event_metadata em
<if test="_parameter != null">
<include refid="Rowbounds_Example_Where_Clause" />
</if>
</if>)
<if test="example.orderByClause != null">
order by em.${example.orderByClause}
order by ${example.orderByClause}
</if>
LIMIT #{limit} OFFSET #{offset}
</select>


<select id="selectManyIds" resultType="java.lang.String">
select
<if test="example.distinct">
Expand Down

0 comments on commit 2dc75d6

Please sign in to comment.