逻辑删除的字段在查询的时候的性能影响(Version3.1.0)
TbUser one = new LambdaQueryChainWrapper<>(tbUserMapper) .select(TbUser::getUserId, TbUser::getNickname) .eq(TbUser::getUserId, 1239563848215904258L).one();
逻辑删除的字段是deleted
但是我发现执行的时候打印的SQL是
SELECT user_id,nickname FROM tb_user WHERE deleted=0 AND user_id = ?
deleted条件自动放在了最前面,这样对大数据量查询性能不会有负面影响吗?