反馈人:吴荣发
问题1:
数据库:zhcxkj_center_listing_amazon节点ID:26f05d35fbdd452d80c86a50157fbf52in01
查询时间:46.3198
扫描行数:49376.5
返回行数:49376.5
一天执行次数: 192
慢日志时间:2025-07-30
指纹:cb4c8adab64a78cd2c3e86390cdd37e4
SQL语句:select 'id' , 'source_id' , 'msku' , 'customer_id' , 'fifteen_page_view' , 'pre_fifteen_page_view' , 'recent_date' , 'browser_page_views_percentage' , 'pre_browser_page_views_percentage' , 'create_by' , 'create_time' , 'update_by' , 'update_time' , 'is_deleted' , 'fourteen_page_view' , 'thirty_page_view' , 'seven_page_view' , 'twenty_eight_page_view' , 'sixty_page_view' , 'ninety_page_view' , 'one_hundred_eighty_page_view' , 'seven_page_view_yoy' , 'fourteen_page_view_yoy' , 'twenty_eight_page_view_yoy' , 'thirty_page_view_yoy' , 'sixty_page_view_yoy' , 'ninety_page_view_yoy' , 'one_hundred_eighty_page_view_yoy' , now ( ) starrocksupdatetime FROM ? where ( customer_id = ? AND update_time < replace ( '?' , '?' , '?' ) AND update_time >= date_add ( replace ( '?' , '?' , '?' ) , INTERVAL ? HOUR ) ) ;
真实SQL:select 'id','source_id','msku','customer_id','fifteen_page_view','pre_fifteen_page_view','recent_date','browser_page_views_percentage','pre_browser_page_views_percentage','create_by','create_time','update_by','update_time','is_deleted','fourteen_page_view','thirty_page_view','seven_page_view','twenty_eight_page_view','sixty_page_view','ninety_page_view','one_hundred_eighty_page_view','seven_page_view_yoy','fourteen_page_view_yoy','twenty_eight_page_view_yoy','thirty_page_view_yoy','sixty_page_view_yoy','ninety_page_view_yoy','one_hundred_eighty_page_view_yoy',now() starrocksupdatetime from t_amazon_listing_extra_sku_13 where (customer_id =1 AND update_time= date_add(replace('2025-07-29 07:00:10','%',' '), INTERVAL -0 HOUR));
负责人参考:宋宁
('2025-07-29>
项目参考:java项目('2025-07-29>
('2025-07-29>
问题2:('2025-07-29>
数据库:zhcxkj_center_listing_comprehensive
节点ID:497fd948de9643998944407f361dd881in01
查询时间:70.5668
扫描行数:3757480.0
返回行数:889.966
一天执行次数: 145
慢日志时间:2025-07-30
指纹:b0b5ea83f70647b1208d563476a09a29
SQL语句:select
'id' , 'product_id' , 'sku' , 'source_sku' , 'source_id' ,
'source_name' , 'category_name' , 'title' , 'brand' , 'attribute_color' ,
'attribute_height' , 'attribute_length' , 'attribute_weight' ,
'attribute_width' , 'ean' , 'color' , 'discount_price_country' ,
'discount_price_currency' , 'discount_price' , 'language' ,
'normal_price_country' , 'normal_price_currency' , 'price' , 'vate_rate'
, 'status' , 'package_weight' , 'lead_time' , 'stock_status' ,
'stock_value' , 'description' , 'image' , 'create_by' , 'create_time' ,
'update_by' , 'update_time' , 'is_deleted' , 'manufacturer' ,
'original_status' , 'pf_listing_id' , now ( ) StarRocksUpdateTime FROM ?
where ( update_time < replace ( '?' , '?' , '?' ) AND update_time
>= date_add ( replace ( '?' , '?' , '?' ) , INTERVAL ? HOUR ) ) ;
真实SQL:select
'id','product_id','sku','source_sku','source_id','source_name','category_name','title','brand','attribute_color','attribute_height','attribute_length','attribute_weight','attribute_width','ean','color','discount_price_country','discount_price_currency','discount_price','language','normal_price_country','normal_price_currency','price','vate_rate','status','package_weight','lead_time','stock_status','stock_value','description','image','create_by','create_time','update_by','update_time','is_deleted','manufacturer','original_status','pf_listing_id',now()
StarRocksUpdateTime from t_listing_fruugo where (update_time= date_add(replace('2025/07/29 07:50:07','%',' '), INTERVAL -0 HOUR));
负责人参考:蔡俊伟
项目参考:java项目('2025>
('2025-07-29>
问题2: 源端UpdateTime没有索引,建索引,指定索引