分表问题
FreesPaul opened this issue · 1 comments
FreesPaul commented
1.分表时查询不支持where里有表名
2.分表使用limit和offset,kingshard将在分表的每一个表中查询limit+offset到内存中操作,当offset过大时,内存完全顶不住,并且查询性能完全不如不分表
FreesPaul commented
select * from mp_p_record_202304 where event_type != 20 and create_time >= 1680278400 and create_time <= 1685375999 and user_id = 5 order by occur_time desc limit 336358