Authored by mali

站内信性能优化

... ... @@ -57,7 +57,11 @@
limit #{rowNo},#{limit}
</select>
<select id="selectTotalInboxs" resultType="java.lang.Integer">
select count(1) from ${tableName} where uid = #{uid} and is_del='N'
select count(1) from ${tableName}
<if test="type != null">
force index(`read`)
</if>
where uid = #{uid} and is_del='N'
<if test="type != null">
and type=#{type}
</if>
... ...