【DM版本】:
DM Database Server 64 V8
DB Version: 0x7000c
【操作系统】:
【CPU】:
【问题描述】*:
select * from union_event
where id in (
select event_id from union_event_person where
name = 'encrypt_zx1PE2Yg8by8z7yg33wt8N0V5fxuPy1b2Fl5rKnvnBE='
or id_number = 'encrypt_zx1PE2Yg8by8z7yg33wt8N0V5fxuPy1b2Fl5rKnvnBE='
or mobile = 'encrypt_zx1PE2Yg8by8z7yg33wt8N0V5fxuPy1b2Fl5rKnvnBE='
)
order by gmt_happen desc
使用limit搜索时,性能远低于不带limit的sql
是不是得配置索引提示和连接方法提示
你先收集一下统计信息,你这个表有配置索引吗,看你两个走的执行计划都不一样