Hi, can you translate it to English? ------------------
Liang Zhang (John) Apache ShardingSphere & Dubbo Seth Messenger <sethmessen...@126.com> 于2019年9月22日周日 下午11:15写道: > Hi,大神: > > 麻烦问下有个问题,我们之前使用的3.1.0但因为出现了部分表的分页问题升级至最新的版本RC-2.0,但是突然发现现在原来的自定义路由失效了,还请麻烦看下。看过源码,里面自定义SQL解析器解析完logicSql后,没有把我的where语句放入 > Collection<ShardingCondition>中,导致最终无法进入我的自定义路由,进行了全分库查询,是不是使用方式存在什么样的问题。 > 这个问题会有造成现有项目的性能问题,还请赐教下 > > > 逻辑SQL: > select > > id,comment_id,product_id,shop_id,customer_id,sub_cust_id,nick_name,customer_ip_addr,order_id,order_creation_date, > > product_category,product_medium,score,source_type,content,content_len,is_check,check_user,check_creation_date,is_anonymous, > > > is_top,top_reason,top_user,top_creation_date,is_wonderful,wonderful_reason,wonderful_user,wonderful_creation_date,customer_attributes,is_sync,creation_date,main_product_id,delivery_confirm_date,total_helpful_num,total_useless_num,total_reply_num,factor_change_date, > > last_change_date,activity_type,activity_id,failed_reason,emotion_score,comment_type,ebook_is_delete > from archive_comment > where 1=1 > and LEFT(product_category, 2) in ('01','98') > and source_type = ? > and creation_date = ? > and (creation_date BETWEEN ? and > ?) > and ebook_is_delete = ? > and source_type <> 14 > order by creation_date desc > limit ?, ? > > > 参数列表: > > sqlStatement: > > > > > 以下为的我的配置文件: > > <!-- archive_comment 分表策略 --> > <sharding:standard-strategy > id="archiveCommentTableStrategy" > sharding-column="creation_date" > precise-algorithm-ref="archiveCommentTablePreciseShardingAlgorithm" > range-algorithm-ref="archiveCommentTableRangeShardingAlgorithm" /> > > > > >