暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

记录12

eof007 2025-04-22
106

SQL: select a.id msgId, a.msg_title, a.msg_type, a.msg_content, a.send_way, a.plan_send_time, a.send_time, a.send_status, a.send_user_id, a.channel_id, a.url, a.store_scope, a.role_scope, a.send_time
from sys_msg a where a.is_deleted = 0 and a.send_status in (2, 4)
AND EXISTS ( SELECT 1 FROM sys_msg_push_scope b WHERE b.msg_id = a.id AND b.is_deleted = 0 AND b.scope_type IN (1, 2, 3, 4) AND b.scope_code IN ( '0', '270663880522502165', '270662072681009160', '1001', '101501' ) )
AND EXISTS ( SELECT 1 FROM sys_msg_push_scope c WHERE c.msg_id = a.id AND c.is_deleted = 0 AND c.scope_type = 5 AND c.scope_code IN ( '0', '272809890154033152', '276821439222919168', '271160767533219840' ) )
and a.send_time >= '2025-02-11 00:00:00' and a.send_time <= '2025-03-11 23:59:59.999' and a.msg_type in ( 2, 3, 4 )
order by a.send_time desc LIMIT 6
查看格式化信息
========================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
----------------------------------------------------------------------------------------
|0 |LIMIT | |6 |678 |
|1 |└─NESTED-LOOP SEMI JOIN | |6 |678 |
|2 | ├─NESTED-LOOP SEMI JOIN | |6 |486 |
|3 | │ ├─TABLE RANGE SCAN |a(idx_send_time,Reverse)|14 |75 |
|4 | │ └─SUBPLAN SCAN |VIEW1 |1 |31 |
|5 | │ └─DISTRIBUTED TABLE RANGE SCAN|b(idx_msg_id) |1 |31 |
|6 | └─SUBPLAN SCAN |VIEW2 |1 |32 |
|7 | └─DISTRIBUTED TABLE RANGE SCAN |c(idx_msg_id) |1 |32 |
========================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.id(0x7f16ef846d00)], [a.msg_title(0x7f16ef87b140)], [a.msg_type(0x7f16ef87a3d0)], [a.msg_content(0x7f16ef87ba60)], [a.send_way(0x7f16ef87c060)],
[a.plan_send_time(0x7f16ef87c660)], [a.send_time(0x7f16ef875ef0)], [a.send_status(0x7f16ef8302c0)], [a.send_user_id(0x7f16ef87d2a0)], [a.channel_id(0x7f16ef87d8a0)],
[a.url(0x7f16ef87dea0)], [a.store_scope(0x7f16ef87e4a0)], [a.role_scope(0x7f16ef87eaa0)], [a.send_time(0x7f16ef875ef0)]), filter(nil), rowset=16
limit(6), offset(nil)
1 - output([a.id(0x7f16ef846d00)], [a.msg_title(0x7f16ef87b140)], [a.msg_type(0x7f16ef87a3d0)], [a.msg_content(0x7f16ef87ba60)], [a.send_way(0x7f16ef87c060)],
[a.plan_send_time(0x7f16ef87c660)], [a.send_time(0x7f16ef875ef0)], [a.send_status(0x7f16ef8302c0)], [a.send_user_id(0x7f16ef87d2a0)], [a.channel_id(0x7f16ef87d8a0)],
[a.url(0x7f16ef87dea0)], [a.store_scope(0x7f16ef87e4a0)], [a.role_scope(0x7f16ef87eaa0)]), filter(nil), rowset=16
conds(nil), nl_params_([a.id(0x7f16ef846d00)(:1)]), use_batch=false
2 - output([a.id(0x7f16ef846d00)], [a.msg_title(0x7f16ef87b140)], [a.msg_type(0x7f16ef87a3d0)], [a.msg_content(0x7f16ef87ba60)], [a.send_way(0x7f16ef87c060)],
[a.plan_send_time(0x7f16ef87c660)], [a.send_time(0x7f16ef875ef0)], [a.send_status(0x7f16ef8302c0)], [a.send_user_id(0x7f16ef87d2a0)], [a.channel_id(0x7f16ef87d8a0)],
[a.url(0x7f16ef87dea0)], [a.store_scope(0x7f16ef87e4a0)], [a.role_scope(0x7f16ef87eaa0)]), filter(nil), rowset=16
conds(nil), nl_params_([a.id(0x7f16ef846d00)(:0)]), use_batch=false
3 - output([a.id(0x7f16ef846d00)], [a.send_status(0x7f16ef8302c0)], [a.send_time(0x7f16ef875ef0)], [a.msg_type(0x7f16ef87a3d0)], [a.msg_title(0x7f16ef87b140)],
[a.msg_content(0x7f16ef87ba60)], [a.send_way(0x7f16ef87c060)], [a.plan_send_time(0x7f16ef87c660)], [a.send_user_id(0x7f16ef87d2a0)], [a.channel_id(0x7f16ef87d8a0)],
[a.url(0x7f16ef87dea0)], [a.store_scope(0x7f16ef87e4a0)], [a.role_scope(0x7f16ef87eaa0)]), filter([a.msg_type(0x7f16ef87a3d0) IN (2, 3, 4)(0x7f1a4c4db880)(0x7f16ef878aa0)],
[a.send_status(0x7f16ef8302c0) IN (2, 4)(0x7f1a4c4dacf0)(0x7f16ef82ec30)], [a.is_deleted(0x7f16ef82e6a0) = 0(0x7f16ef82df50)]), rowset=16
access([a.id(0x7f16ef846d00)], [a.is_deleted(0x7f16ef82e6a0)], [a.send_status(0x7f16ef8302c0)], [a.send_time(0x7f16ef875ef0)], [a.msg_type(0x7f16ef87a3d0)],
[a.msg_title(0x7f16ef87b140)], [a.msg_content(0x7f16ef87ba60)], [a.send_way(0x7f16ef87c060)], [a.plan_send_time(0x7f16ef87c660)], [a.send_user_id(0x7f16ef87d2a0)],
[a.channel_id(0x7f16ef87d8a0)], [a.url(0x7f16ef87dea0)], [a.store_scope(0x7f16ef87e4a0)], [a.role_scope(0x7f16ef87eaa0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([a.send_time(0x7f16ef875ef0)], [a.id(0x7f16ef846d00)]), range(2025-02-11 00:00:00.000000,MIN ; 2025-03-11 23:59:59.999000,MAX),
range_cond([a.send_time(0x7f16ef875ef0) >= INTERNAL_FUNCTION('2025-02-11 00:00:00', 114, 17)(0x7f16ef89ebc0)(0x7f16ef8757a0)], [a.send_time(0x7f16ef875ef0)
<= INTERNAL_FUNCTION('2025-03-11 23:59:59.999', 112, 17)(0x7f16ef89f7f0)(0x7f16ef877550)])
4 - output(nil), filter(nil), rowset=16
access(nil)
5 - output([b.msg_id(0x7f16ef846a10)]), filter([b.scope_code(0x7f16ef84c9c0) IN ('0', '270663880522502165', '270662072681009160', '1001', '101501')(0x7f1a4c4e2890)(0x7f16ef84ab50)],
[b.scope_type(0x7f16ef84a350) IN (1, 2, 3, 4)(0x7f1a4c4dc220)(0x7f16ef848780)], [b.is_deleted(0x7f16ef8481f0) = 0(0x7f16ef847aa0)]), rowset=16
access([b.id(0x7f16ef8806f0)], [b.msg_id(0x7f16ef846a10)], [b.is_deleted(0x7f16ef8481f0)], [b.scope_type(0x7f16ef84a350)], [b.scope_code(0x7f16ef84c9c0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([b.msg_id(0x7f16ef846a10)], [b.id(0x7f16ef8806f0)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([b.msg_id(0x7f16ef846a10) = :0(0x7f20182d1e10)])
6 - output(nil), filter(nil), rowset=16
access(nil)
7 - output([c.msg_id(0x7f16ef86f830)]), filter([c.scope_type(0x7f16ef871f90) = 5(0x7f16ef871840)], [c.scope_code(0x7f16ef8740f0) IN ('0', '272809890154033152',
'276821439222919168', '271160767533219840')(0x7f1a4c4e3330)(0x7f16ef872520)], [c.is_deleted(0x7f16ef870d30) = 0(0x7f16ef8705e0)]), rowset=16
access([c.id(0x7f16ef89bad0)], [c.msg_id(0x7f16ef86f830)], [c.is_deleted(0x7f16ef870d30)], [c.scope_type(0x7f16ef871f90)], [c.scope_code(0x7f16ef8740f0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([c.msg_id(0x7f16ef86f830)], [c.id(0x7f16ef89bad0)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([c.msg_id(0x7f16ef86f830) = :1(0x7f201835e530)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$F6B5C6D7
stmt_id:2, SEL$2
stmt_id:3, SEL$3
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$F6B5C6D7" (("sl_pos_message"."a"@"SEL$1" "VIEW1"@"SEL$1") "VIEW2"@"SEL$1"))
USE_NL(@"SEL$F6B5C6D7" "VIEW2"@"SEL$1")
USE_NL(@"SEL$F6B5C6D7" "VIEW1"@"SEL$1")
INDEX(@"SEL$F6B5C6D7" "a"@"SEL$1" "idx_send_time")
INDEX(@"SEL$2" "b"@"SEL$2" "idx_msg_id")
USE_DAS(@"SEL$2" "b"@"SEL$2")
INDEX(@"SEL$3" "c"@"SEL$3" "idx_msg_id")
USE_DAS(@"SEL$3" "c"@"SEL$3")
UNNEST(@"SEL$2")
UNNEST(@"SEL$3")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
a:
table_rows:53037
physical_range_rows:61966
logical_range_rows:55307
index_back_rows:55307
output_rows:55272
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_create_time, idx_send_time, idx_create_user, sys_msg]
pruned_index_name:[idx_create_time, idx_create_user]
stats version:1741617516693610
dynamic sampling level:0
b:
table_rows:106394
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_scope_type, idx_msg_id, sys_msg_push_scope]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_msg_push_scope]
stats version:1741472255543781
dynamic sampling level:0
c:
table_rows:106394
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_scope_type, idx_msg_id, sys_msg_push_scope]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_msg_push_scope]
stats version:1741472255543781
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property






CREATE TABLE `sys_msg_push_scope` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`msg_id` bigint(20) unsigned NOT NULL COMMENT '消息id',
`scope_code` varchar(20) NOT NULL COMMENT '发送范围编码',
`scope_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '发送范围类型(1-大区 2-营运区 3-人 4-按部门 5-角色)',
`create_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
`update_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '更新时间',
`is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除(0-否,1-是)',
`create_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '创建人',
`update_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '更新人',
PRIMARY KEY (`id`),
KEY `idx_create_time` (`create_time`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_scope_type` (`scope_code`, `scope_type`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_msg_id` (`msg_id`) BLOCK_SIZE 16384 LOCAL
) AUTO_INCREMENT = 465143749279117314 AUTO_INCREMENT_MODE = 'ORDER' DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = 'zstd_1.3.8' REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0 COMMENT = '消息发送范围'












SQL: SELECT a.goods_id, ( SELECT area_price FROM goods_area_price WHERE goods_id = a.goods_id AND price_area_id = a.price_area_id AND price_type = 1 AND is_deleted = 0 limit 1 ) price, ( SELECT pre_price FROM goods_area_price WHERE goods_id = a.goods_id AND price_area_id = a.price_area_id AND price_type = 1 AND is_deleted = 0 limit 1 ) prePrice, ( SELECT area_price FROM goods_area_price WHERE goods_id = a.goods_id AND price_area_id = a.price_area_id AND price_type = 2 AND is_deleted = 0 limit 1 ) memberPrice, ( SELECT pre_price FROM goods_area_price WHERE goods_id = a.goods_id AND price_area_id = a.price_area_id AND price_type = 2 AND is_deleted = 0 limit 1 ) memberPrePrice, ( SELECT area_price FROM goods_area_price WHERE goods_id = a.goods_id AND price_area_id = a.price_area_id AND price_type = 3 AND is_deleted = 0 limit 1 ) lowestPrice FROM goods_area_price a JOIN goods_store_price_area b ON a.price_area_id = b.price_area_id AND b.is_deleted = 0 JOIN goods_price_area c ON b.price_area_id = c.id AND c.price_area_status = 1 WHERE b.department_id = 270661884516143104 AND a.is_deleted = 0 AND a.goods_id IN ( 270739061056929792, 270739061124038657, 270739143919599616, 270739007940263936, 270739027489914880, 270739527383842816, 270739497465872384, 270739559549960192, 270739547415838720, 270739547491336192, 270739586846490626, 270739628504317953, 270739559654817792, 270739573554741250, 270739521021083648, 270739591313424385, 270739631134146560, 270739480353112066, 270739507448315904, 270739591829323778, 270739565824638977, 270739637958279169, 270739571763773444, 270739585579810816, 270739616135315456, 270739630177845248, 270739624393900032, 270739624477786112, 270739501370769408, 270739532299567106, 270739506206801921, 270739526075219968, 270787939581714432, 270787981671555074, 270787895612825600, 270787871399108611, 270787847864868865, 270787991062601729, 270787967977152513, 270787899874238464, 270787880228118529, 270787923458809856, 270787998507491328, 270787868022693888, 270787958607077376, 270787968161701888, 270787960171552770, 270787974167945217, 270787934846345217, 270787918551474176, 270787944522604544, 271147950481801216, 271148018387582976, 270787984959889408, 270787892257382400, 271148200223244288, 270787869884964864, 270787976307040258, 270788389819277312, 270788372471635968, 270788348522160128, 270788429090545666, 270788420332838913, 270788434098544640, 270788435621076992, 270788476725256193, 270788403438182400, 270788458006077441, 270788391744462849, 270788444731105281, 270788444898877440, 270788345875554304, 270788345972023296, 270788433641365504, 270788424569085952, 270788471998275584, 270788348744458241, 270788349046448129, 270788374975635456, 270788387608879104, 270788387680182272, 270788448946380800, 270788461118251008, 270788435889512450, 270788435960815616, 270788436032118787, 270788375382482945, 270788413823279106, 270788449642635264, 270788485554266112, 270788338019622913, 270788362711490562, 270788362891845632, 270788389462761472, 270788389664088065, 270788401844346881, 270788414850883584, 270788414938963969, 270788415085764609, 270788426662043648, 270788450842206210, 270788450984812546, 270788462514954240, 270788462775001089, 270788449424531456, 270788449776852992, 270788473977987072, 270788474519052288, 270788326229434368, 270788326330097664, 270788415589081088, 270788415672967169, 270788426964033536, 270788427039531008, 270788451702038528, 270788437781143553, 270788438129270785, 270788450305335297, 270788462384930816, 270788440482275328, 270788451840450560, 270788340540399616, 270788352204759040, 270788352280256512, 270788352729047041, 270788378356244480, 270788391270506496, 270788391358586880, 270788391496998912, 270788404046356480, 270788404201545728, 270788416453107713, 270788416750903297, 270788439647608833, 270788463890685952, 270788476108693504, 270788392361025536, 270788392444911616, 270788405036212224, 270788328838291456, 270788366658330627, 270788367128092672, 270788380210126848, 270788392709152768, 270788392784650241, 270788405598248960, 270788405799575552, 270788453862105088, 270788465371275264, 270788330633453568, 270788441375662081, 270788443841912832, 270788342905987072, 270788335184273409, 270788335385600004, 270788351936323584, 270788447486763008, 270788439995736064, 270788424346787840, 270788419250708480, 270788443544117249, 270788455825039360, 270788480638541825, 270788348048203776, 270788363718123520, 270788467443261440, 270788365911744513, 270788349717536768, 270788421238808576, 270788395309621248, 394962428171853824, 270793284639154177, 270793307422613505, 270793242930995200 ) GROUP BY a.goods_id
查看格式化信息
=======================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------------
|0 |SUBPLAN FILTER | |86 |11224 |
|1 |├─HASH GROUP BY | |86 |761 |
|2 |│ └─NESTED-LOOP JOIN | |118 |734 |
|3 |│ ├─NESTED-LOOP JOIN | |1 |27 |
|4 |│ │ ├─TABLE RANGE SCAN |b(idx_department_id) |1 |9 |
|5 |│ │ └─DISTRIBUTED TABLE GET |c |1 |18 |
|6 |│ └─DISTRIBUTED TABLE RANGE SCAN|a(idx_price_area_id_goods) |158 |703 |
|7 |├─DISTRIBUTED TABLE RANGE SCAN |goods_area_price(idx_price_area_id_goods)|1 |25 |
|8 |├─DISTRIBUTED TABLE RANGE SCAN |goods_area_price(idx_price_area_id_goods)|1 |25 |
|9 |├─DISTRIBUTED TABLE RANGE SCAN |goods_area_price(idx_price_area_id_goods)|1 |25 |
|10|├─DISTRIBUTED TABLE RANGE SCAN |goods_area_price(idx_price_area_id_goods)|1 |25 |
|11|└─DISTRIBUTED TABLE RANGE SCAN |goods_area_price(idx_price_area_id_goods)|1 |25 |
=======================================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.goods_id(0x7f4aa6077730)], [subquery(1)(0x7f4aa609bdc0)], [subquery(2)(0x7f4aa60b65b0)], [subquery(3)(0x7f4aa60d0da0)], [subquery(4)(0x7f4aa60eb590)],
[subquery(5)(0x7f4aa6105d80)]), filter(nil), rowset=256
exec_params_([a.goods_id(0x7f4aa6077730)(:0)], [a.price_area_id(0x7f4aa604f700)(:1)], [a.goods_id(0x7f4aa6077730)(:2)], [a.price_area_id(0x7f4aa604f700)(:3)],
[a.goods_id(0x7f4aa6077730)(:4)], [a.price_area_id(0x7f4aa604f700)(:5)], [a.goods_id(0x7f4aa6077730)(:6)], [a.price_area_id(0x7f4aa604f700)(:7)], [a.goods_id(0x7f4aa6077730)(:8)],
[a.price_area_id(0x7f4aa604f700)(:9)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false
1 - output([a.goods_id(0x7f4aa6077730)], [a.price_area_id(0x7f4aa604f700)]), filter(nil), rowset=256
group([a.goods_id(0x7f4aa6077730)]), agg_func(nil)
2 - output([a.goods_id(0x7f4aa6077730)], [a.price_area_id(0x7f4aa604f700)]), filter(nil), rowset=256
conds(nil), nl_params_([b.price_area_id(0x7f4aa604f9f0)(:11)]), use_batch=false
3 - output([b.price_area_id(0x7f4aa604f9f0)]), filter(nil), rowset=256
conds(nil), nl_params_([b.price_area_id(0x7f4aa604f9f0)(:14)]), use_batch=false
4 - output([b.price_area_id(0x7f4aa604f9f0)]), filter([b.is_deleted(0x7f4aa6050c50) = 0(0x7f4aa6050500)]), rowset=256
access([b.id(0x7f4aa614b5a0)], [b.price_area_id(0x7f4aa604f9f0)], [b.is_deleted(0x7f4aa6050c50)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([b.department_id(0x7f4aa6056620)], [b.id(0x7f4aa614b5a0)]), range(270661884516143104,MIN ; 270661884516143104,MAX),
range_cond([b.department_id(0x7f4aa6056620) = 270661884516143104(0x7f4aa6055ed0)])
5 - output(nil), filter([c.price_area_status(0x7f4aa60553c0) = 1(0x7f4aa6054c70)]), rowset=256
access([c.price_area_status(0x7f4aa60553c0)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([c.id(0x7f4aa6054160)]), range(MIN ; MAX),
range_cond([:14 = c.id(0x7f4aa6054160)(0x7f49dbe4a0c0)])
6 - output([a.price_area_id(0x7f4aa604f700)], [a.goods_id(0x7f4aa6077730)]), filter([a.is_deleted(0x7f4aa6057880) = 0(0x7f4aa6057130)]), rowset=256
access([a.id(0x7f4aa614b2c0)], [a.price_area_id(0x7f4aa604f700)], [a.is_deleted(0x7f4aa6057880)], [a.goods_id(0x7f4aa6077730)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([a.price_area_id(0x7f4aa604f700)], [a.goods_id(0x7f4aa6077730)], [a.id(0x7f4aa614b2c0)]), range(MIN ; MAX),
range_cond([a.goods_id(0x7f4aa6077730) IN (270739061056929792, 270739061124038657, 270739143919599616, 270739007940263936, 270739027489914880, 270739527383842816,
270739497465872384, 270739559549960192, 270739547415838720, 270739547491336192, 270739586846490626, 270739628504317953, 270739559654817792, 270739573554741250,
270739521021083648, 270739591313424385, 270739631134146560, 270739480353112066, 270739507448315904, 270739591829323778, 270739565824638977, 270739637958279169,
270739571763773444, 270739585579810816, 270739616135315456, 270739630177845248, 270739624393900032, 270739624477786112, 270739501370769408, 270739532299567106,
270739506206801921, 270739526075219968, 270787939581714432, 270787981671555074, 270787895612825600, 270787871399108611, 270787847864868865, 270787991062601729,
270787967977152513, 270787899874238464, 270787880228118529, 270787923458809856, 270787998507491328, 270787868022693888, 270787958607077376, 270787968161701888,
270787960171552770, 270787974167945217, 270787934846345217, 270787918551474176, 270787944522604544, 271147950481801216, 271148018387582976, 270787984959889408,
270787892257382400, 271148200223244288, 270787869884964864, 270787976307040258, 270788389819277312, 270788372471635968, 270788348522160128, 270788429090545666,
270788420332838913, 270788434098544640, 270788435621076992, 270788476725256193, 270788403438182400, 270788458006077441, 270788391744462849, 270788444731105281,
270788444898877440, 270788345875554304, 270788345972023296, 270788433641365504, 270788424569085952, 270788471998275584, 270788348744458241, 270788349046448129,
270788374975635456, 270788387608879104, 270788387680182272, 270788448946380800, 270788461118251008, 270788435889512450, 270788435960815616, 270788436032118787,
270788375382482945, 270788413823279106, 270788449642635264, 270788485554266112, 270788338019622913, 270788362711490562, 270788362891845632, 270788389462761472,
270788389664088065, 270788401844346881, 270788414850883584, 270788414938963969, 270788415085764609, 270788426662043648, 270788450842206210, 270788450984812546,
270788462514954240, 270788462775001089, 270788449424531456, 270788449776852992, 270788473977987072, 270788474519052288, 270788326229434368, 270788326330097664,
270788415589081088, 270788415672967169, 270788426964033536, 270788427039531008, 270788451702038528, 270788437781143553, 270788438129270785, 270788450305335297,
270788462384930816, 270788440482275328, 270788451840450560, 270788340540399616, 270788352204759040, 270788352280256512, 270788352729047041, 270788378356244480,
270788391270506496, 270788391358586880, 270788391496998912, 270788404046356480, 270788404201545728, 270788416453107713, 270788416750903297, 270788439647608833,
270788463890685952, 270788476108693504, 270788392361025536, 270788392444911616, 270788405036212224, 270788328838291456, 270788366658330627, 270788367128092672,
270788380210126848, 270788392709152768, 270788392784650241, 270788405598248960, 270788405799575552, 270788453862105088, 270788465371275264, 270788330633453568,
270788441375662081, 270788443841912832, 270788342905987072, 270788335184273409, 270788335385600004, 270788351936323584, 270788447486763008, 270788439995736064,
270788424346787840, 270788419250708480, 270788443544117249, 270788455825039360, 270788480638541825, 270788348048203776, 270788363718123520, 270788467443261440,
270788365911744513, 270788349717536768, 270788421238808576, 270788395309621248, 394962428171853824, 270793284639154177, 270793307422613505, 270793242930995200)(0x7f5c547a2fe0)(0x7f4aa6057e10)],
[a.price_area_id(0x7f4aa604f700) = :11(0x7f4e905f8060)])
7 - output([goods_area_price.area_price(0x7f4aa60b5cb0)]), filter([goods_area_price.price_type(0x7f4aa60b41c0) = 1(0x7f4aa60b3a70)], [goods_area_price.is_deleted(0x7f4aa60b5420)
= 0(0x7f4aa60b4cd0)]), rowset=256
access([goods_area_price.id(0x7f4aa6147c60)], [goods_area_price.price_type(0x7f4aa60b41c0)], [goods_area_price.is_deleted(0x7f4aa60b5420)], [goods_area_price.area_price(0x7f4aa60b5cb0)]), partiti
ons(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([goods_area_price.price_area_id(0x7f4aa60b2cc0)], [goods_area_price.goods_id(0x7f4aa60b1740)], [goods_area_price.id(0x7f4aa6147c60)]), range(MIN,
MIN,MIN ; MAX,MAX,MAX)always true,
range_cond([goods_area_price.goods_id(0x7f4aa60b1740) = :0(0x7f4aa60b0ff0)], [goods_area_price.price_area_id(0x7f4aa60b2cc0) = :1(0x7f4aa60b2570)])
8 - output([goods_area_price.pre_price(0x7f4aa60d04a0)]), filter([goods_area_price.price_type(0x7f4aa60ce9b0) = 1(0x7f4aa60ce260)], [goods_area_price.is_deleted(0x7f4aa60cfc10)
= 0(0x7f4aa60cf4c0)]), rowset=256
access([goods_area_price.id(0x7f4aa6148740)], [goods_area_price.price_type(0x7f4aa60ce9b0)], [goods_area_price.is_deleted(0x7f4aa60cfc10)], [goods_area_price.pre_price(0x7f4aa60d04a0)]), partitio
ns(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([goods_area_price.price_area_id(0x7f4aa60cd4b0)], [goods_area_price.goods_id(0x7f4aa60cbf30)], [goods_area_price.id(0x7f4aa6148740)]), range(MIN,
MIN,MIN ; MAX,MAX,MAX)always true,
range_cond([goods_area_price.goods_id(0x7f4aa60cbf30) = :2(0x7f4aa60cb7e0)], [goods_area_price.price_area_id(0x7f4aa60cd4b0) = :3(0x7f4aa60ccd60)])
9 - output([goods_area_price.area_price(0x7f4aa60eac90)]), filter([goods_area_price.price_type(0x7f4aa60e91a0) = 2(0x7f4aa60e8a50)], [goods_area_price.is_deleted(0x7f4aa60ea400)
= 0(0x7f4aa60e9cb0)]), rowset=256
access([goods_area_price.id(0x7f4aa6149220)], [goods_area_price.price_type(0x7f4aa60e91a0)], [goods_area_price.is_deleted(0x7f4aa60ea400)], [goods_area_price.area_price(0x7f4aa60eac90)]), partiti
ons(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([goods_area_price.price_area_id(0x7f4aa60e7ca0)], [goods_area_price.goods_id(0x7f4aa60e6720)], [goods_area_price.id(0x7f4aa6149220)]), range(MIN,
MIN,MIN ; MAX,MAX,MAX)always true,
range_cond([goods_area_price.goods_id(0x7f4aa60e6720) = :4(0x7f4aa60e5fd0)], [goods_area_price.price_area_id(0x7f4aa60e7ca0) = :5(0x7f4aa60e7550)])
10 - output([goods_area_price.pre_price(0x7f4aa6105480)]), filter([goods_area_price.price_type(0x7f4aa6103990) = 2(0x7f4aa6103240)], [goods_area_price.is_deleted(0x7f4aa6104bf0)
= 0(0x7f4aa61044a0)]), rowset=256
access([goods_area_price.id(0x7f4aa6149d00)], [goods_area_price.price_type(0x7f4aa6103990)], [goods_area_price.is_deleted(0x7f4aa6104bf0)], [goods_area_price.pre_price(0x7f4aa6105480)]), partitio
ns(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([goods_area_price.price_area_id(0x7f4aa6102490)], [goods_area_price.goods_id(0x7f4aa6100f10)], [goods_area_price.id(0x7f4aa6149d00)]), range(MIN,
MIN,MIN ; MAX,MAX,MAX)always true,
range_cond([goods_area_price.goods_id(0x7f4aa6100f10) = :6(0x7f4aa61007c0)], [goods_area_price.price_area_id(0x7f4aa6102490) = :7(0x7f4aa6101d40)])
11 - output([goods_area_price.area_price(0x7f4aa611fc70)]), filter([goods_area_price.price_type(0x7f4aa611e180) = 3(0x7f4aa611da30)], [goods_area_price.is_deleted(0x7f4aa611f3e0)
= 0(0x7f4aa611ec90)]), rowset=256
access([goods_area_price.id(0x7f4aa614a7e0)], [goods_area_price.price_type(0x7f4aa611e180)], [goods_area_price.is_deleted(0x7f4aa611f3e0)], [goods_area_price.area_price(0x7f4aa611fc70)]), partiti
ons(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([goods_area_price.price_area_id(0x7f4aa611cc80)], [goods_area_price.goods_id(0x7f4aa611b700)], [goods_area_price.id(0x7f4aa614a7e0)]), range(MIN,
MIN,MIN ; MAX,MAX,MAX)always true,
range_cond([goods_area_price.goods_id(0x7f4aa611b700) = :8(0x7f4aa611afb0)], [goods_area_price.price_area_id(0x7f4aa611cc80) = :9(0x7f4aa611c530)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$C6D21C0F
stmt_id:2, SEL$2
stmt_id:3, SEL$3
stmt_id:4, SEL$4
stmt_id:5, SEL$5
stmt_id:6, SEL$6
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
USE_HASH_AGGREGATION(@"SEL$C6D21C0F")
LEADING(@"SEL$C6D21C0F" (("sl_pos_goods"."b"@"SEL$1" "sl_pos_goods"."c"@"SEL$1") "sl_pos_goods"."a"@"SEL$1"))
USE_NL(@"SEL$C6D21C0F" "sl_pos_goods"."a"@"SEL$1")
USE_NL(@"SEL$C6D21C0F" "sl_pos_goods"."c"@"SEL$1")
INDEX(@"SEL$C6D21C0F" "b"@"SEL$1" "idx_department_id")
FULL(@"SEL$C6D21C0F" "c"@"SEL$1")
USE_DAS(@"SEL$C6D21C0F" "c"@"SEL$1")
INDEX(@"SEL$C6D21C0F" "a"@"SEL$1" "idx_price_area_id_goods")
USE_DAS(@"SEL$C6D21C0F" "a"@"SEL$1")
INDEX(@"SEL$2" "sl_pos_goods"."goods_area_price"@"SEL$2" "idx_price_area_id_goods")
USE_DAS(@"SEL$2" "sl_pos_goods"."goods_area_price"@"SEL$2")
INDEX(@"SEL$3" "goods_area_price"@"SEL$3" "idx_price_area_id_goods")
USE_DAS(@"SEL$3" "goods_area_price"@"SEL$3")
INDEX(@"SEL$4" "goods_area_price"@"SEL$4" "idx_price_area_id_goods")
USE_DAS(@"SEL$4" "goods_area_price"@"SEL$4")
INDEX(@"SEL$5" "goods_area_price"@"SEL$5" "idx_price_area_id_goods")
USE_DAS(@"SEL$5" "goods_area_price"@"SEL$5")
INDEX(@"SEL$6" "goods_area_price"@"SEL$6" "idx_price_area_id_goods")
USE_DAS(@"SEL$6" "goods_area_price"@"SEL$6")
OUTER_TO_INNER(@"SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
b:
table_rows:8974
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_create_time, idx_price_area_id, idx_update_time, idx_department_id, goods_store_price_area]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_store_price_area]
stats version:1733925753705591
dynamic sampling level:0
c:
table_rows:820
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, uk_price_area_no, idx_update_time, goods_price_area]
pruned_index_name:[idx_create_time, uk_price_area_no, idx_update_time]
stats version:1733493608387573
dynamic sampling level:0
a:
table_rows:85293306
physical_range_rows:158
logical_range_rows:158
index_back_rows:158
output_rows:157
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
goods_area_price:
table_rows:85293306
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
goods_area_price:
table_rows:85293306
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
goods_area_price:
table_rows:85293306
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
goods_area_price:
table_rows:85293306
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
goods_area_price:
table_rows:85293306
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_price_area_id_goods, idx_update_time, goods_area_price]
pruned_index_name:[idx_create_time, idx_update_time]
unstable_index_name:[goods_area_price]
stats version:1733925749545388
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property









SQL: select distinct r.sku_code from gsc_product_region_property_relation r
where region_code = '180303'
and r.is_deleted = 0
and r.sku_code in ( '1030674', '1236490', '1223006', '2282246', '1018490', '1033370' )
and r.property_code = '30044'
and r.property_value_code = '1'
查看格式化信息
=========================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------
|0 |MERGE DISTINCT | |1 |990 |
|1 |└─TABLE RANGE SCAN|r(idx_sku_code_region_code)|1 |990 |
=========================================================================
Outputs & filters:
-------------------------------------
0 - output([r.sku_code(0x7f575ac26b70)]), filter(nil), rowset=16
distinct([r.sku_code(0x7f575ac26b70)])
1 - output([r.sku_code(0x7f575ac26b70)]), filter([r.property_code(0x7f575ac2dea0) = '30044'(0x7f575ac2d750)], [r.property_value_code(0x7f575ac2f100) =
'1'(0x7f575ac2e9b0)], [r.is_deleted(0x7f575ac244d0) = 0(0x7f575ac23d80)]), rowset=16
access([r.id(0x7f575ac35fa0)], [r.region_code(0x7f575ac23270)], [r.is_deleted(0x7f575ac244d0)], [r.sku_code(0x7f575ac26b70)], [r.property_code(0x7f575ac2dea0)],
[r.property_value_code(0x7f575ac2f100)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([r.sku_code(0x7f575ac26b70)], [r.region_code(0x7f575ac23270)], [r.id(0x7f575ac35fa0)]), range(1030674,180303,MIN ; 1030674,180303,MAX),
(1236490,180303,MIN ; 1236490,180303,MAX), (1223006,180303,MIN ; 1223006,180303,MAX), (2282246,180303,MIN ; 2282246,180303,MAX), (1018490,180303,MIN ; 1018490,
180303,MAX), (1033370,180303,MIN ; 1033370,180303,MAX),
range_cond([r.region_code(0x7f575ac23270) = '180303'(0x7f575ac22b20)], [r.sku_code(0x7f575ac26b70) IN ('1030674', '1236490', '1223006', '2282246',
'1018490', '1033370')(0x7f575ac4f380)(0x7f575ac24a60)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
INDEX(@"SEL$1" "r"@"SEL$1" "idx_sku_code_region_code")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
r:
table_rows:2308459161
physical_range_rows:201
logical_range_rows:201
index_back_rows:201
output_rows:0
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_sku_code_region_code, idx_create_time, region_property_relation_update_time_index, pc_rc_pvc, gsc_product_region_property_relation]
pruned_index_name:[idx_create_time, region_property_relation_update_time_index]
unstable_index_name:[gsc_product_region_property_relation]
stats version:1727104396281463
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property




select distinct
r.sku_code
from
gsc_product_region_property_relation r
where
region_code='180303'
and r.is_deleted=0 and
r.sku_code in ('1030674', '1236490','1223006' ,'2282246','1018490','1033370')
and r.property_code ='30044'
and r.property_value_code ='1'

select distinct
r.sku_code as goodsNo,
r.region_code,
r.property_code,
r.property_value_code,
r.text_value
from
gsc_product_region_property_relation r
where
region_code = '101604'
and r.is_deleted = 0
and r.sku_code in ('8102028', '8102366', '8105012', '8213014')
and r.property_code = '49965'
and r.is_deleted = 0


SELECT id,item,location,av_cost FROM goods_cost
WHERE (location = '1016010330' AND item IN ('8305494','8402232','1148824','1045586'))

sl_pos_purchase_distribute:
SELECT id,tenant_id,req_order_no,req_time,department_id,req_type,req_status,req_total_amount,req_submit_time,req_submit_user_id,req_approve_time,req_approve_opinion,req_approve_status,req_approve_user_id,req_remark,warehouse_id,overcharge_distribute_order_no,receive_user_id,supplier_id,goods_style,distribute_style,single_purchase_flag,receive_user_phone,abnormal_receive_time,abnormal_distribute_amount,abnormal_numbers,source,send_mom_flag,receiving_address,warehouse_name,position_id,can_del_nums,can_del_update_nums,action_type,req_approve_company_user_id,req_sub_approve_status,req_company_approve_opinion,auto_category,is_deleted AS deleted,create_user_id,create_time,update_user_id,update_time FROM request_order
WHERE is_deleted=0
AND (department_id IN (392996275731451904,392996275735646208,270661978216894471,270662059057909771,429597448769064960)
AND req_type IN (2,7,1,9,11) AND req_approve_status = 3)



select
distinct r.sku_code as goodsNo,
r.location,
r.property_code,
r.property_value_code,
r.text_value
from
gsc_product_location_property_relation r
where
location = '2000015475'
and r.is_deleted = 0
and r.location_type = 1
and r.sku_code in (
'8209762',
'8207635',
'8214341',
'8306145',
'8209037',
'8208690',
'1202082',
'8210016',
'8202434',
'1103902',
'2227538',
'2208804',
'8102963',
'8110333',
'8105971',
'8104619',
'2222376',
'8101568',
'8111602',
'1140667',
'8202036',
'1160192',
'8115369',
'8202034',
'8101079',
'1273488',
'8105289',
'8202388',
'8202014',
'8210745',
'8105104',
'8104618',
'8202039',
'8104607',
'2219396',
'2212092',
'1272672',
'8119215',
'8212099',
'8202468',
'8205247',
'8202666',
'2218890',
'2233016',
'1085795',
'8202100',
'8210078',
'8202987',
'8111009',
'8202279',
'1083882',
'8105756',
'8203374',
'8107359',
'8107131',
'8110292',
'8103716',
'8105548',
'8203360',
'8202027',
'8105502',
'8101360',
'8116664',
'8104582',
'8210566',
'8210122',
'8302386',
'8125146',
'8212090',
'8218167',
'8219203',
'8302192',
'1015003',
'2208188',
'8202035',
'8117643',
'8105546',
'1116036',
'2215518',
'8202797',
'8103491',
'1266538',
'8201877',
'8102001',
'8107333',
'8105945',
'8105058',
'8104200',
'8112069',
'1018743',
'2208746',
'8103161',
'2208150',
'1011893',
'1106751',
'8219389',
'1130633',
'8118099',
'8115158',
'8111612',
'8115739',
'8102641',
'8202439',
'8202225',
'1113590',
'8117907',
'8108218',
'2206650',
'1147481',
'8118097',
'8104611',
'1150527',
'1156570',
'8202820',
'2208788',
'1222042',
'8212449',
'8112567',
'8221047',
'1203032',
'8211349',
'8218337',
'8301163',
'8216562',
'8204556',
'1266572',
'8203008',
'8306143',
'8209748',
'2215756',
'8219397',
'8119169',
'8205857',
'1048480',
'8205036',
'8201898',
'2236470',
'8118042',
'8105744',
'8202589',
'1076776',
'1259238',
'8111562',
'8117056',
'8207021',
'8117730',
'8225125',
'8201199',
'8219028',
'8205078',
'8219189',
'2208856',
'8202274',
'8101585',
'8201031',
'2232902',
'8207002',
'1144763',
'1087896',
'1094613',
'8116639',
'1114423',
'8201887',
'1267416',
'2236364',
'1094913',
'8115689',
'1114417',
'1094235',
'1271902',
'1091098',
'1142659',
'1114392',
'1091662',
'1176159',
'8115684',
'2201484',
'1100919',
'8112441',
'1152809',
'8104389',
'8109021',
'1149122',
'1142579',
'1098396',
'1098059',
'1091660',
'1165289',
'1149102',
'1145147',
'1125649',
'8111593',
'8202642',
'1092389',
'8105690',
'1161158',
'1149092',
'1105150',
'8202223',
'1152806',
'1014046',
'8107199',
'1031826',
'1037098',
'1058863',
'8105764',
'8115025',
'1079820',
'8115018',
'8116626',
'1052108',
'1014492',
'1022222',
'1024085',
'1263452',
'8103831',
'1050234',
'2218364',
'1015586',
'1079541',
'2208744',
'1031100',
'8103037',
'1148389',
'1159658',
'1139964',
'1142623',
'1135975',
'1268618',
'2208654',
'1116308',
'1139597',
'1077976',
'1105282',
'1079087',
'8108295',
'2241860',
'1024823',
'1048553',
'1032862',
'1032510',
'2200376',
'1031824',
'1098284',
'1211234',
'1174378',
'1176575',
'8117153',
'1245854',
'2209058',
'1080490',
'1211200',
'1113993',
'1185695',
'1234584',
'1164233',
'1126693',
'8117779',
'1151299',
'1127435',
'1155031',
'1162123',
'8105005',
'1156791',
'1271476',
'1199724',
'8101581',
'1217306',
'1203662',
'1066531',
'1024453',
'1182229',
'1182231',
'1182225',
'1212124',
'1211284',
'1164197',
'1218739',
'1243742',
'1210896',
'1234613',
'1223162',
'1183765',
'1204430',
'1244046',
'1176163',
'8117821',
'8107360',
'1141205',
'1099189',
'1143289',
'1159722',
'1136091',
'8108421',
'1168113',
'2232732',
'1161708',
'8110094',
'1153599',
'1143445',
'8105557',
'2206048',
'1164093',
'1097793',
'1169472',
'8108427',
'1160977',
'1141263',
'1128707',
'1270574',
'1105729',
'1101945',
'1034804',
'1137327',
'1143281',
'1141259',
'1167771',
'1151962',
'8202824',
'1079242',
'1168161',
'1142231',
'1127263',
'1111730',
'1098214',
'1018352',
'1149186',
'1126613',
'2200412',
'1211732',
'1225050',
'1188167',
'1240918',
'1186029',
'1212348',
'8209047',
'8201698',
'8207638',
'1166427',
'1211730',
'2207478',
'8105714',
'1225754',
'1169738',
'8112597',
'1198137',
'1205406',
'1212184',
'1211830',
'8115750',
'8115177',
'1225788',
'1252796',
'2208700',
'2200304',
'1180615',
'1202730',
'8225104',
'8117884',
'1252166',
'1181305',
'1211892',
'8112021',
'8212444',
'1184581',
'1224272',
'1224284',
'1169099',
'1229155',
'1215255',
'1211180',
'1204676',
'1187199',
'8218149',
'1211268',
'8101302',
'1166273',
'8228033',
'8203391',
'8202994',
'1211246',
'1182169',
'1222080',
'8218523',
'1169958',
'8202245',
'1211952',
'8225279',
'1211224',
'8225085',
'8209029',
'1174826',
'1232432',
'8218991',
'2200424',
'1223132',
'1222444',
'1187293',
'8117800',
'2236398',
'1169041',
'1232428',
'8205049',
'1230617',
'8110304',
'1173430',
'1206562',
'8101582',
'8209040',
'1231273',
'1182235',
'1030161',
'8110064',
'1251350',
'8218525',
'1259152',
'8105269',
'1029637',
'1031314',
'2207414',
'2216452',
'1087147',
'2214340',
'1071753',
'1044722',
'1032394',
'2230062',
'1017533',
'1042688',
'1079191',
'2236484',
'1029979',
'1011373',
'1023318',
'1027736',
'1045647',
'1015949',
'1084294',
'1045465',
'1052096',
'1027635',
'1071934',
'1036006',
'1011171',
'8111151',
'1018517',
'1086831',
'1079787',
'8102458',
'8117216',
'1012054',
'1044508',
'1047637',
'1033652',
'2200356',
'1035526',
'8108166',
'8107184',
'2225204',
'1019491',
'8116573',
'8105606',
'1273306',
'1259204',
'2208848',
'1253482',
'8111626',
'2209766',
'2238038',
'2200318',
'1262830',
'8102412',
'8301167',
'8218173',
'8117697',
'2200306',
'1223006',
'1250068',
'8110225',
'1249412',
'1035732',
'1265768',
'8102473',
'2230060',
'2229750',
'8101214',
'2200592',
'8115638',
'2236468',
'1249750',
'1015042',
'8104023',
'8115096',
'1037104',
'2208840',
'8203017',
'8103002',
'1274534',
'8107159',
'1251878'
)
and r.property_code in (
'50001',
'50002',
'50003',
'50010',
'50013'
)


















select a.* from distribute_box_info a
where a.pushtype is null
and a.creation_date >= '2024-11-15'
and exists (select 1 from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1)
order by a.creation_date desc limit 1000


select a.id,a.is_deleted deleted,c.goods_id,b.goods_no,b.goods_name,c.approve_no,c.producing_area,c.specifications,b.is_ephedrine ephedrine,c.is_special_medicines special_medicines,b.rx_otc_type,b.dept_id,b.groups_id,b.class_id,b.sub_class_id,b.generic_name,
gc.group_type,c.near_term_days,b.inca_goods_id,d.department_id,c.factory_name,b.is_cold_storage coldStorage,c.medium_packaging_num,c.whole_packaging_num,c.goods_in_tax,c.dosage_forms_code,c.suggest_price,c.units,a.update_time
from gsc_product_location a
join goods b on a.sku_code = b.goods_no
join goods_expand c on b.id = c.goods_id
join sl_pos_base_system.sys_department_store d on a.location = d.long_store_no
join goods_class gc on b.groups_id = gc.id
where a.location_type = ? and a.update_time = ? and a.id > ?
order by a.update_time, a.id
limit ?


绑定计划/*+BEGIN_OUTLINE_DATA
LEADING(@"SEL$7E690051" (((("sl_pos_goods"."a"@"SEL$1" "sl_pos_goods"."b"@"SEL$1") "sl_pos_goods"."c"@"SEL$1") "sl_pos_base_system"."d"@"SEL$1") "sl_pos_goods"."gc"@"SEL$1"))
USE_NL(@"SEL$7E690051" "sl_pos_goods"."gc"@"SEL$1")
USE_NL(@"SEL$7E690051" "sl_pos_base_system"."d"@"SEL$1")
USE_NL(@"SEL$7E690051" "sl_pos_goods"."c"@"SEL$1")
USE_NL(@"SEL$7E690051" "sl_pos_goods"."b"@"SEL$1")
FULL(@"SEL$7E690051" "a"@"SEL$1")
INDEX(@"SEL$7E690051" "b"@"SEL$1" "goods_goods_no_is_deleted_uindex")
USE_DAS(@"SEL$7E690051" "b"@"SEL$1") FULL(@"SEL$7E690051" "c"@"SEL$1")
USE_DAS(@"SEL$7E690051" "c"@"SEL$1") INDEX(@"SEL$7E690051" "d"@"SEL$1" "idx_long_store_no")
USE_DAS(@"SEL$7E690051" "d"@"SEL$1") FULL(@"SEL$7E690051" "gc"@"SEL$1")
USE_DAS(@"SEL$7E690051" "gc"@"SEL$1")
REPLACE_CONST(@"SEL$1")
OUTER_TO_INNER(@"SEL$E230E5BA")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA*/




SQL: select a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-11-15' and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 ) order by a.creation_date desc limit 1000
查看格式化信息
=====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------
|0 |LIMIT | |1000 |138531 |
|1 |└─NESTED-LOOP SEMI JOIN | |1000 |138529 |
|2 | ├─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|5203 |29953 |
|3 | └─SUBPLAN SCAN |VIEW1 |1 |21 |
|4 | └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |1 |21 |
=====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f7dddc3d080)], [a.item(0x7f7dddc3f510)], [a.lot(0x7f7dddc3f7f0)], [a.caseid(0x7f7dddc3fad0)], [a.qty(0x7f7dddc3fdb0)], [a.is_xf(0x7f7dddc40090)],
[a.attribute1(0x7f7dddc40370)], [a.attribute2(0x7f7dddc40650)], [a.attribute3(0x7f7dddc40930)], [a.attribute4(0x7f7dddc40c10)], [a.creation_date(0x7f7dddc24140)],
[a.created_by(0x7f7dddc40ef0)], [a.last_update_date(0x7f7dddc411d0)], [a.last_updated_by(0x7f7dddc414b0)], [a.pos_getdate(0x7f7dddc41790)], [a.mq_senddate(0x7f7dddc41a70)],
[a.id(0x7f7dddc43c60)], [a.pushtype(0x7f7dddc22ee0)]), filter(nil), rowset=256
limit(1000), offset(nil)
1 - output([a.doc_no(0x7f7dddc3d080)], [a.item(0x7f7dddc3f510)], [a.lot(0x7f7dddc3f7f0)], [a.caseid(0x7f7dddc3fad0)], [a.qty(0x7f7dddc3fdb0)], [a.is_xf(0x7f7dddc40090)],
[a.attribute1(0x7f7dddc40370)], [a.attribute2(0x7f7dddc40650)], [a.attribute3(0x7f7dddc40930)], [a.attribute4(0x7f7dddc40c10)], [a.creation_date(0x7f7dddc24140)],
[a.created_by(0x7f7dddc40ef0)], [a.last_update_date(0x7f7dddc411d0)], [a.last_updated_by(0x7f7dddc414b0)], [a.pos_getdate(0x7f7dddc41790)], [a.mq_senddate(0x7f7dddc41a70)],
[a.id(0x7f7dddc43c60)], [a.pushtype(0x7f7dddc22ee0)]), filter(nil), rowset=256
conds(nil), nl_params_([a.doc_no(0x7f7dddc3d080)(:0)]), use_batch=false
2 - output([a.id(0x7f7dddc43c60)], [a.pushtype(0x7f7dddc22ee0)], [a.creation_date(0x7f7dddc24140)], [a.doc_no(0x7f7dddc3d080)], [a.item(0x7f7dddc3f510)],
[a.lot(0x7f7dddc3f7f0)], [a.caseid(0x7f7dddc3fad0)], [a.qty(0x7f7dddc3fdb0)], [a.is_xf(0x7f7dddc40090)], [a.attribute1(0x7f7dddc40370)], [a.attribute2(0x7f7dddc40650)],
[a.attribute3(0x7f7dddc40930)], [a.attribute4(0x7f7dddc40c10)], [a.created_by(0x7f7dddc40ef0)], [a.last_update_date(0x7f7dddc411d0)], [a.last_updated_by(0x7f7dddc414b0)],
[a.pos_getdate(0x7f7dddc41790)], [a.mq_senddate(0x7f7dddc41a70)]), filter(nil), rowset=256
access([a.id(0x7f7dddc43c60)], [a.pushtype(0x7f7dddc22ee0)], [a.creation_date(0x7f7dddc24140)], [a.doc_no(0x7f7dddc3d080)], [a.item(0x7f7dddc3f510)],
[a.lot(0x7f7dddc3f7f0)], [a.caseid(0x7f7dddc3fad0)], [a.qty(0x7f7dddc3fdb0)], [a.is_xf(0x7f7dddc40090)], [a.attribute1(0x7f7dddc40370)], [a.attribute2(0x7f7dddc40650)],
[a.attribute3(0x7f7dddc40930)], [a.attribute4(0x7f7dddc40c10)], [a.created_by(0x7f7dddc40ef0)], [a.last_update_date(0x7f7dddc411d0)], [a.last_updated_by(0x7f7dddc414b0)],
[a.pos_getdate(0x7f7dddc41790)], [a.mq_senddate(0x7f7dddc41a70)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f7dddc22ee0)], [a.creation_date(0x7f7dddc24140)], [a.id(0x7f7dddc43c60)]), range(NULL,2024-11-15,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f7dddc22ee0) IS NULL(0x7f7dddc22790)], [cast(a.creation_date(0x7f7dddc24140), DATETIME(-1, -1))(0x7f7dddc246b0) >= INTERNAL_FUNCTION('2024-11-15',
114, 17)(0x7f7dddc53030)(0x7f7dddc239f0)])
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([do.tsf_no(0x7f7dddc3d600)]), filter(nil), rowset=256
access([do.tsf_no(0x7f7dddc3d600)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f7dddc3e860)], [do.is_deleted(0x7f7dddc3bda0)], [do.tsf_no(0x7f7dddc3d600)], [do.id(0x7f7dddc52550)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f7dddc3bda0) = 0(0x7f7dddc3b650)], [do.mq_push_flag(0x7f7dddc3e860) = 1(0x7f7dddc3e110)], [:0 = do.tsf_no(0x7f7dddc3d600)(0x7f714be04920)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("sl_pos_purchase_distribute"."a"@"SEL$1" "VIEW1"@"SEL$1"))
USE_NL(@"SEL$6FCAE2AA" "VIEW1"@"SEL$1")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
a:
table_rows:233399819
physical_range_rows:2081841
logical_range_rows:2012185
index_back_rows:2012185
output_rows:2012185
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1731940646429191
dynamic sampling level:0
do:
table_rows:1033827
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1732025321723642
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property



select a.* from distribute_box_info a ,(select distinct tsf_no from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1) b
where a.pushtype is null
and a.creation_date >= '2024-11-15'
and a.doc_no = b.tsf_no order by a.creation_date desc limit 1000;




SELECT
mrp.id,
mr.patient_name,
mr.mobile,
mr.id_card,
mrp.create_time,
mrp.prescription_number,
op.pos_order_id,
op.store_code,
op.store_name,
mrp.platform_code,
mrp.audit_state,
mrp.hospital,
mrp.already_use,
mr.gender,
mr.age,
mrp.department,
mrp.doctor,
mrp.auditor,
mrp.auditor_code,
mrp.formulator,
mrp.formulator_code,
mrp.checker,
mrp.checker_code,
mrp.audit_time,
mrp.use_time
FROM
order_prescription op
LEFT JOIN medical_record mr ON op.record_id = mr.id
LEFT JOIN medical_record_prescription mrp ON op.record_prescription_id = mrp.id
WHERE op.is_deleted = 0
and mr.is_deleted = 0
and mrp.is_deleted = 0
and op.store_code like concat('%','1817058390', '%')
order by mrp.create_time desc LIMIT 60


SELECT
COUNT(*)
FROM
order_prescription op
LEFT JOIN medical_record mr ON op.record_id = mr.id
LEFT JOIN medical_record_prescription mrp ON op.record_prescription_id = mrp.id
WHERE
op.is_deleted = 0
AND mr.is_deleted = 0
AND mrp.is_deleted = 0
AND op.store_code LIKE concat('%', '2000014580', '%')


SELECT
mrp.id,
mr.patient_name,
mr.mobile,
mr.id_card,
mrp.create_time,
mrp.prescription_number,
op.pos_order_id,
op.store_code,
op.store_name,
mrp.platform_code,
mrp.audit_state,
mrp.hospital,
mrp.already_use,
mr.gender,
mr.age,
mrp.department,
mrp.doctor,
mrp.auditor,
mrp.auditor_code,
mrp.formulator,
mrp.formulator_code,
mrp.checker,
mrp.checker_code,
mrp.audit_time,
mrp.use_time
FROM
order_prescription op
LEFT JOIN medical_record mr ON op.record_id = mr.id
LEFT JOIN medical_record_prescription mrp ON op.record_prescription_id = mrp.id
WHERE op.is_deleted = 0
and mr.is_deleted = 0
and mrp.is_deleted = 0

and mrp.create_time >= '2024-11-21 00:00:00'



and mrp.create_time < '2024-11-21 23:59:59'
and op.store_code like concat('%','1017100893', '%')
order by mrp.create_time desc LIMIT 60



SELECT
COUNT(*)
FROM
order_prescription op
LEFT JOIN medical_record mr ON op.record_id = mr.id
LEFT JOIN medical_record_prescription mrp ON op.record_prescription_id = mrp.id
WHERE
op.is_deleted = 0
AND mr.is_deleted = 0
AND mrp.is_deleted = 0
AND mrp.create_time >= '2024-11-21 00:00:00'
AND mrp.create_time < '2024-11-21 23:59:59'
AND op.store_code LIKE concat('%', '2000080756', '%')




select
if (
gooswl.in_out_type = 1,
gooswl.goods_qty,
- gooswl.goods_qty
) goodsQty
from
goods_out_of_stock_warehousing_log gooswl
join goods g on g.id = gooswl.goods_id
where
gooswl.is_deleted = 0
AND g.goods_status = 0
and gooswl.tenant_id = 1
and gooswl.inventory_owner_id = 270661978325946369
and gooswl.create_time >= '2024-05-01 00:00:00'
and gooswl.create_time <= '2024-11-01 00:00:00'

SELECT COUNT(*) FROM goods_out_of_stock_warehousing_log gooswl
JOIN goods g ON g.id = gooswl.goods_id
JOIN goods_expand ge ON g.id = ge.goods_id
WHERE gooswl.is_deleted = 0 AND g.goods_status = 0 AND gooswl.tenant_id = 1
AND gooswl.inventory_owner_id = 270661909119930377
AND gooswl.create_time >= '2024-07-22 00:00:00' AND gooswl.create_time <= '2024-11-22 00:00:00'


SQL: select a.* from distribute_box_info a
where a.pushtype is null and a.creation_date >= '2024-11-19'
and exists (select 1 from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1)
order by a.creation_date desc
查看格式化信息
====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------
|0 |SORT | |443700 |13012260 |
|1 |└─HASH RIGHT SEMI JOIN | |443700 |12665120 |
|2 | ├─SUBPLAN SCAN |VIEW1 |322125 |25251 |
|3 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |322125 |24399 |
|4 | └─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|2775931 |11753420 |
====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f65b603cdb0)], [a.item(0x7f65b603f240)], [a.lot(0x7f65b603f520)], [a.caseid(0x7f65b603f800)], [a.qty(0x7f65b603fae0)], [a.is_xf(0x7f65b603fdc0)],
[a.attribute1(0x7f65b60400a0)], [a.attribute2(0x7f65b6040380)], [a.attribute3(0x7f65b6040660)], [a.attribute4(0x7f65b6040940)], [a.creation_date(0x7f65b6023e70)],
[a.created_by(0x7f65b6040c20)], [a.last_update_date(0x7f65b6040f00)], [a.last_updated_by(0x7f65b60411e0)], [a.pos_getdate(0x7f65b60414c0)], [a.mq_senddate(0x7f65b60417a0)],
[a.id(0x7f65b6043990)], [a.pushtype(0x7f65b6022c10)]), filter(nil), rowset=256
sort_keys([a.creation_date(0x7f65b6023e70), DESC])
1 - output([a.creation_date(0x7f65b6023e70)], [a.doc_no(0x7f65b603cdb0)], [a.item(0x7f65b603f240)], [a.lot(0x7f65b603f520)], [a.caseid(0x7f65b603f800)],
[a.qty(0x7f65b603fae0)], [a.is_xf(0x7f65b603fdc0)], [a.attribute1(0x7f65b60400a0)], [a.attribute2(0x7f65b6040380)], [a.attribute3(0x7f65b6040660)], [a.attribute4(0x7f65b6040940)],
[a.created_by(0x7f65b6040c20)], [a.last_update_date(0x7f65b6040f00)], [a.last_updated_by(0x7f65b60411e0)], [a.pos_getdate(0x7f65b60414c0)], [a.mq_senddate(0x7f65b60417a0)],
[a.id(0x7f65b6043990)], [a.pushtype(0x7f65b6022c10)]), filter(nil), rowset=256
equal_conds([a.doc_no(0x7f65b603cdb0) = VIEW1.do.tsf_no(0x7f65b6054240)(0x7f65b6054520)]), other_conds(nil)
2 - output([VIEW1.do.tsf_no(0x7f65b6054240)]), filter(nil), rowset=256
access([VIEW1.do.tsf_no(0x7f65b6054240)])
3 - output([do.tsf_no(0x7f65b603d330)]), filter(nil), rowset=256
access([do.tsf_no(0x7f65b603d330)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f65b603e590)], [do.is_deleted(0x7f65b603bad0)], [do.tsf_no(0x7f65b603d330)], [do.id(0x7f65b6051ff0)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f65b603bad0) = 0(0x7f65b603b380)], [do.mq_push_flag(0x7f65b603e590) = 1(0x7f65b603de40)])
4 - output([a.id(0x7f65b6043990)], [a.pushtype(0x7f65b6022c10)], [a.creation_date(0x7f65b6023e70)], [a.doc_no(0x7f65b603cdb0)], [a.item(0x7f65b603f240)],
[a.lot(0x7f65b603f520)], [a.caseid(0x7f65b603f800)], [a.qty(0x7f65b603fae0)], [a.is_xf(0x7f65b603fdc0)], [a.attribute1(0x7f65b60400a0)], [a.attribute2(0x7f65b6040380)],
[a.attribute3(0x7f65b6040660)], [a.attribute4(0x7f65b6040940)], [a.created_by(0x7f65b6040c20)], [a.last_update_date(0x7f65b6040f00)], [a.last_updated_by(0x7f65b60411e0)],
[a.pos_getdate(0x7f65b60414c0)], [a.mq_senddate(0x7f65b60417a0)]), filter(nil), rowset=256
access([a.id(0x7f65b6043990)], [a.pushtype(0x7f65b6022c10)], [a.creation_date(0x7f65b6023e70)], [a.doc_no(0x7f65b603cdb0)], [a.item(0x7f65b603f240)],
[a.lot(0x7f65b603f520)], [a.caseid(0x7f65b603f800)], [a.qty(0x7f65b603fae0)], [a.is_xf(0x7f65b603fdc0)], [a.attribute1(0x7f65b60400a0)], [a.attribute2(0x7f65b6040380)],
[a.attribute3(0x7f65b6040660)], [a.attribute4(0x7f65b6040940)], [a.created_by(0x7f65b6040c20)], [a.last_update_date(0x7f65b6040f00)], [a.last_updated_by(0x7f65b60411e0)],
[a.pos_getdate(0x7f65b60414c0)], [a.mq_senddate(0x7f65b60417a0)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f65b6022c10)], [a.creation_date(0x7f65b6023e70)], [a.id(0x7f65b6043990)]), range(NULL,2024-11-19,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f65b6022c10) IS NULL(0x7f65b60224c0)], [cast(a.creation_date(0x7f65b6023e70), DATETIME(-1, -1))(0x7f65b60243e0) >= INTERNAL_FUNCTION('2024-11-19',
114, 17)(0x7f65b6052ad0)(0x7f65b6023720)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("VIEW1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_HASH(@"SEL$6FCAE2AA" "sl_pos_purchase_distribute"."a"@"SEL$1")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
do:
table_rows:1095343
physical_range_rows:322125
logical_range_rows:322125
index_back_rows:0
output_rows:322125
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1732543896328447
dynamic sampling level:0
a:
table_rows:233399819
physical_range_rows:2833361
logical_range_rows:2775931
index_back_rows:2775931
output_rows:2775931
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1731940646429191
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property





SQL: select a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-11-19' and exists (select 1 from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1) order by a.creation_date desc limit 1000
查看格式化信息
=====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------
|0 |LIMIT | |1000 |166562 |
|1 |└─NESTED-LOOP SEMI JOIN | |1000 |166559 |
|2 | ├─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|6257 |35991 |
|3 | └─SUBPLAN SCAN |VIEW1 |1 |21 |
|4 | └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |1 |21 |
=====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f6be203cfb0)], [a.item(0x7f6be203f440)], [a.lot(0x7f6be203f720)], [a.caseid(0x7f6be203fa00)], [a.qty(0x7f6be203fce0)], [a.is_xf(0x7f6be203ffc0)],
[a.attribute1(0x7f6be20402a0)], [a.attribute2(0x7f6be2040580)], [a.attribute3(0x7f6be2040860)], [a.attribute4(0x7f6be2040b40)], [a.creation_date(0x7f6be2024070)],
[a.created_by(0x7f6be2040e20)], [a.last_update_date(0x7f6be2041100)], [a.last_updated_by(0x7f6be20413e0)], [a.pos_getdate(0x7f6be20416c0)], [a.mq_senddate(0x7f6be20419a0)],
[a.id(0x7f6be2043b90)], [a.pushtype(0x7f6be2022e10)]), filter(nil), rowset=256
limit(1000), offset(nil)
1 - output([a.doc_no(0x7f6be203cfb0)], [a.item(0x7f6be203f440)], [a.lot(0x7f6be203f720)], [a.caseid(0x7f6be203fa00)], [a.qty(0x7f6be203fce0)], [a.is_xf(0x7f6be203ffc0)],
[a.attribute1(0x7f6be20402a0)], [a.attribute2(0x7f6be2040580)], [a.attribute3(0x7f6be2040860)], [a.attribute4(0x7f6be2040b40)], [a.creation_date(0x7f6be2024070)],
[a.created_by(0x7f6be2040e20)], [a.last_update_date(0x7f6be2041100)], [a.last_updated_by(0x7f6be20413e0)], [a.pos_getdate(0x7f6be20416c0)], [a.mq_senddate(0x7f6be20419a0)],
[a.id(0x7f6be2043b90)], [a.pushtype(0x7f6be2022e10)]), filter(nil), rowset=256
conds(nil), nl_params_([a.doc_no(0x7f6be203cfb0)(:0)]), use_batch=false
2 - output([a.id(0x7f6be2043b90)], [a.pushtype(0x7f6be2022e10)], [a.creation_date(0x7f6be2024070)], [a.doc_no(0x7f6be203cfb0)], [a.item(0x7f6be203f440)],
[a.lot(0x7f6be203f720)], [a.caseid(0x7f6be203fa00)], [a.qty(0x7f6be203fce0)], [a.is_xf(0x7f6be203ffc0)], [a.attribute1(0x7f6be20402a0)], [a.attribute2(0x7f6be2040580)],
[a.attribute3(0x7f6be2040860)], [a.attribute4(0x7f6be2040b40)], [a.created_by(0x7f6be2040e20)], [a.last_update_date(0x7f6be2041100)], [a.last_updated_by(0x7f6be20413e0)],
[a.pos_getdate(0x7f6be20416c0)], [a.mq_senddate(0x7f6be20419a0)]), filter(nil), rowset=256
access([a.id(0x7f6be2043b90)], [a.pushtype(0x7f6be2022e10)], [a.creation_date(0x7f6be2024070)], [a.doc_no(0x7f6be203cfb0)], [a.item(0x7f6be203f440)],
[a.lot(0x7f6be203f720)], [a.caseid(0x7f6be203fa00)], [a.qty(0x7f6be203fce0)], [a.is_xf(0x7f6be203ffc0)], [a.attribute1(0x7f6be20402a0)], [a.attribute2(0x7f6be2040580)],
[a.attribute3(0x7f6be2040860)], [a.attribute4(0x7f6be2040b40)], [a.created_by(0x7f6be2040e20)], [a.last_update_date(0x7f6be2041100)], [a.last_updated_by(0x7f6be20413e0)],
[a.pos_getdate(0x7f6be20416c0)], [a.mq_senddate(0x7f6be20419a0)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f6be2022e10)], [a.creation_date(0x7f6be2024070)], [a.id(0x7f6be2043b90)]), range(NULL,2024-11-19,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f6be2022e10) IS NULL(0x7f6be20226c0)], [cast(a.creation_date(0x7f6be2024070), DATETIME(-1, -1))(0x7f6be20245e0) >= INTERNAL_FUNCTION('2024-11-19',
114, 17)(0x7f6be2052f60)(0x7f6be2023920)])
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([do.tsf_no(0x7f6be203d530)]), filter(nil), rowset=256
access([do.tsf_no(0x7f6be203d530)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f6be203e790)], [do.is_deleted(0x7f6be203bcd0)], [do.tsf_no(0x7f6be203d530)], [do.id(0x7f6be2052480)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f6be203bcd0) = 0(0x7f6be203b580)], [do.mq_push_flag(0x7f6be203e790) = 1(0x7f6be203e040)], [:0 = do.tsf_no(0x7f6be203d530)(0x7f5ef2004920)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("sl_pos_purchase_distribute"."a"@"SEL$1" "VIEW1"@"SEL$1"))
USE_NL(@"SEL$6FCAE2AA" "VIEW1"@"SEL$1")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
a:
table_rows:233399819
physical_range_rows:2833361
logical_range_rows:2775931
index_back_rows:2775931
output_rows:2775931
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1731940646429191
dynamic sampling level:0
do:
table_rows:1095343
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1732543896328447
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property



select
if(
gooswl.in_out_type = 1,
gooswl.goods_qty,
- gooswl.goods_qty
) goodsQty
from
goods_out_of_stock_warehousing_log gooswl
join goods g on g.id = gooswl.goods_id
where
gooswl.is_deleted = 0
AND g.goods_status = 0
and gooswl.tenant_id = 1
and gooswl.inventory_owner_id = 270661884528726027
and gooswl.create_time >= '2024-06-12 00:00:00'
and gooswl.create_time <= '2024-10-12 23:59:59'

SQL: select if( gooswl.in_out_type = 1, gooswl.goods_qty, - gooswl.goods_qty ) goodsQty from goods_out_of_stock_warehousing_log gooswl join goods g on g.id = gooswl.goods_id where gooswl.is_deleted = 0 AND g.goods_status = 0 and gooswl.tenant_id = 1 and gooswl.inventory_owner_id = 270661884528726027 and gooswl.create_time >= '2024-06-12 00:00:00' and gooswl.create_time <= '2024-10-12 23:59:59'
查看格式化信息
=================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-----------------------------------------------------------------
|0 |MERGE JOIN | |9964 |180593 |
|1 |├─TABLE FULL SCAN |g |211460 |21115 |
|2 |└─SORT | |9957 |141069 |
|3 | └─TABLE RANGE SCAN|gooswl(ioi_id_ut)|9957 |136773 |
=================================================================
Outputs & filters:
-------------------------------------
0 - output([CASE WHEN gooswl.in_out_type(0x7f6fd722f210) = 1(0x7f6fd722dd40) THEN gooswl.goods_qty(0x7f6fd722f500) ELSE (T_OP_NEG, gooswl.goods_qty(0x7f6fd722f500))(0x7f6fd722ea40)
END(0x7f6fd722cfa0)]), filter(nil), rowset=256
equal_conds([g.id(0x7f6fd7224530) = gooswl.goods_id(0x7f6fd7224820)(0x7f6fd7223de0)]), other_conds(nil)
merge_directions([ASC])
1 - output([g.id(0x7f6fd7224530)]), filter([g.goods_status(0x7f6fd7226ce0) = 0(0x7f6fd7226590)]), rowset=256
access([g.id(0x7f6fd7224530)], [g.goods_status(0x7f6fd7226ce0)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([g.id(0x7f6fd7224530)]), range(MIN ; MAX)always true
2 - output([gooswl.goods_id(0x7f6fd7224820)], [gooswl.in_out_type(0x7f6fd722f210)], [gooswl.goods_qty(0x7f6fd722f500)]), filter(nil), rowset=256
sort_keys([gooswl.goods_id(0x7f6fd7224820), ASC])
3 - output([gooswl.goods_id(0x7f6fd7224820)], [gooswl.in_out_type(0x7f6fd722f210)], [gooswl.goods_qty(0x7f6fd722f500)]), filter([gooswl.create_time(0x7f6fd722a400)
>= INTERNAL_FUNCTION('2024-06-12 00:00:00', 114, 17)(0x7f6fd7231130)(0x7f6fd7229cb0)], [gooswl.tenant_id(0x7f6fd7227f40) = 1(0x7f6fd72277f0)], [gooswl.create_time(0x7f6fd722a400)
<= INTERNAL_FUNCTION('2024-10-12 23:59:59', 112, 17)(0x7f6fd7231d60)(0x7f6fd722ba60)]), rowset=256
access([gooswl.id(0x7f6fd7230ab0)], [gooswl.goods_id(0x7f6fd7224820)], [gooswl.tenant_id(0x7f6fd7227f40)], [gooswl.create_time(0x7f6fd722a400)], [gooswl.in_out_type(0x7f6fd722f210)],
[gooswl.goods_qty(0x7f6fd722f500)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([gooswl.inventory_owner_id(0x7f6fd72291a0)], [gooswl.is_deleted(0x7f6fd7225a80)], [gooswl.update_time(0x7f6fd72aba90)], [gooswl.id(0x7f6fd7230ab0)]),
range(270661884528726027,0,MIN,MIN ; 270661884528726027,0,MAX,MAX),
range_cond([gooswl.is_deleted(0x7f6fd7225a80) = 0(0x7f6fd7225330)], [gooswl.inventory_owner_id(0x7f6fd72291a0) = 270661884528726027(0x7f6fd7228a50)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$C6D21C0F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$C6D21C0F" ("sl_pos_goods"."g"@"SEL$1" "sl_pos_goods"."gooswl"@"SEL$1"))
USE_MERGE(@"SEL$C6D21C0F" "sl_pos_goods"."gooswl"@"SEL$1")
FULL(@"SEL$C6D21C0F" "g"@"SEL$1")
INDEX(@"SEL$C6D21C0F" "gooswl"@"SEL$1" "ioi_id_ut")
OUTER_TO_INNER(@"SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
g:
table_rows:211306
physical_range_rows:211524
logical_range_rows:211460
index_back_rows:0
output_rows:211460
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_goods_class_id, idx_create_time, goods_goods_no_is_deleted_uindex, idx_update_time, goods]
pruned_index_name:[idx_goods_class_id, idx_create_time, goods_goods_no_is_deleted_uindex, idx_update_time]
stats version:1728484873397750
dynamic sampling level:0
gooswl:
table_rows:104310315
physical_range_rows:30162
logical_range_rows:29981
index_back_rows:29981
output_rows:9956
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_dept_goods, idx_create_time, idx_source_no, idx_update_time, idx_document_no, inventory_owner_id, ioi_id_ut, goods_out_of_stock_warehousing_log]
pruned_index_name:[idx_source_no, idx_update_time, idx_document_no, inventory_owner_id]
stats version:1728665062375310
dynamic sampling level:0
Plan Type:
LOCAL
Note:

Degree of Parallelisim is 1 because of table property




SQL: select t.goods_id, t.id as reqOrderDtlId, a.req_order_no as reqOrderNo, t.req_goods_qty, a.id as reqOrderId, a.req_approve_status as approveStatus, c.goods_no, t.update_time
from request_order_detail t, request_order a, gsc_update_batch c
where t.req_order_id = a.id
and t.goods_id = c.goods_id
and t.auto_req_no = c.repl_no
and t.auto_req_no = '2024101100009171'
and t.is_deleted = 0
and a.is_deleted = 0
and c.is_deleted = 0
查看格式化信息
======================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP JOIN | |162 |916312 |
|1 |├─NESTED-LOOP JOIN | |162 |913348 |
|2 |│ ├─TABLE RANGE SCAN |c(replno) |251 |1110 |
|3 |│ └─DISTRIBUTED TABLE RANGE SCAN|t(goods_request_order_detail_goods_id_IDX)|1 |3634 |
|4 |└─DISTRIBUTED TABLE GET |a |1 |18 |
======================================================================================================


select t.goods_id,
t.id as reqOrderDtlId,
a.req_order_no as reqOrderNo,
t.req_goods_qty,
a.id as reqOrderId,
a.req_approve_status as approveStatus,
c.goods_no,
t.update_time
from request_order_detail t, request_order a, gsc_update_batch c
where t.req_order_id = a.id and t.goods_id = c.goods_id and t.auto_req_no = c.repl_no
and t.auto_req_no = '2024101100009171' and t.is_deleted = 0 and a.is_deleted = 0 and c.is_deleted = 0


show index from request_order_detail


select /*+ parallel(4) */count(*),count(distinct goods_id) from request_order_detail;

alter table request_order_detail add index idx_aro_gi(auto_req_no,goods_id) parallel 5;



SQL: select /*+ use_nl(c t) */t.goods_id, t.id as reqOrderDtlId, a.req_order_no as reqOrderNo, t.req_goods_qty, a.id as reqOrderId, a.req_approve_status as approveStatus, c.goods_no, t.update_time from request_order_detail t, request_order a, gsc_update_batch c where t.req_order_id = a.id and t.goods_id = c.goods_id and t.auto_req_no = c.repl_no and t.auto_req_no = '2024101100009171' and t.is_deleted = 0 and a.is_deleted = 0 and c.is_deleted = 0
查看格式化信息
=========================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------
|0 |NESTED-LOOP JOIN | |256 |12744 |
|1 |├─NESTED-LOOP JOIN | |256 |8053 |
|2 |│ ├─TABLE RANGE SCAN |c(replno) |251 |1110 |
|3 |│ └─DISTRIBUTED TABLE RANGE SCAN|t(idx_aro_gi)|1 |27 |
|4 |└─DISTRIBUTED TABLE GET |a |1 |18 |
=========================================================================


SQL: select t.goods_id, t.id as reqOrderDtlId, a.req_order_no as reqOrderNo, t.req_goods_qty, a.id as reqOrderId, a.req_approve_status as approveStatus, c.goods_no, t.update_time from request_order_detail t, request_order a, gsc_update_batch c where t.req_order_id = a.id and t.goods_id = c.goods_id and t.auto_req_no = c.repl_no and t.auto_req_no = '2024101100009171' and t.is_deleted = 0 and a.is_deleted = 0 and c.is_deleted = 0
查看格式化信息
================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
----------------------------------------------------------------
|0 |NESTED-LOOP JOIN | |256 |9970 |
|1 |├─HASH JOIN | |256 |5279 |
|2 |│ ├─TABLE RANGE SCAN |c(replno) |251 |1110 |
|3 |│ └─TABLE RANGE SCAN |t(idx_aro_gi)|776 |4010 |
|4 |└─DISTRIBUTED TABLE GET|a |1 |18 |

================================================================





sl_pos_purchase_distribute
select * from distribute_box_info a where pushtype is null

and exists (select 1 from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1) order by creation_date desc limit 1000

SELECT
b.dict_code,b.dict_msg,b.dict_type_name
FROM
sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = 'SL_STORE' AND a.is_deleted = 0 AND b.is_deleted = 0 AND b.tenant_id IN
(
0
,
0
)



SELECT
b.dict_code,b.dict_msg,b.dict_type_name
FROM
sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = 'SL_STORE' AND a.is_deleted = 0 AND b.is_deleted = 0 AND b.tenant_id IN
(
0
,
0
)



SELECT
opd.order_sales_detail_id,
opd.is_cold_chain as coldChain,
opd.sum,
mrpd.record_prescription_id as medicalRecordPrescriptionId,
mrpd.goods_no,
mrpd.goods_name,
mrpd.specification,
mrpd.factory_name,
mrpd.number,
mrpd.unit,
mrpd.use_method,
mrpd.frequency,
mrpd.take_amount,
mrpd.take_unit
FROM
medical_record_prescription_detail mrpd
LEFT JOIN (
SELECT
order_sales_detail_id,
is_cold_chain,
sum,
prescription_detail_id
FROM
order_prescription_detail
WHERE
order_prescription_id IN (
410140671357902848
)
) opd ON mrpd.id = opd.prescription_detail_id
WHERE
mrpd.record_prescription_id in ( 410140671328542720 )

SQL: SELECT opd.order_sales_detail_id, opd.is_cold_chain as coldChain, opd.sum, mrpd.record_prescription_id as medicalRecordPrescriptionId, mrpd.goods_no, mrpd.goods_name, mrpd.specification, mrpd.factory_name, mrpd.number, mrpd.unit, mrpd.use_method, mrpd.frequency, mrpd.take_amount, mrpd.take_unit FROM medical_record_prescription_detail mrpd LEFT JOIN ( SELECT order_sales_detail_id, is_cold_chain, sum, prescription_detail_id FROM order_prescription_detail WHERE order_prescription_id IN ( 410140671357902848 ) ) opd ON mrpd.id = opd.prescription_detail_id WHERE mrpd.record_prescription_id in ( 410140671328542720 )
查看格式化信息
======================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------------------------
|0 |HASH RIGHT OUTER JOIN | |3 |404337 |
|1 |├─TABLE RANGE SCAN |order_prescription_detail(idx_order_prescription_id)|2 |13 |
|2 |└─TABLE FULL SCAN |mrpd |3 |404324 |
======================================================================================================
Outputs & filters:
-------------------------------------
0 - output([order_prescription_detail.order_sales_detail_id(0x7fad42a3a640)], [order_prescription_detail.is_cold_chain(0x7fad42a3ac40)], [order_prescription_detail.sum(0x7fad42a3b240)],
[mrpd.record_prescription_id(0x7fad42a3e880)], [mrpd.goods_no(0x7fad42a40630)], [mrpd.goods_name(0x7fad42a40c30)], [mrpd.specification(0x7fad42a41230)],
[mrpd.factory_name(0x7fad42a41830)], [mrpd.number(0x7fad42a41e30)], [mrpd.unit(0x7fad42a42430)], [mrpd.use_method(0x7fad42a42a30)], [mrpd.frequency(0x7fad42a43030)],
[mrpd.take_amount(0x7fad42a43630)], [mrpd.take_unit(0x7fad42a43c30)]), filter(nil), rowset=16
equal_conds([mrpd.id(0x7fad42a3cc30) = order_prescription_detail.prescription_detail_id(0x7fad42a3b840)(0x7fad42a3c4e0)]), other_conds(nil)
1 - output([order_prescription_detail.order_sales_detail_id(0x7fad42a3a640)], [order_prescription_detail.is_cold_chain(0x7fad42a3ac40)], [order_prescription_detail.sum(0x7fad42a3b240)],
[order_prescription_detail.prescription_detail_id(0x7fad42a3b840)]), filter(nil), rowset=16
access([order_prescription_detail.id(0x7fad42a443b0)], [order_prescription_detail.order_sales_detail_id(0x7fad42a3a640)], [order_prescription_detail.is_cold_chain(0x7fad42a3ac40)],
[order_prescription_detail.sum(0x7fad42a3b240)], [order_prescription_detail.prescription_detail_id(0x7fad42a3b840)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([order_prescription_detail.order_prescription_id(0x7fad42a39db0)], [order_prescription_detail.id(0x7fad42a443b0)]), range(410140671357902848,
MIN ; 410140671357902848,MAX),
range_cond([order_prescription_detail.order_prescription_id(0x7fad42a39db0) = 410140671357902848(0x7fad42a389e0)])
2 - output([mrpd.id(0x7fad42a3cc30)], [mrpd.record_prescription_id(0x7fad42a3e880)], [mrpd.goods_no(0x7fad42a40630)], [mrpd.goods_name(0x7fad42a40c30)],
[mrpd.specification(0x7fad42a41230)], [mrpd.factory_name(0x7fad42a41830)], [mrpd.number(0x7fad42a41e30)], [mrpd.unit(0x7fad42a42430)], [mrpd.use_method(0x7fad42a42a30)],
[mrpd.frequency(0x7fad42a43030)], [mrpd.take_amount(0x7fad42a43630)], [mrpd.take_unit(0x7fad42a43c30)]), filter([mrpd.record_prescription_id(0x7fad42a3e880)
= 410140671328542720(0x7fad42a3d4b0)]), rowset=16
access([mrpd.id(0x7fad42a3cc30)], [mrpd.record_prescription_id(0x7fad42a3e880)], [mrpd.goods_no(0x7fad42a40630)], [mrpd.goods_name(0x7fad42a40c30)],
[mrpd.specification(0x7fad42a41230)], [mrpd.factory_name(0x7fad42a41830)], [mrpd.number(0x7fad42a41e30)], [mrpd.unit(0x7fad42a42430)], [mrpd.use_method(0x7fad42a42a30)],
[mrpd.frequency(0x7fad42a43030)], [mrpd.take_amount(0x7fad42a43630)], [mrpd.take_unit(0x7fad42a43c30)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([mrpd.id(0x7fad42a3cc30)]), range(MIN ; MAX)always true
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$CFEA49FE
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$CFEA49FE" ("sl_pos_prescription"."order_prescription_detail"@"SEL$2" "sl_pos_prescription"."mrpd"@"SEL$1"))
USE_HASH(@"SEL$CFEA49FE" "sl_pos_prescription"."mrpd"@"SEL$1")
INDEX(@"SEL$CFEA49FE" "sl_pos_prescription"."order_prescription_detail"@"SEL$2" "idx_order_prescription_id")
FULL(@"SEL$CFEA49FE" "mrpd"@"SEL$1")
MERGE(@"SEL$2" > "SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
order_prescription_detail:
table_rows:8098516
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:2
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_order_prescription_id, order_prescription_detail]
unstable_index_name:[order_prescription_detail]
stats version:1728165641907616
dynamic sampling level:0
mrpd:
table_rows:8098526
physical_range_rows:8760742
logical_range_rows:8756829
index_back_rows:0
output_rows:2
table_dop:1
dop_method:Table DOP
avaiable_index_name:[medical_record_prescription_detail]
stats version:1728165621476208
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property




alter table medical_record_prescription_detail add index idx_record_prescription_id(record_prescription_id) parallel 4;







SQL: select * from distribute_box_info a where pushtype is null
and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 )
order by creation_date desc limit 1000
查看格式化信息
=====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------
|0 |LIMIT | |1000 |482173 |
|1 |└─NESTED-LOOP SEMI JOIN | |1000 |482170 |
|2 | ├─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|18157 |103282 |
|3 | └─SUBPLAN SCAN |VIEW1 |1 |21 |
|4 | └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |1 |21 |
=====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7fa9c00399b0)], [a.item(0x7fa9c003be30)], [a.lot(0x7fa9c003c110)], [a.caseid(0x7fa9c003c3f0)], [a.qty(0x7fa9c003c6d0)], [a.is_xf(0x7fa9c003c9b0)],
[a.attribute1(0x7fa9c003cc90)], [a.attribute2(0x7fa9c003cf70)], [a.attribute3(0x7fa9c003d250)], [a.attribute4(0x7fa9c003d530)], [a.creation_date(0x7fa9c003d810)],
[a.created_by(0x7fa9c003daf0)], [a.last_update_date(0x7fa9c003ddd0)], [a.last_updated_by(0x7fa9c003e0b0)], [a.pos_getdate(0x7fa9c003e390)], [a.mq_senddate(0x7fa9c003e670)],
[a.id(0x7fa9c0040860)], [a.pushtype(0x7fa9c0022110)]), filter(nil), rowset=256
limit(1000), offset(nil)
1 - output([a.doc_no(0x7fa9c00399b0)], [a.item(0x7fa9c003be30)], [a.lot(0x7fa9c003c110)], [a.caseid(0x7fa9c003c3f0)], [a.qty(0x7fa9c003c6d0)], [a.is_xf(0x7fa9c003c9b0)],
[a.attribute1(0x7fa9c003cc90)], [a.attribute2(0x7fa9c003cf70)], [a.attribute3(0x7fa9c003d250)], [a.attribute4(0x7fa9c003d530)], [a.creation_date(0x7fa9c003d810)],
[a.created_by(0x7fa9c003daf0)], [a.last_update_date(0x7fa9c003ddd0)], [a.last_updated_by(0x7fa9c003e0b0)], [a.pos_getdate(0x7fa9c003e390)], [a.mq_senddate(0x7fa9c003e670)],
[a.id(0x7fa9c0040860)], [a.pushtype(0x7fa9c0022110)]), filter(nil), rowset=256
conds(nil), nl_params_([a.doc_no(0x7fa9c00399b0)(:0)]), use_batch=false
2 - output([a.id(0x7fa9c0040860)], [a.pushtype(0x7fa9c0022110)], [a.doc_no(0x7fa9c00399b0)], [a.item(0x7fa9c003be30)], [a.lot(0x7fa9c003c110)], [a.caseid(0x7fa9c003c3f0)],
[a.qty(0x7fa9c003c6d0)], [a.is_xf(0x7fa9c003c9b0)], [a.attribute1(0x7fa9c003cc90)], [a.attribute2(0x7fa9c003cf70)], [a.attribute3(0x7fa9c003d250)], [a.attribute4(0x7fa9c003d530)],
[a.creation_date(0x7fa9c003d810)], [a.created_by(0x7fa9c003daf0)], [a.last_update_date(0x7fa9c003ddd0)], [a.last_updated_by(0x7fa9c003e0b0)], [a.pos_getdate(0x7fa9c003e390)],
[a.mq_senddate(0x7fa9c003e670)]), filter(nil), rowset=256
access([a.id(0x7fa9c0040860)], [a.pushtype(0x7fa9c0022110)], [a.doc_no(0x7fa9c00399b0)], [a.item(0x7fa9c003be30)], [a.lot(0x7fa9c003c110)], [a.caseid(0x7fa9c003c3f0)],
[a.qty(0x7fa9c003c6d0)], [a.is_xf(0x7fa9c003c9b0)], [a.attribute1(0x7fa9c003cc90)], [a.attribute2(0x7fa9c003cf70)], [a.attribute3(0x7fa9c003d250)], [a.attribute4(0x7fa9c003d530)],
[a.creation_date(0x7fa9c003d810)], [a.created_by(0x7fa9c003daf0)], [a.last_update_date(0x7fa9c003ddd0)], [a.last_updated_by(0x7fa9c003e0b0)], [a.pos_getdate(0x7fa9c003e390)],
[a.mq_senddate(0x7fa9c003e670)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7fa9c0022110)], [a.creation_date(0x7fa9c003d810)], [a.id(0x7fa9c0040860)]), range(NULL,MIN,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7fa9c0022110) IS NULL(0x7fa9c00219c0)])
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([do.tsf_no(0x7fa9c0039f30)]), filter(nil), rowset=256
access([do.tsf_no(0x7fa9c0039f30)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7fa9c003b190)], [do.is_deleted(0x7fa9c00386d0)], [do.tsf_no(0x7fa9c0039f30)], [do.id(0x7fa9c004ee40)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7fa9c00386d0) = 0(0x7fa9c0037f80)], [do.mq_push_flag(0x7fa9c003b190) = 1(0x7fa9c003aa40)], [:0 = do.tsf_no(0x7fa9c0039f30)(0x7fa9c01eaa80)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("sl_pos_purchase_distribute"."a"@"SEL$1" "VIEW1"@"SEL$1"))
USE_NL(@"SEL$6FCAE2AA" "VIEW1"@"SEL$1")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
a:
table_rows:195887968
physical_range_rows:196339034
logical_range_rows:196172674
index_back_rows:196172674
output_rows:196172674
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1726841266088452
dynamic sampling level:0
do:
table_rows:652918
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1728483107608785
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property




SQL: select /*+ index(a box_info_uindex) */ * from distribute_box_info a where pushtype is null and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 ) order by creation_date desc limit 1000
查看格式化信息
===================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-----------------------------------------------------------------------------------
|0 |TOP-N SORT | |1000 |71933225 |
|1 |└─NESTED-LOOP JOIN | |10888412|70983844 |
|2 | ├─SUBPLAN SCAN |VIEW2 |193290 |17397 |
|3 | │ └─MERGE DISTINCT | |193290 |16885 |
|4 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno)|194428 |14722 |
|5 | └─DISTRIBUTED TABLE RANGE SCAN|a(box_info_uindex) |57 |365 |
===================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f9d8d8665d0)], [a.item(0x7f9d8d867150)], [a.lot(0x7f9d8d867430)], [a.caseid(0x7f9d8d867710)], [a.qty(0x7f9d8d8679f0)], [a.is_xf(0x7f9d8d867cd0)],
[a.attribute1(0x7f9d8d867fb0)], [a.attribute2(0x7f9d8d868290)], [a.attribute3(0x7f9d8d868570)], [a.attribute4(0x7f9d8d868850)], [a.creation_date(0x7f9d8d868b30)],
[a.created_by(0x7f9d8d868e10)], [a.last_update_date(0x7f9d8d8690f0)], [a.last_updated_by(0x7f9d8d8693d0)], [a.pos_getdate(0x7f9d8d8696b0)], [a.mq_senddate(0x7f9d8d86b8a0)],
[a.id(0x7f9d8d866b90)], [a.pushtype(0x7f9d8d866e70)]), filter(nil), rowset=256
sort_keys([a.creation_date(0x7f9d8d868b30), DESC]), topn(1000)
1 - output([a.creation_date(0x7f9d8d868b30)], [a.doc_no(0x7f9d8d8665d0)], [a.item(0x7f9d8d867150)], [a.lot(0x7f9d8d867430)], [a.caseid(0x7f9d8d867710)],
[a.qty(0x7f9d8d8679f0)], [a.is_xf(0x7f9d8d867cd0)], [a.attribute1(0x7f9d8d867fb0)], [a.attribute2(0x7f9d8d868290)], [a.attribute3(0x7f9d8d868570)], [a.attribute4(0x7f9d8d868850)],
[a.created_by(0x7f9d8d868e10)], [a.last_update_date(0x7f9d8d8690f0)], [a.last_updated_by(0x7f9d8d8693d0)], [a.pos_getdate(0x7f9d8d8696b0)], [a.mq_senddate(0x7f9d8d86b8a0)],
[a.id(0x7f9d8d866b90)], [a.pushtype(0x7f9d8d866e70)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW2.VIEW1.do.tsf_no(0x7f9d8d8a0810)(:1)]), use_batch=true
2 - output([VIEW2.VIEW1.do.tsf_no(0x7f9d8d8a0810)]), filter(nil), rowset=256
access([VIEW2.VIEW1.do.tsf_no(0x7f9d8d8a0810)])
3 - output([do.tsf_no(0x7f9d8d88c9f0)]), filter(nil), rowset=256
distinct([do.tsf_no(0x7f9d8d88c9f0)])
4 - output([do.tsf_no(0x7f9d8d88c9f0)]), filter(nil), rowset=256
access([do.tsf_no(0x7f9d8d88c9f0)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f9d8d88ccd0)], [do.is_deleted(0x7f9d8d88c710)], [do.tsf_no(0x7f9d8d88c9f0)], [do.id(0x7f9d8d88c430)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f9d8d88c710) = 0(0x7f9d8d88cfb0)], [do.mq_push_flag(0x7f9d8d88ccd0) = 1(0x7f9d8d88dac0)])
5 - output([a.id(0x7f9d8d866b90)], [a.pushtype(0x7f9d8d866e70)], [a.doc_no(0x7f9d8d8665d0)], [a.item(0x7f9d8d867150)], [a.lot(0x7f9d8d867430)], [a.caseid(0x7f9d8d867710)],
[a.qty(0x7f9d8d8679f0)], [a.is_xf(0x7f9d8d867cd0)], [a.attribute1(0x7f9d8d867fb0)], [a.attribute2(0x7f9d8d868290)], [a.attribute3(0x7f9d8d868570)], [a.attribute4(0x7f9d8d868850)],
[a.creation_date(0x7f9d8d868b30)], [a.created_by(0x7f9d8d868e10)], [a.last_update_date(0x7f9d8d8690f0)], [a.last_updated_by(0x7f9d8d8693d0)], [a.pos_getdate(0x7f9d8d8696b0)],
[a.mq_senddate(0x7f9d8d86b8a0)]), filter([a.pushtype(0x7f9d8d866e70) IS NULL(0x7f9d8d86bb80)]), rowset=256
access([GROUP_ID(0x7fb489aa9610)], [a.id(0x7f9d8d866b90)], [a.pushtype(0x7f9d8d866e70)], [a.doc_no(0x7f9d8d8665d0)], [a.item(0x7f9d8d867150)], [a.lot(0x7f9d8d867430)],
[a.caseid(0x7f9d8d867710)], [a.qty(0x7f9d8d8679f0)], [a.is_xf(0x7f9d8d867cd0)], [a.attribute1(0x7f9d8d867fb0)], [a.attribute2(0x7f9d8d868290)], [a.attribute3(0x7f9d8d868570)],
[a.attribute4(0x7f9d8d868850)], [a.creation_date(0x7f9d8d868b30)], [a.created_by(0x7f9d8d868e10)], [a.last_update_date(0x7f9d8d8690f0)], [a.last_updated_by(0x7f9d8d8693d0)],
[a.pos_getdate(0x7f9d8d8696b0)], [a.mq_senddate(0x7f9d8d86b8a0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([a.doc_no(0x7f9d8d8665d0)], [a.item(0x7f9d8d867150)], [a.lot(0x7f9d8d867430)], [a.caseid(0x7f9d8d867710)], [a.shadow_pk_0(0x7f9d8d97c620)]),
range(MIN ; MAX),
range_cond([a.doc_no(0x7f9d8d8665d0) = :1(0x7fb489a5a830)])
Used Hint:
-------------------------------------
/*+

INDEX("a" "box_info_uindex")
*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA > SEL$E5385516
stmt_id:2, SEL$2 > SEL$4E545AEA
stmt_id:3, parent:SEL$6FCAE2AA > SEL$7BD09C5F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$E5385516" ("VIEW2"@"SEL$6FCAE2AA" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_NL(@"SEL$E5385516" "sl_pos_purchase_distribute"."a"@"SEL$1")
INDEX(@"SEL$4E545AEA" "do"@"SEL$2" "idx_mq_delete_tsfno")
INDEX(@"SEL$E5385516" "a"@"SEL$1" "box_info_uindex")
USE_DAS(@"SEL$E5385516" "a"@"SEL$1")
UNNEST(@"SEL$2")
SEMI_TO_INNER(@"SEL$6FCAE2AA" "VIEW1")
MERGE(@"SEL$2" < "SEL$7BD09C5F")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
do:
table_rows:652918
physical_range_rows:194428
logical_range_rows:194428
index_back_rows:0
output_rows:194428
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1728483107608785
dynamic sampling level:0
a:
table_rows:195887968
physical_range_rows:59
logical_range_rows:59
index_back_rows:59
output_rows:56
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
pruned_index_name:[pushtype_creation_date, distribute_box_info]
stats version:1726841266088452
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property








select
*
from
distribute_box_info a
where
pushtype is null
and exists (
select
?
from
distribute_order do
where
do.is_deleted = ?
and a.doc_no = do.tsf_no
and do.mq_push_flag = ?
)
order by
creation_date desc
limit
?


select * from distribute_box_info a where pushtype is null

and exists (select ? from distribute_order do where do.is_deleted=? and a.doc_no = do.tsf_no and do.mq_push_flag = ?) order by creation_date desc limit ?















SELECT il.id, il.loss_no AS loss_reporting_order_no, il.department_id, il.approve_status, il.approve_user_id
, il.approve_time, il.remarks, il.approve_opinion, il.create_time, il.create_user_id
, il.update_time, il.update_user_id, il.is_deleted, il.group_type, il.status
FROM inventory_loss il
WHERE il.is_deleted = 0
AND baike_status IN (0, 2)
AND il.department_id IN (270661859182546962)
AND (il.tenant_id = 1
OR il.tenant_id = 0)
ORDER BY il.create_time DESC
LIMIT 60



select count(*),count(distinct department_id ) from inventory_loss;



alter table inventory_loss add index idx_di_ct(department_id,create_time) parallel 4;


SQL: SELECT il.id, il.loss_no AS loss_reporting_order_no, il.department_id, il.approve_status, il.approve_user_id , il.approve_time, il.remarks, il.approve_opinion, il.create_time, il.create_user_id , il.update_time, il.update_user_id, il.is_deleted, il.group_type, il.status
FROM inventory_loss il WHERE il.is_deleted = 0 AND baike_status IN (0, 2) AND il.department_id IN (270661859182546962) AND (il.tenant_id = 1 OR il.tenant_id = 0)
ORDER BY il.create_time DESC LIMIT 60
查看格式化信息
=================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-----------------------------------------------------------------
|0 |TABLE RANGE SCAN|il(idx_di_ct,Reverse)|2 |15 |
=================================================================
Outputs & filters:
-------------------------------------
0 - output([il.id(0x7fa8d4c2e0f0)], [il.loss_no(0x7fa8d4c2e6f0)], [il.department_id(0x7fa8d4c2a5e0)], [il.approve_status(0x7fa8d4c2f010)], [il.approve_user_id(0x7fa8d4c2f610)],
[il.approve_time(0x7fa8d4c2fc10)], [il.remarks(0x7fa8d4c30210)], [il.approve_opinion(0x7fa8d4c30810)], [il.create_time(0x7fa8d4c30e10)], [il.create_user_id(0x7fa8d4c31410)],
[il.update_time(0x7fa8d4c31a10)], [il.update_user_id(0x7fa8d4c32010)], [il.is_deleted(0x7fa8d4c26f40)], [il.group_type(0x7fa8d4c32930)], [il.status(0x7fa8d4c32f30)]), filter([il.is_deleted(0x7fa8d4c26
f40) = 0(0x7fa8d4c267f0)], [il.baike_status(0x7fa8d4c28b60) IN (0, 2)(0x7fa8d4c37790)(0x7fa8d4c274d0)], [il.tenant_id(0x7fa8d4c2cc40) = 1(0x7fa8d4c2b7f0)
OR il.tenant_id(0x7fa8d4c2cc40) = 0(0x7fa8d4c2c470)(0x7fa8d4c2ab70)]), rowset=16
access([il.id(0x7fa8d4c2e0f0)], [il.is_deleted(0x7fa8d4c26f40)], [il.baike_status(0x7fa8d4c28b60)], [il.department_id(0x7fa8d4c2a5e0)], [il.tenant_id(0x7fa8d4c2cc40)],
[il.loss_no(0x7fa8d4c2e6f0)], [il.approve_status(0x7fa8d4c2f010)], [il.approve_user_id(0x7fa8d4c2f610)], [il.approve_time(0x7fa8d4c2fc10)], [il.remarks(0x7fa8d4c30210)],
[il.approve_opinion(0x7fa8d4c30810)], [il.create_time(0x7fa8d4c30e10)], [il.create_user_id(0x7fa8d4c31410)], [il.update_time(0x7fa8d4c31a10)], [il.update_user_id(0x7fa8d4c32010)],
[il.group_type(0x7fa8d4c32930)], [il.status(0x7fa8d4c32f30)]), partitions(p0)
limit(60), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false],
range_key([il.department_id(0x7fa8d4c2a5e0)], [il.create_time(0x7fa8d4c30e10)], [il.id(0x7fa8d4c2e0f0)]), range(270661859182546962,MIN,MIN ; 270661859182546962,
MAX,MAX),
range_cond([il.department_id(0x7fa8d4c2a5e0) = 270661859182546962(0x7fa8d4c29210)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
INDEX(@"SEL$1" "il"@"SEL$1" "idx_di_ct")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
il:
table_rows:4977616
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_loss_order_no, goods_loss_create_time_IDX, idx_di_ct, inventory_loss]
pruned_index_name:[idx_loss_order_no, goods_loss_create_time_IDX]
unstable_index_name:[inventory_loss]
stats version:1727273120110494
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property





alter table order_prescription_detail add index idx_pdi(prescription_detail_id) parallel 4;















select d.goods_no ,
d.producing_batch_number ,
d.create_date,
d.department_id,
d.id
from inventory_upload d
where d.is_deleted =0
and (goods_no,producing_batch_number,create_date,department_id)
in
(
('1010014','23110001','2024-10-10',270661897019363332)
,
('1011055','2309057','2024-10-10',270661897019363332)
,
('1011345','240602','2024-10-10',270661897019363332)
,
('1011367','4240034','2024-10-10',270661897019363332)
,
('1011521','240124','2024-10-10',270661897019363332)
,
('1011689','L8216','2024-10-10',270661897019363332)
,
('1010014','24020020','2024-10-10',270661897019363332)
,
('1011345','240501','2024-10-10',270661897019363332)
,
('1011786','RH24010901','2024-10-10',270661897019363332)
,
('1011827','240201','2024-10-10',270661897019363332)
,
('1011830','827J','2024-10-10',270661897019363332)
,
('1011846','2312050','2024-10-10',270661897019363332)
,
('1011864','202402033-2','2024-10-10',270661897019363332)
,
('1011986','20230201','2024-10-10',270661897019363332)
,
('1012054','12406039','2024-10-10',270661897019363332)
,
('1012111','240302','2024-10-10',270661897019363332)
,
('1012173','BX927','2024-10-10',270661897019363332)
,
('1012273','09724185','2024-10-10',270661897019363332)
,
('1012293','231207500','2024-10-10',270661897019363332)
,
('1012309','240403','2024-10-10',270661897019363332)
,
('1012311','240134','2024-10-10',270661897019363332)
,
('1012377','24109A','2024-10-10',270661897019363332)
,
('1012461','C220728','2024-10-10',270661897019363332)
,
('1012885','240506A','2024-10-10',270661897019363332)
,
('1012911','YT4Y','2024-10-10',270661897019363332)
,
('1012976','20240602','2024-10-10',270661897019363332)
,
('1013010','2310040','2024-10-10',270661897019363332)
,
('1013012','20240602','2024-10-10',270661897019363332)
,
('1013016','B24A010','2024-10-10',270661897019363332)
,
('1013114','20230402','2024-10-10',270661897019363332)
,
('1013118','240705','2024-10-10',270661897019363332)
,
('1013198','MF2442','2024-10-10',270661897019363332)
,
('1013517','1240711','2024-10-10',270661897019363332)
,
('1013992','197240601','2024-10-10',270661897019363332)
,
('1013996','0520231106','2024-10-10',270661897019363332)
,
('1014046','624087005','2024-10-10',270661897019363332)
,
('1014117','23035145','2024-10-10',270661897019363332)
,
('1014257','K1074','2024-10-10',270661897019363332)
,
('1014277','24E051','2024-10-10',270661897019363332)
,
('1014395','20231141','2024-10-10',270661897019363332)
,
('1014409','540732','2024-10-10',270661897019363332)
,
('1011786','RH23122702','2024-10-10',270661897019363332)
,
('1012054','12406024','2024-10-10',270661897019363332)
,
('1012111','231215','2024-10-10',270661897019363332)
,
('1012273','09724184','2024-10-10',270661897019363332)
,
('1012377','23118','2024-10-10',270661897019363332)
,
('1013010','2310039','2024-10-10',270661897019363332)
,
('1013016','J23A017','2024-10-10',270661897019363332)
,
('1013118','240601','2024-10-10',270661897019363332)
,
('1013992','197240301','2024-10-10',270661897019363332)
,
('1013996','0520230816','2024-10-10',270661897019363332)
,
('1014046','624017010','2024-10-10',270661897019363332)
,
('1014117','23035094','2024-10-10',270661897019363332)
,
('1014409','540785','2024-10-10',270661897019363332)
,
('1012273','09724123','2024-10-10',270661897019363332)
,
('1014415','202403005','2024-10-10',270661897019363332)
,
('1014476','330377','2024-10-10',270661897019363332)
,
('1014511','P100653177','2024-10-10',270661897019363332)
,
('1014637','C23030161','2024-10-10',270661897019363332)
,
('1014817','231201','2024-10-10',270661897019363332)
,
('1014953','60240105','2024-10-10',270661897019363332)
,
('1015042','240501','2024-10-10',270661897019363332)
,
('1015079','AF2302.2','2024-10-10',270661897019363332)
,
('1015607','50323121','2024-10-10',270661897019363332)
,
('1015813','2402007','2024-10-10',270661897019363332)
,
('1015817','56824015','2024-10-10',270661897019363332)
,
('1015897','20230302','2024-10-10',270661897019363332)
,
('1014415','202311005','2024-10-10',270661897019363332)
,
('1014637','C23030151','2024-10-10',270661897019363332)
,
('1014817','230701-2','2024-10-10',270661897019363332)
,
('1014953','60240103','2024-10-10',270661897019363332)
,
('1015042','240305','2024-10-10',270661897019363332)
,
('1015607','50323068','2024-10-10',270661897019363332)
,
('1015897','20220706','2024-10-10',270661897019363332)
,
('1016155','240813110','2024-10-10',270661897019363332)
,
('1016157','24010037','2024-10-10',270661897019363332)
,
('1016401','240602','2024-10-10',270661897019363332)
,
('1016155','240605110','2024-10-10',270661897019363332)
,
('1016157','24030016','2024-10-10',270661897019363332)
,
('1016401','240505','2024-10-10',270661897019363332)
,
('1017044','231005','2024-10-10',270661897019363332)
,
('1017072','20240610','2024-10-10',270661897019363332)
,
('1017088','F54459','2024-10-10',270661897019363332)
,
('1017248','240725','2024-10-10',270661897019363332)
,
('1017278','124032312','2024-10-10',270661897019363332)
,
('1017366','240405','2024-10-10',270661897019363332)
,
('1017383','20230633','2024-10-10',270661897019363332)
,
('1017397','24072041','2024-10-10',270661897019363332)
,
('1017399','240104','2024-10-10',270661897019363332)
,
('1017437','A24F001','2024-10-10',270661897019363332)
,
('1017463','2404225','2024-10-10',270661897019363332)
,
('1017560','202403068(WT)','2024-10-10',270661897019363332)
,
('1017562','230908','2024-10-10',270661897019363332)
,
('1018195','231281','2024-10-10',270661897019363332)
,
('1018215','2306032','2024-10-10',270661897019363332)
,
('1018217','32231116','2024-10-10',270661897019363332)
,
('1018287','101231021','2024-10-10',270661897019363332)
,
('1018347','240602','2024-10-10',270661897019363332)
,
('1018349','B22X','2024-10-10',270661897019363332)
,
('1018352','240702','2024-10-10',270661897019363332)
,
('1018403','20221201','2024-10-10',270661897019363332)
,
('1018432','240631','2024-10-10',270661897019363332)
,
('1018434','240539','2024-10-10',270661897019363332)
,
('1018436','240735','2024-10-10',270661897019363332)
,
('1018446','240778','2024-10-10',270661897019363332)
,
('1018448','240877','2024-10-10',270661897019363332)
,
('1018450','240661','2024-10-10',270661897019363332)
,
('1018452','240648','2024-10-10',270661897019363332)
,
('1018454','240613','2024-10-10',270661897019363332)
,
('1018456','240861','2024-10-10',270661897019363332)
,
('1018458','240823','2024-10-10',270661897019363332)
,
('1018483','24053003','2024-10-10',270661897019363332)
,
('1018490','230907','2024-10-10',270661897019363332)
,
('1018532','2302003','2024-10-10',270661897019363332)
,
('1018568','240318','2024-10-10',270661897019363332)
,
('1018615','230807','2024-10-10',270661897019363332)
,
('1018636','2240625','2024-10-10',270661897019363332)
,
('1018684','20240307','2024-10-10',270661897019363332)
,
('1017248','240620','2024-10-10',270661897019363332)
,
('1017278','124031611','2024-10-10',270661897019363332)
,
('1017397','24053141','2024-10-10',270661897019363332)
,
('1018352','240607','2024-10-10',270661897019363332)
,
('1018434','240529','2024-10-10',270661897019363332)
,
('1018446','240625','2024-10-10',270661897019363332)
,
('1018450','240654','2024-10-10',270661897019363332)
,
('1018454','240693','2024-10-10',270661897019363332)
,
('1018456','240539','2024-10-10',270661897019363332)
,
('1018458','240820','2024-10-10',270661897019363332)
,
('1018483','24033001','2024-10-10',270661897019363332)
,
('1018490','231129','2024-10-10',270661897019363332)
,
('1018568','240228','2024-10-10',270661897019363332)
,
('1017397','24052741','2024-10-10',270661897019363332)
,
('1018490','231127','2024-10-10',270661897019363332)
,
('1018758','240604','2024-10-10',270661897019363332)
,
('1018795','240731183','2024-10-10',270661897019363332)
,
('1018868','240831','2024-10-10',270661897019363332)
,
('1018907','230358','2024-10-10',270661897019363332)
,
('1018985','C2424020','2024-10-10',270661897019363332)
,
('1019764','23092801','2024-10-10',270661897019363332)
,
('1019770','202404920','2024-10-10',270661897019363332)
,
('1019844','833503','2024-10-10',270661897019363332)
,
('1019846','230702','2024-10-10',270661897019363332)
,
('1021642','3592401007','2024-10-10',270661897019363332)
,
('1021718','24052341','2024-10-10',270661897019363332)
,
('1018795','240716165','2024-10-10',270661897019363332)
,
('1019770','202404925','2024-10-10',270661897019363332)
,
('1019846','230501','2024-10-10',270661897019363332)
,
('1021642','3592311103','2024-10-10',270661897019363332)
,
('1021972','240306','2024-10-10',270661897019363332)
,
('1022052','20240413','2024-10-10',270661897019363332)
,
('1022130','240308','2024-10-10',270661897019363332)
,
('1022148','CY22891','2024-10-10',270661897019363332)
,
('1021972','231003','2024-10-10',270661897019363332)
,
('1022052','20230501','2024-10-10',270661897019363332)
,
('1022726','24071061','2024-10-10',270661897019363332)
,
('1022726','24061461','2024-10-10',270661897019363332)
,
('1023164','20220507','2024-10-10',270661897019363332)
,
('1023268','605230311','2024-10-10',270661897019363332)
,
('1023274','T240405','2024-10-10',270661897019363332)
,
('1023535','230404','2024-10-10',270661897019363332)
,
('1024185','240902','2024-10-10',270661897019363332)
,
('1024264','23101901','2024-10-10',270661897019363332)
,
('1024294','240507','2024-10-10',270661897019363332)
,
('1024380','PAJ1T05','2024-10-10',270661897019363332)
,
('1024403','24022275','2024-10-10',270661897019363332)
,
('1024473','2404506B','2024-10-10',270661897019363332)
,
('1024519','B409T','2024-10-10',270661897019363332)
,
('1024594','240524','2024-10-10',270661897019363332)
,
('1024613','240520','2024-10-10',270661897019363332)
,
('1024647','312027','2024-10-10',270661897019363332)
,
('1024881','240104','2024-10-10',270661897019363332)
,
('1024887','E31003','2024-10-10',270661897019363332)
,
('1024977','240325','2024-10-10',270661897019363332)
,
('1025091','2303084','2024-10-10',270661897019363332)
,
('1025111','35240214','2024-10-10',270661897019363332)
,
('1025177','E32003M','2024-10-10',270661897019363332)
,
('1024185','240803','2024-10-10',270661897019363332)
,
('1024380','PAJ6902','2024-10-10',270661897019363332)
,
('1024403','2312386','2024-10-10',270661897019363332)
,
('1024473','2404504B','2024-10-10',270661897019363332)
,
('1024647','312006','2024-10-10',270661897019363332)
,
('1024881','231102','2024-10-10',270661897019363332)
,
('1025091','2212166','2024-10-10',270661897019363332)
,
('1025283','231214072','2024-10-10',270661897019363332)
,
('1027768','231202','2024-10-10',270661897019363332)
,
('1029793','240329-1','2024-10-10',270661897019363332)
,
('1029971','240701','2024-10-10',270661897019363332)
,
('1030109','B240435','2024-10-10',270661897019363332)
,
('1030563','2404016S','2024-10-10',270661897019363332)
,
('1030674','2408006','2024-10-10',270661897019363332)
,
('1033292','20240623','2024-10-10',270661897019363332)
,
('1033370','2310010','2024-10-10',270661897019363332)
,
('1033501','24004','2024-10-10',270661897019363332)
,
('1033693','240270096','2024-10-10',270661897019363332)
,
('1033697','18J231116','2024-10-10',270661897019363332)
,
('1033770','0012401085','2024-10-10',270661897019363332)
,
('1034261','22407015','2024-10-10',270661897019363332)
,
('1034458','200124049','2024-10-10',270661897019363332)
,
('1034466','240625','2024-10-10',270661897019363332)
,
('1034564','6240442','2024-10-10',270661897019363332)
,
('1034630','2402025','2024-10-10',270661897019363332)
,
('1030563','2402022S','2024-10-10',270661897019363332)
,
('1030674','2408003','2024-10-10',270661897019363332)
,
('1033370','2310008','2024-10-10',270661897019363332)
,
('1033693','240020096','2024-10-10',270661897019363332)
,
('1033770','0012401082','2024-10-10',270661897019363332)
,
('1034261','22407011','2024-10-10',270661897019363332)
,
('1034466','240622','2024-10-10',270661897019363332)
,
('1034630','2404057','2024-10-10',270661897019363332)
,
('1030674','2404010','2024-10-10',270661897019363332)
,
('1033770','0012312014','2024-10-10',270661897019363332)
,
('1035624','2312037','2024-10-10',270661897019363332)
,
('1035644','24030405','2024-10-10',270661897019363332)
,
('1036130','230104','2024-10-10',270661897019363332)
,
('1035644','23111305','2024-10-10',270661897019363332)
,
('1036801','2401030','2024-10-10',270661897019363332)
,
('1037526','2401179','2024-10-10',270661897019363332)
,
('1037531','2405B30','2024-10-10',270661897019363332)
,
('1037589','23PR','2024-10-10',270661897019363332)
,
('1040021','240802','2024-10-10',270661897019363332)
,
('1037526','2401106','2024-10-10',270661897019363332)
,
('1041320','24010003','2024-10-10',270661897019363332)
,
('1041542','240502','2024-10-10',270661897019363332)
,
('1041556','D02004','2024-10-10',270661897019363332)
,
('1042466','240302101','2024-10-10',270661897019363332)
,
('1042480','240308','2024-10-10',270661897019363332)
,
('1042876','240601','2024-10-10',270661897019363332)
,
('1042480','240307','2024-10-10',270661897019363332)
,
('1042994','240406427','2024-10-10',270661897019363332)
,
('1044080','2240545','2024-10-10',270661897019363332)
,
('1044500','231205','2024-10-10',270661897019363332)
,
('1044502','2405117','2024-10-10',270661897019363332)
,
('1044622','2402007','2024-10-10',270661897019363332)
,
('1044732','231002','2024-10-10',270661897019363332)
,
('1044907','DE2L','2024-10-10',270661897019363332)
,
('1044942','A20230901','2024-10-10',270661897019363332)
,
('1044948','45-231203','2024-10-10',270661897019363332)
,
('1042994','240321337','2024-10-10',270661897019363332)
,
('1044502','2404108','2024-10-10',270661897019363332)
,
('1044907','4W5V','2024-10-10',270661897019363332)
,
('1045005','1A240602','2024-10-10',270661897019363332)
,
('1045164','202406245C','2024-10-10',270661897019363332)
,
('1045195','23121671','2024-10-10',270661897019363332)
,
('1045197','B231201A1','2024-10-10',270661897019363332)
,
('1045210','3272310013','2024-10-10',270661897019363332)
,
('1045249','2310005','2024-10-10',270661897019363332)
,
('1045539','JS22166','2024-10-10',270661897019363332)
,
('1045586','LY7S','2024-10-10',270661897019363332)
,
('1045594','240301248','2024-10-10',270661897019363332)
,
('1045633','486E','2024-10-10',270661897019363332)
,
('1046206','2404023L','2024-10-10',270661897019363332)
,
('1046226','2403007A','2024-10-10',270661897019363332)
,
('1045594','240222215','2024-10-10',270661897019363332)
,
('1046206','2404008L','2024-10-10',270661897019363332)
,
('1046206','2312030L','2024-10-10',270661897019363332)
,
('1046408','T3A504A','2024-10-10',270661897019363332)
,
('1047020','2404071C','2024-10-10',270661897019363332)
,
('1047486','C231223','2024-10-10',270661897019363332)
,
('1047490','240631','2024-10-10',270661897019363332)
,
('1047492','50-231248','2024-10-10',270661897019363332)
,
('1047541','8174348','2024-10-10',270661897019363332)
,
('1047543','8142854','2024-10-10',270661897019363332)
,
('1047588','240830','2024-10-10',270661897019363332)
,
('1047615','2405271','2024-10-10',270661897019363332)
,
('1047020','2404034C','2024-10-10',270661897019363332)
,
('1047486','B240102','2024-10-10',270661897019363332)
,
('1047492','50-231223','2024-10-10',270661897019363332)
,
('1047541','8167436','2024-10-10',270661897019363332)
,
('1047588','240809','2024-10-10',270661897019363332)
,
('1047615','2405201','2024-10-10',270661897019363332)
,
('1047492','50-231115','2024-10-10',270661897019363332)
,
('1047615','2402281','2024-10-10',270661897019363332)
,
('1048382','231222','2024-10-10',270661897019363332)
,
('1048451','3231226','2024-10-10',270661897019363332)
,
('1048480','240504','2024-10-10',270661897019363332)
,
('1048496','240334','2024-10-10',270661897019363332)
,
('1048559','2312074','2024-10-10',270661897019363332)
,
('1048561','T40044','2024-10-10',270661897019363332)
,
('1048563','20231201','2024-10-10',270661897019363332)
,
('1048661','24042011','2024-10-10',270661897019363332)
,
('1049147','D01011','2024-10-10',270661897019363332)
,
('1049211','220504','2024-10-10',270661897019363332)
,
('1049455','240402','2024-10-10',270661897019363332)
,
('1049593','20240494','2024-10-10',270661897019363332)
,
('1049959','JX240506','2024-10-10',270661897019363332)
,
('1050038','240504','2024-10-10',270661897019363332)
,
('1050234','624067012','2024-10-10',270661897019363332)
,
('1048382','230807','2024-10-10',270661897019363332)
,
('1048480','240503','2024-10-10',270661897019363332)
,
('1048561','T40042','2024-10-10',270661897019363332)
,
('1048661','24033111','2024-10-10',270661897019363332)
,
('1050038','240503','2024-10-10',270661897019363332)
,
('1051868','FBX5209002','2024-10-10',270661897019363332)
,
('1051938','2404130','2024-10-10',270661897019363332)
,
('1052152','240457','2024-10-10',270661897019363332)
,
('1052174','044021','2024-10-10',270661897019363332)
,
('1052303','53-240318','2024-10-10',270661897019363332)
,
('1052382','2406133','2024-10-10',270661897019363332)
,
('1052398','2407022','2024-10-10',270661897019363332)
,
('1052533','F240602','2024-10-10',270661897019363332)
,
('1052562','240804','2024-10-10',270661897019363332)
,
('1052581','2312109Z','2024-10-10',270661897019363332)
,
('1052618','20230348','2024-10-10',270661897019363332)
,
('1052643','24063021','2024-10-10',270661897019363332)
,
('1052781','2311036','2024-10-10',270661897019363332)
,
('1052988','2401112','2024-10-10',270661897019363332)
,
('1053048','L24071025','2024-10-10',270661897019363332)
,
('1053088','KT0KFT7','2024-10-10',270661897019363332)
,
('1053096','2401054','2024-10-10',270661897019363332)
,
('1053223','ZDD2401','2024-10-10',270661897019363332)
,
('1053239','240508','2024-10-10',270661897019363332)
,
('1053440','01240407','2024-10-10',270661897019363332)
,
('1051938','2404109','2024-10-10',270661897019363332)
,
('1052152','240443','2024-10-10',270661897019363332)
,
('1052174','043149','2024-10-10',270661897019363332)
,
('1052382','2312460','2024-10-10',270661897019363332)
,
('1052562','240801','2024-10-10',270661897019363332)
,
('1052643','24042136','2024-10-10',270661897019363332)
,
('1053223','ZMD2301','2024-10-10',270661897019363332)
,
('1053239','240504','2024-10-10',270661897019363332)
,
('1054260','24011043','2024-10-10',270661897019363332)
,
('1054260','24041065','2024-10-10',270661897019363332)
,
('1056774','NA24263','2024-10-10',270661897019363332)
,
('1058507','231001','2024-10-10',270661897019363332)
,
('1058627','2024042227','2024-10-10',270661897019363332)
,
('1058701','2310409','2024-10-10',270661897019363332)
,
('1058758','230508','2024-10-10',270661897019363332)
,
('1058837','202310044','2024-10-10',270661897019363332)
,
('1058965','240603','2024-10-10',270661897019363332)
,
('1059047','ZGA2421','2024-10-10',270661897019363332)
,
('1059203','240909','2024-10-10',270661897019363332)
,
('1064707','6923021','2024-10-10',270661897019363332)
,
('1056774','NA24238','2024-10-10',270661897019363332)
,
('1058507','230102','2024-10-10',270661897019363332)
,
('1059047','ZGA2419','2024-10-10',270661897019363332)
,
('1059203','240323','2024-10-10',270661897019363332)
,
('1059047','ZFA2434','2024-10-10',270661897019363332)
,
('1065725','240609','2024-10-10',270661897019363332)
,
('1066439','PAJ0X04','2024-10-10',270661897019363332)
,
('1066631','2406009','2024-10-10',270661897019363332)
,
('1065725','240111','2024-10-10',270661897019363332)
,
('1066439','NLJ5676','2024-10-10',270661897019363332)
,
('1069940','CY23462','2024-10-10',270661897019363332)
,
('1070628','240809','2024-10-10',270661897019363332)
,
('1070644','2240001','2024-10-10',270661897019363332)
,
('1071014','129243016','2024-10-10',270661897019363332)
,
('1071274','JS22341','2024-10-10',270661897019363332)
,
('1071424','20231211','2024-10-10',270661897019363332)
,
('1071591','20240521','2024-10-10',270661897019363332)
,
('1071601','240501','2024-10-10',270661897019363332)
,
('1069940','CY23461','2024-10-10',270661897019363332)
,
('1070628','240806','2024-10-10',270661897019363332)
,
('1071014','129243004','2024-10-10',270661897019363332)
,
('1071274','JS22097','2024-10-10',270661897019363332)
,
('1071424','20230106','2024-10-10',270661897019363332)
,
('1071591','20240306','2024-10-10',270661897019363332)
,
('1071659','23071209','2024-10-10',270661897019363332)
,
('1071699','240601','2024-10-10',270661897019363332)
,
('1071717','3CT2','2024-10-10',270661897019363332)
,
('1071767','0120240603','2024-10-10',270661897019363332)
,
('1071779','202311133','2024-10-10',270661897019363332)
,
('1071854','407021-01','2024-10-10',270661897019363332)
,
('1071868','240703','2024-10-10',270661897019363332)
,
('1071904','54-240508','2024-10-10',270661897019363332)
,
('1072016','1008504','2024-10-10',270661897019363332)
,
('1072125','231113','2024-10-10',270661897019363332)
,
('1072259','C24E0702','2024-10-10',270661897019363332)
,
('1072415','03240702','2024-10-10',270661897019363332)
,
('1073289','20230801','2024-10-10',270661897019363332)
,
('1071699','20240308','2024-10-10',270661897019363332)
,
('1071717','4CB4','2024-10-10',270661897019363332)
,
('1071767','0120240105','2024-10-10',270661897019363332)
,
('1071854','406101-02','2024-10-10',270661897019363332)
,
('1071868','240701','2024-10-10',270661897019363332)
,
('1072016','1008502','2024-10-10',270661897019363332)
,
('1072259','C24B1302','2024-10-10',270661897019363332)
,
('1072415','03240505','2024-10-10',270661897019363332)
,
('1071854','406121-03','2024-10-10',270661897019363332)
,
('1074638','230357','2024-10-10',270661897019363332)
,
('1075806','2405282','2024-10-10',270661897019363332)
,
('1075806','2405242','2024-10-10',270661897019363332)
,
('1078744','240202','2024-10-10',270661897019363332)
,
('1078756','2405018','2024-10-10',270661897019363332)
,
('1078802','231003','2024-10-10',270661897019363332)
,
('1078970','240102','2024-10-10',270661897019363332)
,
('1079191','240701','2024-10-10',270661897019363332)
,
('1079198','X024583','2024-10-10',270661897019363332)
,
('1079202','240330','2024-10-10',270661897019363332)
,
('1079206','240601','2024-10-10',270661897019363332)
,
('1079249','240304','2024-10-10',270661897019363332)
,
('1079267','231140','2024-10-10',270661897019363332)
,
('1079370','24021941','2024-10-10',270661897019363332)
,
('1079523','240111','2024-10-10',270661897019363332)
,
('1079576','240470164','2024-10-10',270661897019363332)
,
('1079692','240747','2024-10-10',270661897019363332)
,
('1079802','240233','2024-10-10',270661897019363332)
,
('1079919','231216','2024-10-10',270661897019363332)
,
('1079938','2407125','2024-10-10',270661897019363332)
,
('1080070','240302','2024-10-10',270661897019363332)
,
('1079198','X019902','2024-10-10',270661897019363332)
,
('1079692','240743','2024-10-10',270661897019363332)
,
('1079938','2407015','2024-10-10',270661897019363332)
,
('1080221','B68240911','2024-10-10',270661897019363332)
,
('1080221','B68240771','2024-10-10',270661897019363332)
,
('1082055','2402013','2024-10-10',270661897019363332)
,
('1082066','240201','2024-10-10',270661897019363332)
,
('1082141','2406127','2024-10-10',270661897019363332)
,
('1082506','TDXC4','2024-10-10',270661897019363332)
,
('1082703','24101010','2024-10-10',270661897019363332)
,
('1082790','02240410','2024-10-10',270661897019363332)
,
('1082849','6240582','2024-10-10',270661897019363332)
,
('1082851','240807','2024-10-10',270661897019363332)
,
('1082879','20240604','2024-10-10',270661897019363332)
,
('1082055','2311119','2024-10-10',270661897019363332)
,
('1082851','240719','2024-10-10',270661897019363332)
,
('1082879','20240406','2024-10-10',270661897019363332)
,
('1082851','240511','2024-10-10',270661897019363332)
,
('1083359','2024050403','2024-10-10',270661897019363332)
,
('1083740','C10017228','2024-10-10',270661897019363332)
,
('1083940','8177708','2024-10-10',270661897019363332)
,
('1083984','A023220710','2024-10-10',270661897019363332)
,
('1083740','C10017054','2024-10-10',270661897019363332)
,
('1083940','8152279','2024-10-10',270661897019363332)
,
('1084356','240352','2024-10-10',270661897019363332)
,
('1084547','240109','2024-10-10',270661897019363332)
,
('1084549','2404060','2024-10-10',270661897019363332)
,
('1084559','8176609','2024-10-10',270661897019363332)
,
('1084567','231004','2024-10-10',270661897019363332)
,
('1084725','231104','2024-10-10',270661897019363332)
,
('1085002','231106','2024-10-10',270661897019363332)
,
('1084356','240351','2024-10-10',270661897019363332)
,
('1084547','231107','2024-10-10',270661897019363332)
,
('1084549','2403066','2024-10-10',270661897019363332)
,
('1084559','8173559','2024-10-10',270661897019363332)
,
('1085002','231104','2024-10-10',270661897019363332)
,
('1085449','A2311050','2024-10-10',270661897019363332)
,
('1085475','240330','2024-10-10',270661897019363332)
,
('1085985','240120','2024-10-10',270661897019363332)
,
('1086011','240117','2024-10-10',270661897019363332)
,
('1086127','20240314','2024-10-10',270661897019363332)
,
('1086919','240703','2024-10-10',270661897019363332)
,
('1087157','2240763','2024-10-10',270661897019363332)
,
('1087396','240805','2024-10-10',270661897019363332)
,
('1087535','240344','2024-10-10',270661897019363332)
,
('1087553','6241327','2024-10-10',270661897019363332)
,
('1087558','2402014','2024-10-10',270661897019363332)
,
('1087679','JS21788','2024-10-10',270661897019363332)
,
('1087734','120323','2024-10-10',270661897019363332)
,
('1090074','24061761','2024-10-10',270661897019363332)
,
('1090634','124077','2024-10-10',270661897019363332)
,
('1091136','240505','2024-10-10',270661897019363332)
,
('1092054','240437','2024-10-10',270661897019363332)
,
('1093155','2401006','2024-10-10',270661897019363332)
,
('1094231','202312487','2024-10-10',270661897019363332)
,
('1094441','2023121023','2024-10-10',270661897019363332)
,
('1094665','S1H0097','2024-10-10',270661897019363332)
,
('1095065','0000093508','2024-10-10',270661897019363332)
,
('1097226','20240504','2024-10-10',270661897019363332)
,
('1098155','NB9E','2024-10-10',270661897019363332)
,
('1100105','202405014B','2024-10-10',270661897019363332)
,
('1100677','240707','2024-10-10',270661897019363332)
,
('1100881','20240519','2024-10-10',270661897019363332)
,
('1101421','2407005J','2024-10-10',270661897019363332)
,
('1102649','WHJ2401','2024-10-10',270661897019363332)
,
('1102792','20240109','2024-10-10',270661897019363332)
,
('1102803','L27M','2024-10-10',270661897019363332)
,
('1102990','20231107','2024-10-10',270661897019363332)
,
('1103290','240512','2024-10-10',270661897019363332)
,
('1103642','230304','2024-10-10',270661897019363332)
,
('1086127','20240218','2024-10-10',270661897019363332)
,
('1086919','240603','2024-10-10',270661897019363332)
,
('1087396','240803','2024-10-10',270661897019363332)
,
('1087535','240335','2024-10-10',270661897019363332)
,
('1087553','6230682','2024-10-10',270661897019363332)
,
('1094441','2024050913','2024-10-10',270661897019363332)
,
('1094665','S1H0090','2024-10-10',270661897019363332)
,
('1095065','0000079442','2024-10-10',270661897019363332)
,
('1097226','20240503','2024-10-10',270661897019363332)
,
('1100881','20240221','2024-10-10',270661897019363332)
,
('1101421','2406008J','2024-10-10',270661897019363332)
,
('1102649','WEJ2406','2024-10-10',270661897019363332)
,
('1103290','240513','2024-10-10',270661897019363332)
,
('1102649','WCJ2305','2024-10-10',270661897019363332)
,
('1108688','X20240679','2024-10-10',270661897019363332)
,
('1111892','2312103','2024-10-10',270661897019363332)
,
('1113925','F202407133','2024-10-10',270661897019363332)
,
('1114249','240601','2024-10-10',270661897019363332)
,
('1114392','8240305','2024-10-10',270661897019363332)
,
('1115970','C53440','2024-10-10',270661897019363332)
,
('1126164','2401032','2024-10-10',270661897019363332)
,
('1127456','2306003','2024-10-10',270661897019363332)
,
('1127489','0652312056','2024-10-10',270661897019363332)
,
('1127842','20231222','2024-10-10',270661897019363332)
,
('1128089','240220','2024-10-10',270661897019363332)
,
('1128127','B8934K','2024-10-10',270661897019363332)
,
('1128558','20240823','2024-10-10',270661897019363332)
,
('1128568','EA4047','2024-10-10',270661897019363332)
,
('1128570','EA2545','2024-10-10',270661897019363332)
,
('1128781','230402','2024-10-10',270661897019363332)
,
('1129189','B23Y','2024-10-10',270661897019363332)
,
('1129458','CSMZP','2024-10-10',270661897019363332)
,
('1129482','S3H0297','2024-10-10',270661897019363332)
,
('1129667','ML2401','2024-10-10',270661897019363332)
,
('1130170','240720','2024-10-10',270661897019363332)
,
('1131145','240605','2024-10-10',270661897019363332)
,
('1133391','2311073','2024-10-10',270661897019363332)
,
('1135683','240301','2024-10-10',270661897019363332)
,
('1135685','240603','2024-10-10',270661897019363332)
,
('1135909','BJ71032','2024-10-10',270661897019363332)
,
('1135911','240410','2024-10-10',270661897019363332)
,
('1136091','A231210','2024-10-10',270661897019363332)
,
('1136107','24016','2024-10-10',270661897019363332)
,
('1136164','1240607','2024-10-10',270661897019363332)
,
('1136437','0000097749','2024-10-10',270661897019363332)
,
('1136472','X024768','2024-10-10',270661897019363332)
,
('1136474','Y006613','2024-10-10',270661897019363332)
,
('1137079','0000088270','2024-10-10',270661897019363332)
,
('1137085','221107MH','2024-10-10',270661897019363332)
,
('1137089','X23N','2024-10-10',270661897019363332)
,
('1137095','3812404007','2024-10-10',270661897019363332)
,
('1137672','240107311','2024-10-10',270661897019363332)
,
('1138608','BJ5L','2024-10-10',270661897019363332)
,
('1139593','240114','2024-10-10',270661897019363332)
,
('1139595','240402','2024-10-10',270661897019363332)
,
('1139597','240708','2024-10-10',270661897019363332)
,
('1139615','240529','2024-10-10',270661897019363332)
,
('1139964','2862402103','2024-10-10',270661897019363332)
,
('1140098','X3259','2024-10-10',270661897019363332)
,
('1140100','XA131','2024-10-10',270661897019363332)
,
('1140347','240516','2024-10-10',270661897019363332)
,
('1141122','240160','2024-10-10',270661897019363332)
,
('1141261','240602','2024-10-10',270661897019363332)
,
('1141263','240304','2024-10-10',270661897019363332)
,
('1141305','2408026','2024-10-10',270661897019363332)
,
('1141313','240104','2024-10-10',270661897019363332)
,
('1141343','X009147','2024-10-10',270661897019363332)
,
('1141358','2405903G','2024-10-10',270661897019363332)
,
('1142222','PG2F','2024-10-10',270661897019363332)
,
('1142939','24060602','2024-10-10',270661897019363332)
,
('1143073','240621','2024-10-10',270661897019363332)
,
('1143427','240601','2024-10-10',270661897019363332)
,
('1144419','240204','2024-10-10',270661897019363332)
,
('1144763','042407094','2024-10-10',270661897019363332)
,
('1147511','240612','2024-10-10',270661897019363332)
,
('1148389','KC1H4111','2024-10-10',270661897019363332)
,
('1148391','KC2H4658','2024-10-10',270661897019363332)
,
('1148487','231101-2','2024-10-10',270661897019363332)
,
('1148922','240401','2024-10-10',270661897019363332)
,
('1149381','GQ23060401','2024-10-10',270661897019363332)
,
('1149493','231101JS','2024-10-10',270661897019363332)
,
('1149845','20240107','2024-10-10',270661897019363332)
,
('1150186','2302025','2024-10-10',270661897019363332)
,
('1150527','240303','2024-10-10',270661897019363332)
,
('1108688','X20240673','2024-10-10',270661897019363332)
,
('1126164','2401046','2024-10-10',270661897019363332)
,
('1127489','0652312052','2024-10-10',270661897019363332)
,
('1128558','20240816','2024-10-10',270661897019363332)
,
('1129189','BA4T','2024-10-10',270661897019363332)
,
('1129482','S3H0296','2024-10-10',270661897019363332)
,
('1130170','240308','2024-10-10',270661897019363332)
,
('1135911','240409','2024-10-10',270661897019363332)
,
('1136107','24014','2024-10-10',270661897019363332)
,
('1136472','X020298','2024-10-10',270661897019363332)
,
('1137079','0000088269','2024-10-10',270661897019363332)
,
('1138608','9C7B','2024-10-10',270661897019363332)
,
('1139593','240113','2024-10-10',270661897019363332)
,
('1139597','240703','2024-10-10',270661897019363332)
,
('1139615','230723','2024-10-10',270661897019363332)
,
('1139964','2862402102','2024-10-10',270661897019363332)
,
('1140100','XA106','2024-10-10',270661897019363332)
,
('1141261','240405','2024-10-10',270661897019363332)
,
('1141313','231202','2024-10-10',270661897019363332)
,
('1141358','2403503G','2024-10-10',270661897019363332)
,
('1142939','24040802','2024-10-10',270661897019363332)
,
('1148389','KC1H4078','2024-10-10',270661897019363332)
,
('1148391','KC2H4578','2024-10-10',270661897019363332)
,
('1148487','230604-2','2024-10-10',270661897019363332)
,
('1149493','230617JS','2024-10-10',270661897019363332)
,
('1150186','2302018','2024-10-10',270661897019363332)
,
('1137079','0000085830','2024-10-10',270661897019363332)
,
('1150868','240405','2024-10-10',270661897019363332)
,
('1150871','240303','2024-10-10',270661897019363332)
,
('1150873','240606','2024-10-10',270661897019363332)
,
('1151164','12406030','2024-10-10',270661897019363332)
,
('1151170','JS22615','2024-10-10',270661897019363332)
,
('1151277','3231208','2024-10-10',270661897019363332)
,
('1151295','240604','2024-10-10',270661897019363332)
,
('1151303','131202200','2024-10-10',270661897019363332)
,
('1151512','624087083','2024-10-10',270661897019363332)
,
('1151873','4094007','2024-10-10',270661897019363332)
,
('1152099','231203','2024-10-10',270661897019363332)
,
('1152449','240403','2024-10-10',270661897019363332)
,
('1152993','410525','2024-10-10',270661897019363332)
,
('1154143','24032224','2024-10-10',270661897019363332)
,
('1154818','202402150','2024-10-10',270661897019363332)
,
('1154840','PEJ1852','2024-10-10',270661897019363332)
,
('1154842','Q392404211','2024-10-10',270661897019363332)
,
('1154904','A24019','2024-10-10',270661897019363332)
,
('1154960','240103','2024-10-10',270661897019363332)
,
('1155023','C192309271','2024-10-10',270661897019363332)
,
('1155054','2403018','2024-10-10',270661897019363332)
,
('1155074','01220901','2024-10-10',270661897019363332)
,
('1155076','01240102','2024-10-10',270661897019363332)
,
('1155416','1240001','2024-10-10',270661897019363332)
,
('1155502','24060171','2024-10-10',270661897019363332)
,
('1155531','240817','2024-10-10',270661897019363332)
,
('1155576','092405016','2024-10-10',270661897019363332)
,
('1155947','01240303','2024-10-10',270661897019363332)
,
('1155962','230609','2024-10-10',270661897019363332)
,
('1156027','CBJB043C','2024-10-10',270661897019363332)
,
('1156558','ACS3100','2024-10-10',270661897019363332)
,
('1156570','2402303','2024-10-10',270661897019363332)
,
('1156610','20240107A','2024-10-10',270661897019363332)
,
('1159464','24050701','2024-10-10',270661897019363332)
,
('1159754','X024769','2024-10-10',270661897019363332)
,
('1159950','12405179','2024-10-10',270661897019363332)
,
('1160188','D24061501','2024-10-10',270661897019363332)
,
('1160192','240103','2024-10-10',270661897019363332)
,
('1160215','230912','2024-10-10',270661897019363332)
,
('1160436','3092406013','2024-10-10',270661897019363332)
,
('1160438','075240402','2024-10-10',270661897019363332)
,
('1160598','20240801','2024-10-10',270661897019363332)
,
('1160628','4E0391DB2','2024-10-10',270661897019363332)
,
('1160954','XE2802','2024-10-10',270661897019363332)
,
('1161145','240503','2024-10-10',270661897019363332)
,
('1161158','2404052','2024-10-10',270661897019363332)
,
('1161469','20231001','2024-10-10',270661897019363332)
,
('1161708','240738','2024-10-10',270661897019363332)
,
('1161710','240725','2024-10-10',270661897019363332)
,
('1162887','20240402','2024-10-10',270661897019363332)
,
('1162889','2K0014DA3','2024-10-10',270661897019363332)
,
('1162925','2311010','2024-10-10',270661897019363332)
,
('1162963','2404002','2024-10-10',270661897019363332)
,
('1163101','4240828','2024-10-10',270661897019363332)
,
('1163165','1240928','2024-10-10',270661897019363332)
,
('1163183','8240303','2024-10-10',270661897019363332)
,
('1163219','20240505','2024-10-10',270661897019363332)
,
('1163241','124001','2024-10-10',270661897019363332)
,
('1163243','224015','2024-10-10',270661897019363332)
,
('1163732','231108','2024-10-10',270661897019363332)
,
('1164061','B240801K21','2024-10-10',270661897019363332)
,
('1164317','240108','2024-10-10',270661897019363332)
,
('1168639','B240514','2024-10-10',270661897019363332)
,
('1169518','240604','2024-10-10',270661897019363332)
,
('1169520','240404','2024-10-10',270661897019363332)
,
('1169580','2406328','2024-10-10',270661897019363332)
,
('1169632','20240237','2024-10-10',270661897019363332)
,
('1170444','20240206','2024-10-10',270661897019363332)
,
('1170742','W038315','2024-10-10',270661897019363332)
,
('1171042','20240306','2024-10-10',270661897019363332)
,
('1173100','240301','2024-10-10',270661897019363332)
,
('1173860','4336002','2024-10-10',270661897019363332)
,
('1174106','240702DD','2024-10-10',270661897019363332)
,
('1175932','24273080','2024-10-10',270661897019363332)
,
('1176135','240519','2024-10-10',270661897019363332)
,
('1176949','1182401111','2024-10-10',270661897019363332)
,
('1177155','20221105','2024-10-10',270661897019363332)
,
('1177363','ZFB2411','2024-10-10',270661897019363332)
,
('1177827','C219240136','2024-10-10',270661897019363332)
,
('1180127','12307178','2024-10-10',270661897019363332)
,
('1181189','20240210','2024-10-10',270661897019363332)
,
('1181427','ACQ2008','2024-10-10',270661897019363332)
,
('1184475','24BH','2024-10-10',270661897019363332)
,
('1184543','2406371','2024-10-10',270661897019363332)
,
('1184547','RC24030301','2024-10-10',270661897019363332)
,
('1184581','42407123','2024-10-10',270661897019363332)
,
('1185675','24041562','2024-10-10',270661897019363332)
,
('1150868','240401','2024-10-10',270661897019363332)
,
('1150871','240108','2024-10-10',270661897019363332)
,
('1151170','JS22618','2024-10-10',270661897019363332)
,
('1151512','624087054','2024-10-10',270661897019363332)
,
('1152099','231001','2024-10-10',270661897019363332)
,
('1152449','240112','2024-10-10',270661897019363332)
,
('1154143','2312345','2024-10-10',270661897019363332)
,
('1154818','202312157','2024-10-10',270661897019363332)
,
('1154840','NFJ3920','2024-10-10',270661897019363332)
,
('1154842','Q392404204','2024-10-10',270661897019363332)
,
('1154904','A24009','2024-10-10',270661897019363332)
,
('1155576','092405015','2024-10-10',270661897019363332)
,
('1155947','01240255','2024-10-10',270661897019363332)
,
('1156558','ACS3099','2024-10-10',270661897019363332)
,
('1159754','W027188','2024-10-10',270661897019363332)
,
('1159950','12405178','2024-10-10',270661897019363332)
,
('1160188','D24061001','2024-10-10',270661897019363332)
,
('1160436','3092406014','2024-10-10',270661897019363332)
,
('1160438','075231201','2024-10-10',270661897019363332)
,
('1161158','2401231','2024-10-10',270661897019363332)
,
('1161708','240737','2024-10-10',270661897019363332)
,
('1161710','240724','2024-10-10',270661897019363332)
,
('1162889','3C0141DA3','2024-10-10',270661897019363332)
,
('1163101','4240493','2024-10-10',270661897019363332)
,
('1163165','1240927','2024-10-10',270661897019363332)
,
('1163183','8240302','2024-10-10',270661897019363332)
,
('1163219','20240504','2024-10-10',270661897019363332)
,
('1163241','123045','2024-10-10',270661897019363332)
,
('1163243','224012','2024-10-10',270661897019363332)
,
('1163732','220606','2024-10-10',270661897019363332)
,
('1164061','B240406K21','2024-10-10',270661897019363332)
,
('1169518','240202','2024-10-10',270661897019363332)
,
('1169580','2406327','2024-10-10',270661897019363332)
,
('1169632','20240122','2024-10-10',270661897019363332)
,
('1170444','20240104','2024-10-10',270661897019363332)
,
('1174106','240522DD','2024-10-10',270661897019363332)
,
('1176949','1182311214','2024-10-10',270661897019363332)
,
('1184543','2405351','2024-10-10',270661897019363332)
,
('1184547','RC24030202','2024-10-10',270661897019363332)
,
('1184581','4240563','2024-10-10',270661897019363332)
,
('1155947','01240252','2024-10-10',270661897019363332)
,
('1159950','12405173','2024-10-10',270661897019363332)
,
('1160436','3092403021','2024-10-10',270661897019363332)
,
('1161710','240721','2024-10-10',270661897019363332)
,
('1163101','4240360','2024-10-10',270661897019363332)
,
('1185781','2312012','2024-10-10',270661897019363332)
,
('1186009','082E0706','2024-10-10',270661897019363332)
,
('1186045','23119502','2024-10-10',270661897019363332)
,
('1186453','230063','2024-10-10',270661897019363332)
,
('1187869','BJ78727','2024-10-10',270661897019363332)
,
('1188157','240302','2024-10-10',270661897019363332)
,
('1189275','240912','2024-10-10',270661897019363332)
,
('1189381','230813201','2024-10-10',270661897019363332)
,
('1190371','240203','2024-10-10',270661897019363332)
,
('1190373','20221252','2024-10-10',270661897019363332)
,
('1192783','2408091','2024-10-10',270661897019363332)
,
('1193393','241006','2024-10-10',270661897019363332)
,
('1193503','D10104','2024-10-10',270661897019363332)
,
('1193729','SY5L','2024-10-10',270661897019363332)
,
('1194789','23C011','2024-10-10',270661897019363332)
,
('1195775','J76F','2024-10-10',270661897019363332)
,
('1196551','C10017493','2024-10-10',270661897019363332)
,
('1200010','240601','2024-10-10',270661897019363332)
,
('1200864','240701','2024-10-10',270661897019363332)
,
('1200922','240113','2024-10-10',270661897019363332)
,
('1202744','231103','2024-10-10',270661897019363332)
,
('1204676','240802','2024-10-10',270661897019363332)
,
('1213472','WA18009B','2024-10-10',270661897019363332)
,
('1213678','X3480','2024-10-10',270661897019363332)
,
('1213774','13240501','2024-10-10',270661897019363332)
,
('1214691','20240449','2024-10-10',270661897019363332)
,
('1216550','B107989','2024-10-10',270661897019363332)
,
('1216978','1252403227','2024-10-10',270661897019363332)
,
('1219786','2312016GR','2024-10-10',270661897019363332)
,
('1221498','20230112','2024-10-10',270661897019363332)
,
('1221948','240504','2024-10-10',270661897019363332)
,
('1222042','3L0324DH6','2024-10-10',270661897019363332)
,
('1222078','24050058','2024-10-10',270661897019363332)
,
('1222080','20240609','2024-10-10',270661897019363332)
,
('1222084','241028','2024-10-10',270661897019363332)
,
('1222456','DN23110201','2024-10-10',270661897019363332)
,
('1222578','2404L017','2024-10-10',270661897019363332)
,
('1222592','7240102','2024-10-10',270661897019363332)
,
('1222594','2403003S','2024-10-10',270661897019363332)
,
('1222866','231101R','2024-10-10',270661897019363332)
,
('1222870','2402003J','2024-10-10',270661897019363332)
,
('1223006','240302','2024-10-10',270661897019363332)
,
('1223132','5602404062','2024-10-10',270661897019363332)
,
('1223538','202408052','2024-10-10',270661897019363332)
,
('1227286','D231211-1','2024-10-10',270661897019363332)
,
('1227302','24030640','2024-10-10',270661897019363332)
,
('1229303','C10017278','2024-10-10',270661897019363332)
,
('1230617','24080322','2024-10-10',270661897019363332)
,
('1231988','23111229','2024-10-10',270661897019363332)
,
('1232747','F202406117','2024-10-10',270661897019363332)
,
('1233948','B0068N01','2024-10-10',270661897019363332)
,
('1236490','2401435','2024-10-10',270661897019363332)
,
('1237562','6P6Y','2024-10-10',270661897019363332)
,
('1237570','C24F052','2024-10-10',270661897019363332)
,
('1237822','20240307','2024-10-10',270661897019363332)
,
('1237824','20240710','2024-10-10',270661897019363332)
,
('1240227','240511','2024-10-10',270661897019363332)
,
('1240918','24060220','2024-10-10',270661897019363332)
,
('1241056','230904','2024-10-10',270661897019363332)
,
('1245452','240607','2024-10-10',270661897019363332)
,
('1246392','240106','2024-10-10',270661897019363332)
,
('1250068','0881','2024-10-10',270661897019363332)
,
('1250084','C7124014','2024-10-10',270661897019363332)
,
('1250986','20231121A','2024-10-10',270661897019363332)
,
('1252166','3122406001','2024-10-10',270661897019363332)
,
('1252168','240403','2024-10-10',270661897019363332)
,
('1252170','240502','2024-10-10',270661897019363332)
,
('1253212','2024060602','2024-10-10',270661897019363332)
,
('1254830','B240310K71','2024-10-10',270661897019363332)
,
('1255066','10324007','2024-10-10',270661897019363332)
,
('1255068','10324013','2024-10-10',270661897019363332)
,
('1256984','240534','2024-10-10',270661897019363332)
,
('1257554','240616','2024-10-10',270661897019363332)
,
('1257556','240301','2024-10-10',270661897019363332)
,
('1258300','39240656','2024-10-10',270661897019363332)
,
('1258304','2309131','2024-10-10',270661897019363332)
,
('1258416','20240806','2024-10-10',270661897019363332)
,
('1258624','231105','2024-10-10',270661897019363332)
,
('1258850','24090702','2024-10-10',270661897019363332)
,
('1261670','Q232311009','2024-10-10',270661897019363332)
,
('1266538','8240202','2024-10-10',270661897019363332)
,
('1269934','BT217','2024-10-10',270661897019363332)
,
('1270756','20240812','2024-10-10',270661897019363332)
,
('1272262','P03021','2024-10-10',270661897019363332)
,
('2209058','20240711','2024-10-10',270661897019363332)
,
('2210888','2305501','2024-10-10',270661897019363332)
,
('2219142','240803036','2024-10-10',270661897019363332)
,
('2227274','1220015','2024-10-10',270661897019363332)
,
('8101002','L23F032','2024-10-10',270661897019363332)
,
('1185781','2312011','2024-10-10',270661897019363332)
,
('1186009','082E0508','2024-10-10',270661897019363332)
,
('1186453','230068','2024-10-10',270661897019363332)
,
('1192783','2404192','2024-10-10',270661897019363332)
,
('1193503','D07267','2024-10-10',270661897019363332)
,
('1196551','C10017428','2024-10-10',270661897019363332)
,
('1200010','240504','2024-10-10',270661897019363332)
,
('1202744','240402','2024-10-10',270661897019363332)
,
('1204676','231009','2024-10-10',270661897019363332)
,
('1213472','WA18008B','2024-10-10',270661897019363332)
,
('1214691','20240426','2024-10-10',270661897019363332)
,
('1216978','1252404222','2024-10-10',270661897019363332)
,
('1222578','2311L071','2024-10-10',270661897019363332)
,
('1223132','5602403064','2024-10-10',270661897019363332)
,
('1223538','202406171','2024-10-10',270661897019363332)
,
('1229303','C10016196','2024-10-10',270661897019363332)
,
('1236490','2401422','2024-10-10',270661897019363332)
,
('1237824','20240709','2024-10-10',270661897019363332)
,
('1240918','24060130','2024-10-10',270661897019363332)
,
('1245452','240501','2024-10-10',270661897019363332)
,
('1252168','240320','2024-10-10',270661897019363332)
,
('1252170','240501','2024-10-10',270661897019363332)
,
('1253212','2024052401','2024-10-10',270661897019363332)
,
('1255068','10324008','2024-10-10',270661897019363332)
,
('1258300','39240655','2024-10-10',270661897019363332)
,
('1258416','20240606','2024-10-10',270661897019363332)
,
('1258850','24070202','2024-10-10',270661897019363332)
,
('1261670','Q232304002','2024-10-10',270661897019363332)
,
('2209058','20240705','2024-10-10',270661897019363332)
,
('8101002','L23A010','2024-10-10',270661897019363332)
,
('8101011','24074034','2024-10-10',270661897019363332)
,
('8101019','C24S006','2024-10-10',270661897019363332)
,
('8101020','2024060537','2024-10-10',270661897019363332)
,
('8101023','20240504','2024-10-10',270661897019363332)
,
('8101033','VA10108','2024-10-10',270661897019363332)
,
('8101038','2401501','2024-10-10',270661897019363332)
,
('8101048','YD0403','2024-10-10',270661897019363332)
,
('8101060','C12001','2024-10-10',270661897019363332)
,
('8101079','23011143','2024-10-10',270661897019363332)
,
('8101087','240606','2024-10-10',270661897019363332)
,
('8101088','5231131','2024-10-10',270661897019363332)
,
('8101090','1240118','2024-10-10',270661897019363332)
,
('8101105','XI3803','2024-10-10',270661897019363332)
,
('8101109','C11006','2024-10-10',270661897019363332)
,
('8101111','240625','2024-10-10',270661897019363332)
,
('8101112','20240402','2024-10-10',270661897019363332)
,
('8101115','231107022','2024-10-10',270661897019363332)
,
('8101123','2309021','2024-10-10',270661897019363332)
,
('8101258','A24A004','2024-10-10',270661897019363332)
,
('8101259','240009','2024-10-10',270661897019363332)
,
('8101297','1240132','2024-10-10',270661897019363332)
,
('8101339','B2301146H','2024-10-10',270661897019363332)
,
('8101342','2403016','2024-10-10',270661897019363332)
,
('8101346','20240305','2024-10-10',270661897019363332)
,
('8101347','B2403151','2024-10-10',270661897019363332)
,
('8101358','4240402','2024-10-10',270661897019363332)
,
('8101360','240610','2024-10-10',270661897019363332)
,
('8101364','20240103','2024-10-10',270661897019363332)
,
('8101365','2308901','2024-10-10',270661897019363332)
,
('8101391','C24K062','2024-10-10',270661897019363332)
,
('8101402','ZEA2406','2024-10-10',270661897019363332)
,
('8101460','202403077','2024-10-10',270661897019363332)
,
('8101473','24124965','2024-10-10',270661897019363332)
,
('8101480','VC90022','2024-10-10',270661897019363332)
,
('8101493','240121062','2024-10-10',270661897019363332)
,
('8101542','240203','2024-10-10',270661897019363332)
,
('8101020','2024030513','2024-10-10',2706618





sl_pos_goods
SELECT
store.department_id department_id,
store.goods_id goods_id,
g.goods_no goods_no,
? batch_id,
store.producing_batch_number_id producing_batch_number_id,
store.position_id position_id,
ged.units units,
ged.legal_attributes_code maintain_code,
ged.maintenance_level maintenance_level,
ged.specifications specifications,
ged.dosage_forms_code dosage_forms_code,
ged.approve_no approve_no,
ged.factory_name factory_name,
ged.producing_area producing_area,
(select max(gsp.maintain_date) from sl_pos_purchase_distribute.gsp_medicine_maintain_result gsp where
store.goods_id = gsp.goods_id
AND store.department_id = gsp.department_id
AND store.producing_batch_number_id = gsp.producing_batch_number_id
AND store.position_id = gsp.position_id
AND gsp.is_deleted = ?
) maintain_date,
min(store.create_time) inventory_create_time,
store.position_id
FROM
store_inventory store
LEFT JOIN sl_pos_base_system.sys_department_store dep ON store.department_id = dep.department_id
LEFT JOIN goods_batch_number_info gbni ON ( store.goods_id = gbni.goods_id AND store.producing_batch_number_id = gbni.id AND gbni.is_deleted = ? )
LEFT JOIN goods g ON (store.goods_id = g.id AND g.is_deleted = ?)
LEFT JOIN goods_expand ged ON (g.id = ged.goods_id AND ged.is_deleted = ?)
WHERE
dep.long_store_no = ?
AND store.inventory >?
AND store.is_deleted = ?
AND gbni.valid_date >= curdate()
AND ged.legal_attributes_code is not null
AND ged.legal_attributes_code !=?
AND ged.maintenance_level is not null
GROUP BY department_id,goods_id,producing_batch_number_id,position_id


#### alter table sl_pos_purchase_distribute.gsp_medicine_maintain_result add index pbni_di(producing_batch_number_id,department_id)

sql_id:2B7BE873EDA376A6D3C062F93CF3C4CF

SELECT
store.department_id department_id,
store.goods_id goods_id,
g.goods_no goods_no,
0 batch_id,
store.producing_batch_number_id producing_batch_number_id,
store.position_id position_id,
ged.units units,
ged.legal_attributes_code maintain_code,
ged.maintenance_level maintenance_level,
ged.specifications specifications,
ged.dosage_forms_code dosage_forms_code,
ged.approve_no approve_no,
ged.factory_name factory_name,
ged.producing_area producing_area,
(select max(gsp.maintain_date) from sl_pos_purchase_distribute.gsp_medicine_maintain_result gsp where
store.goods_id = gsp.goods_id
AND store.department_id = gsp.department_id
AND store.producing_batch_number_id = gsp.producing_batch_number_id
AND store.position_id = gsp.position_id
AND gsp.is_deleted = 0
) maintain_date,
min(store.create_time) inventory_create_time,
store.position_id
FROM
store_inventory store
LEFT JOIN sl_pos_base_system.sys_department_store dep ON store.department_id = dep.department_id
LEFT JOIN goods_batch_number_info gbni ON ( store.goods_id = gbni.goods_id AND store.producing_batch_number_id = gbni.id AND gbni.is_deleted = 0 )
LEFT JOIN goods g ON (store.goods_id = g.id AND g.is_deleted = 0)
LEFT JOIN goods_expand ged ON (g.id = ged.goods_id AND ged.is_deleted = 0)
WHERE
dep.long_store_no = '2000014008'
AND store.inventory >0
AND store.is_deleted = 0
AND gbni.valid_date >= curdate()
AND ged.legal_attributes_code is not null
AND ged.legal_attributes_code !=''
AND ged.maintenance_level is not null
GROUP BY department_id,goods_id,producing_batch_number_id,position_id

================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
--------------------------------------------------------------------------------
|0 |SUBPLAN FILTER | |1158 |18273021 |
|1 | HASH GROUP BY | |1158 |127324 |
|2 | NESTED-LOOP JOIN | |1160 |126355 |
|3 | NESTED-LOOP JOIN | |1129 |105697 |
|4 | NESTED-LOOP JOIN | |1098 |85461 |
|5 | NESTED-LOOP JOIN | |2713 |35891 |
|6 | TABLE SCAN |dep(idx_long_store_no) |1 |4 |
|7 | DISTRIBUTED TABLE SCAN|store(idx_dept_goods_id)|2713 |35818 |
|8 | DISTRIBUTED TABLE GET |gbni |1 |18 |
|9 | DISTRIBUTED TABLE GET |ged |1 |18 |
|10| DISTRIBUTED TABLE GET |g |1 |18 |
|11| SCALAR GROUP BY | |1 |15683 |
|12| DISTRIBUTED TABLE SCAN |gsp(gmmr_department_id) |1 |15683 |
================================================================================
Outputs & filters:
-------------------------------------
0 - output([store.department_id(0x7f643942cb40)], [store.goods_id(0x7f64394301d0)], [g.goods_no(0x7f6439445340)], [remove_const(0)(0x7f6cd22a5e80)], [store.producing_batch_number_id(0x7f6439431660)],
[store.position_id(0x7f6439445e50)], [ged.units(0x7f6439446400)], [ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)],
[ged.specifications(0x7f6439446f90)], [ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)], [ged.producing_area(0x7f6439448650)],
[subquery(1)(0x7f6439448920)], [T_FUN_MIN(store.create_time(0x7f6439460500))(0x7f643945fe90)], [store.position_id(0x7f6439445e50)]), filter(nil), rowset=256
exec_params_([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)]),
onetime_exprs_(nil), init_plan_idxs_(nil), batch_das=false
1 - output([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[g.goods_no(0x7f6439445340)], [ged.units(0x7f6439446400)], [ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)], [ged.specifications(0x7f6439446f90)],
[ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)], [ged.producing_area(0x7f6439448650)], [T_FUN_MIN(store.create_time(0x7f6439460500))(0x7f643945fe90)]),
filter(nil), rowset=256
group([store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)]), agg_func([T_FUN_MIN(store.create_time(0x7f6439460500))(0x7f643945fe90)])
2 - output([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[g.goods_no(0x7f6439445340)], [ged.units(0x7f6439446400)], [ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)], [ged.specifications(0x7f6439446f90)],
[ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)], [ged.producing_area(0x7f6439448650)], [store.create_time(0x7f6439460500)]),
filter(nil), rowset=256
conds(nil), nl_params_([store.goods_id(0x7f64394301d0)]), batch_join=true
3 - output([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[ged.units(0x7f6439446400)], [ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)], [ged.specifications(0x7f6439446f90)],
[ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)], [ged.producing_area(0x7f6439448650)], [store.create_time(0x7f6439460500)]),
filter(nil), rowset=256
conds(nil), nl_params_([store.goods_id(0x7f64394301d0)]), batch_join=true
4 - output([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[store.create_time(0x7f6439460500)]), filter(nil), rowset=256
conds(nil), nl_params_([store.goods_id(0x7f64394301d0)], [store.producing_batch_number_id(0x7f6439431660)]), batch_join=true
5 - output([store.goods_id(0x7f64394301d0)], [store.department_id(0x7f643942cb40)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[store.create_time(0x7f6439460500)]), filter(nil), rowset=256
conds(nil), nl_params_([dep.department_id(0x7f643942ce00)]), batch_join=true
6 - output([dep.department_id(0x7f643942ce00)]), filter(nil), rowset=256
access([dep.department_id(0x7f643942ce00)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([dep.long_store_no(0x7f643943a650)], [dep.department_id(0x7f643942ce00)]), range(2000014008,MIN ; 2000014008,MAX),
range_cond([dep.long_store_no(0x7f643943a650) = '2000014008'(0x7f6439439fa0)])
7 - output([store.department_id(0x7f643942cb40)], [store.goods_id(0x7f64394301d0)], [store.producing_batch_number_id(0x7f6439431660)], [store.position_id(0x7f6439445e50)],
[store.create_time(0x7f6439460500)]), filter([cast(store.inventory(0x7f643943b7a0), DECIMAL(12, 3))(0x7f643943bce0) > cast(0, DECIMAL(1, 0))(0x7f643943c750)(0x7f643943b0f0)],
[store.is_deleted(0x7f643943ddd0) = 0(0x7f643943d720)]), rowset=256
access([GROUP_ID(0x7f6cd228db00)], [store.id(0x7f64394717d0)], [store.department_id(0x7f643942cb40)], [store.goods_id(0x7f64394301d0)], [store.producing_batch_number_id(0x7f6439431660)],
[store.inventory(0x7f643943b7a0)], [store.is_deleted(0x7f643943ddd0)], [store.position_id(0x7f6439445e50)], [store.create_time(0x7f6439460500)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([store.department_id(0x7f643942cb40)], [store.goods_id(0x7f64394301d0)], [store.id(0x7f64394717d0)]), range(MIN ; MAX),
range_cond([store.department_id(0x7f643942cb40) = :5(0x7f643957a860)])
8 - output(nil), filter([:6 = gbni.goods_id(0x7f6439430490)(0x7f64395bc6c0)], [gbni.valid_date(0x7f643943f340) >= cur_date()(0x7f643943e610)(0x7f643943ec90)],
[gbni.is_deleted(0x7f6439432a70) = 0(0x7f64394323c0)]), rowset=256
access([GROUP_ID(0x7f6cd2293be0)], [gbni.goods_id(0x7f6439430490)], [gbni.is_deleted(0x7f6439432a70)], [gbni.valid_date(0x7f643943f340)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false,false,false],
range_key([gbni.id(0x7f6439431920)]), range(MIN ; MAX),
range_cond([:7 = gbni.id(0x7f6439431920)(0x7f64395bd160)])
9 - output([ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)], [ged.units(0x7f6439446400)], [ged.specifications(0x7f6439446f90)],
[ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)], [ged.producing_area(0x7f6439448650)]), filter([ged.legal_attributes_code(0x7f64394405c0)
!= ''(0x7f6439441060)], [ged.is_deleted(0x7f6439439500) = 0(0x7f6439438e50)], [ged.maintenance_level(0x7f64394425a0) IS NOT NULL(0x7f6439441ef0)]), rowset=256
access([GROUP_ID(0x7f6cd2295da0)], [ged.is_deleted(0x7f6439439500)], [ged.legal_attributes_code(0x7f64394405c0)], [ged.maintenance_level(0x7f64394425a0)],
[ged.units(0x7f6439446400)], [ged.specifications(0x7f6439446f90)], [ged.dosage_forms_code(0x7f6439447540)], [ged.approve_no(0x7f6439447af0)], [ged.factory_name(0x7f64394480a0)],
[ged.producing_area(0x7f6439448650)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false,false,false],
range_key([ged.goods_id(0x7f64394383b0)]), range(MIN ; MAX),
range_cond([ged.goods_id(0x7f64394383b0) = :12(0x7f64395eae20)])
10 - output([g.goods_no(0x7f6439445340)]), filter([g.is_deleted(0x7f6439434ff0) = 0(0x7f6439434940)]), rowset=256
access([GROUP_ID(0x7f6cd229de10)], [g.is_deleted(0x7f6439434ff0)], [g.goods_no(0x7f6439445340)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([g.id(0x7f6439433ea0)]), range(MIN ; MAX),
range_cond([:10 = g.id(0x7f6439433ea0)(0x7f64395d6560)])
11 - output([T_FUN_MAX(gsp.maintain_date(0x7f643945f660))(0x7f643945eff0)]), filter(nil), rowset=256
group(nil), agg_func([T_FUN_MAX(gsp.maintain_date(0x7f643945f660))(0x7f643945eff0)])
12 - output([gsp.maintain_date(0x7f643945f660)]), filter([:2 = gsp.producing_batch_number_id(0x7f643945c510)(0x7f643945bbf0)], [:0 = gsp.goods_id(0x7f6439459c90)(0x7f6439459370)],
[:3 = gsp.position_id(0x7f643945d950)(0x7f643945d030)], [gsp.is_deleted(0x7f643945eaa0) = 0(0x7f643945e3f0)]), rowset=256
access([gsp.id(0x7f6439470a90)], [gsp.goods_id(0x7f6439459c90)], [gsp.producing_batch_number_id(0x7f643945c510)], [gsp.position_id(0x7f643945d950)],
[gsp.is_deleted(0x7f643945eaa0)], [gsp.maintain_date(0x7f643945f660)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([gsp.department_id(0x7f643945b0d0)], [gsp.id(0x7f6439470a90)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([:1 = gsp.department_id(0x7f643945b0d0)(0x7f643945a7b0)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$C6D21C0F > SEL$9E7FBB94 > SEL$FCD2B54E
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
USE_HASH_AGGREGATION(@"SEL$FCD2B54E")
LEADING(@"SEL$FCD2B54E" (((("sl_pos_base_system"."dep"@"SEL$1" "sl_pos_goods"."store"@"SEL$1") "sl_pos_goods"."gbni"@"SEL$1") "sl_pos_goods"."ged"@"SEL$1")
"sl_pos_goods"."g"@"SEL$1"))
USE_NL(@"SEL$FCD2B54E" "sl_pos_goods"."g"@"SEL$1")
USE_NL(@"SEL$FCD2B54E" "sl_pos_goods"."ged"@"SEL$1")
USE_NL(@"SEL$FCD2B54E" "sl_pos_goods"."gbni"@"SEL$1")
USE_NL(@"SEL$FCD2B54E" "sl_pos_goods"."store"@"SEL$1")
INDEX(@"SEL$FCD2B54E" "dep"@"SEL$1" "idx_long_store_no")
INDEX(@"SEL$FCD2B54E" "store"@"SEL$1" "idx_dept_goods_id")
USE_DAS(@"SEL$FCD2B54E" "store"@"SEL$1")
FULL(@"SEL$FCD2B54E" "gbni"@"SEL$1")
USE_DAS(@"SEL$FCD2B54E" "gbni"@"SEL$1")
FULL(@"SEL$FCD2B54E" "ged"@"SEL$1")
USE_DAS(@"SEL$FCD2B54E" "ged"@"SEL$1")
FULL(@"SEL$FCD2B54E" "g"@"SEL$1")
USE_DAS(@"SEL$FCD2B54E" "g"@"SEL$1")
INDEX(@"SEL$2" "gsp"@"SEL$2" "gmmr_department_id")
USE_DAS(@"SEL$2" "gsp"@"SEL$2")
OUTER_TO_INNER(@"SEL$1")
PRED_DEDUCE(@"SEL$C6D21C0F")
SIMPLIFY_EXPR(@"SEL$9E7FBB94")
OPTIMIZER_FEATURES_ENABLE('4.0.0.0')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
dep:
table_rows:17938
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[idx_long_store_no]
pruned_index_name:[idx_create_time, idx_price_area_id, idx_store_no, sys_department_store]
table_id:502272:estimation info:(table_type:10, version:-1--1--1, logical_rc:1, physical_rc:1),
(table_type:11, version:-1--1--1, logical_rc:0, physical_rc:0),
(table_type:12, version:-1--1--1, logical_rc:0, physical_rc:0)]
stats version:1721743204311828
store:
table_rows:8939949
physical_range_rows:8262
logical_range_rows:8262
index_back_rows:8262
output_rows:2712
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[idx_dept_goods_id, store_inventory]
pruned_index_name:[idx_create_time, idx_update_time, di_ct]
table_id:501086:estimation info:(table_type:10, version:-1--1--1, logical_rc:11996903, physical_rc:11996903),
(table_type:11, version:-1--1--1, logical_rc:367, physical_rc:367),
(table_type:0, version:-1--1--1, logical_rc:303, physical_rc:303)]
stats version:1721657952492906
gbni:
table_rows:4291375
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:0
est_method:local_storage
optimization_method:rule_based
heuristic_rule:unique_index_without_indexback
stats version:1716906803592973
ged:
table_rows:200414
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:0
est_method:local_storage
optimization_method:rule_based
heuristic_rule:unique_index_without_indexback
stats version:1717077977143933
g:
table_rows:200414
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
est_method:local_storage
optimization_method:rule_based
heuristic_rule:unique_index_without_indexback
stats version:1717077605715787
gsp:
table_rows:3044035
physical_range_rows:3822
logical_range_rows:3817
index_back_rows:3817
output_rows:0
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[gmmr_department_id, gsp_medicine_maintain_result]
pruned_index_name:[gmmr_department_goods_batch]
table_id:502075:estimation info:(table_type:10, version:-1--1--1, logical_rc:3166445, physical_rc:3166445),
(table_type:11, version:-1--1--1, logical_rc:441, physical_rc:4168),
(table_type:0, version:-1--1--1, logical_rc:1891, physical_rc:2676)]
stats version:1721512830098006
Plan Type:
LOCAL
Expr Constraints:
1 result is TRUE







db:sl_pos_base_system
SELECT
b.dict_code,b.dict_msg,b.dict_type_name
FROM
sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = ? AND a.is_deleted = ? AND b.is_deleted = ? AND b.tenant_id IN
(
?
,
?
)



SELECT b.dict_code,b.dict_msg,b.dict_type_name
FROM
sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = 'SL_STORE' AND a.is_deleted = 0 AND b.is_deleted = 0 AND b.tenant_id IN
(0, 0)


INSERT INTO size_group_detail(id, goods_id, print_no, department_id, min_goods_id, size_spc_group,create_time,update_time)
VALUES

(?, ?, ?, ?, ?, ?,now(),now())

ON DUPLICATE KEY UPDATE update_time = values(update_time),size_spc_group = values(size_spc_group),
min_goods_id = values(min_goods_id),print_no = values(print_no);

select distinct
sku_code
from
gsc_product_region_property_relation
where
property_code = ?
and region_code = ?
and is_deleted = ?
and property_value_code = ?









SELECT id,order_sales_promotion_id,order_sales_detail_id,goods_id,goods_name,goods_num,goods_price,price_difference,reward_id,group_id,discount_money,actual_receivable_price,exchange_type,is_medicine,department_id,tenant_id,is_deleted AS deleted,create_user_id,create_time,update_user_id,update_time
FROM order_sales_promotion_exchange_goods
WHERE is_deleted=0

AND (order_sales_detail_id IN (382355502492807169))

select /*+ parallel(4) */count(*) from order_sales_promotion_exchange_goods;

alter table order_sales_promotion_exchange_goods add index osdi(order_sales_detail_id) local;



SELECT id,status,region_no,region,create_user_name,update_user_name,tenant_id,is_deleted AS deleted,create_user_id,create_time,update_user_id,update_time FROM goods_expiry_discount_region
WHERE is_deleted=0

AND (region_no = '101501')

select count(*),count(distinct region_no) from goods_expiry_discount_region


alter table goods_expiry_discount_region add index rn(region_no);





3D0183F30732E573B0E0E92256A9103C
CREATE OUTLINE outline_name ON sql_id USING HINT hint_text;
CREATE OUTLINE fixplan_20241011 on "3D0183F30732E573B0E0E92256A9103C" using hint /*+ leading(mrpd)*/ ;




CREATE OUTLINE fixplan_20241011 on "3D0183F30732E573B0E0E92256A9103C" using hint /*+ leading(mrpd)*/ ;

select * from oceanbase.DBA_OB_OUTLINES where sql_id='3D0183F30732E573B0E0E92256A9103C';
select * from oceanbase.GV$OB_PLAN_CACHE_PLAN_STAT where sql_id='3D0183F30732E573B0E0E92256A9103C'



YB420A6A07E4-000624217E0EFD46-0-0

select op_id, op, rows, rescan, threads, (close_time - open_time) open_dt, (last_row_eof_time-first_row_time) row_dt, open_time, close_time, first_row_time, last_row_eof_time FROM
(
select plan_line_id op_id, concat(lpad('', plan_depth, ' '), plan_operation) op, sum(output_rows) rows, sum(STARTS) rescan, min(first_refresh_time) open_time, max(last_refresh_time) close_time, min(first_change_time) first_row_time, max(last_change_time) last_row_eof_time, count(1) threads
from oceanbase.gv$sql_plan_monitor where trace_id = 'YB420A6A07E4-000624217E0EFD46-0-0' group by plan_line_id, plan_operation order by plan_line_id
) a;






SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = 0


WHERE a.is_deleted = 0 AND b.is_deleted = 0 AND a.tenant_id = 1

AND (a.goods_no LIKE CONCAT('%', '6923615', '%')
OR a.goods_name LIKE CONCAT('%', '6923615', '%')
OR c.mnemonic_code LIKE CONCAT('%', '6923615', '%')
OR b.approve_no LIKE CONCAT('%', '6923615', '%')
)

) tmp
limit 0, 40


SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = 0
JOIN (
SELECT
DISTINCT goods_id FROM store_inventory WHERE department_id = 270661859430010881 AND inventory > 0
AND is_deleted = 0
) i ON a.id = i.goods_id


JOIN goods_class gc ON a.groups_id = gc.id AND gc.group_type = 2

WHERE a.is_deleted = 0 AND b.is_deleted = 0 AND a.tenant_id = 1

AND (a.goods_no LIKE CONCAT('%', 'hs', '%')
OR a.goods_name LIKE CONCAT('%', 'hs', '%')
OR c.mnemonic_code LIKE CONCAT('%', 'hs', '%')
OR b.approve_no LIKE CONCAT('%', 'hs', '%')
)

) tmp
limit 0, 20


SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = 0


WHERE a.is_deleted = 0 AND b.is_deleted = 0 AND a.tenant_id = 1

AND (a.goods_no LIKE CONCAT('%', '6900372330506', '%')
OR a.goods_name LIKE CONCAT('%', '6900372330506', '%')
OR c.mnemonic_code LIKE CONCAT('%', '6900372330506', '%')
OR b.approve_no LIKE CONCAT('%', '6900372330506', '%')
)

) tmp
limit 0, 40


SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = 0


WHERE a.is_deleted = 0 AND b.is_deleted = 0 AND a.tenant_id = 1

AND (a.goods_no LIKE CONCAT('%', '692777140058', '%')
OR a.goods_name LIKE CONCAT('%', '692777140058', '%')
OR c.mnemonic_code LIKE CONCAT('%', '692777140058', '%')
OR b.approve_no LIKE CONCAT('%', '692777140058', '%')
)

) tmp
limit 0, 40

SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = 0


WHERE a.is_deleted = 0 AND b.is_deleted = 0 AND a.tenant_id = 1

AND (a.goods_no LIKE CONCAT('%', '6930045', '%')
OR a.goods_name LIKE CONCAT('%', '6930045', '%')
OR c.mnemonic_code LIKE CONCAT('%', '6930045', '%')
OR b.approve_no LIKE CONCAT('%', '6930045', '%')
)

) tmp
limit 0, 40



SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = ?


WHERE a.is_deleted = ? AND b.is_deleted = ? AND a.tenant_id = ?

AND (a.goods_no LIKE CONCAT(?, ?, ?)
OR a.goods_name LIKE CONCAT(?, ?, ?)
OR c.mnemonic_code LIKE CONCAT(?, ?, ?)
OR b.approve_no LIKE CONCAT(?, ?, ?)
)

) tmp
limit ?, ?

SELECT * FROM (
SELECT
distinct a.id goods_id, a.is_ephedrine ephedrine, a.rx_otc_type, b.push_class, a.goods_no, a.goods_name,
b.producing_area, b.specifications,a.groups_id,a.dept_id,b.near_term_days
FROM
goods a
JOIN goods_expand b ON a.id = b.goods_id
LEFT JOIN goods_mnemonic_code c ON a.id = c.goods_id AND c.is_deleted = ?
JOIN (
SELECT
DISTINCT goods_id FROM store_inventory WHERE department_id = ? AND inventory > ?
AND is_deleted = ?
) i ON a.id = i.goods_id


WHERE a.is_deleted = ? AND b.is_deleted = ? AND a.tenant_id = ?

AND (a.goods_no LIKE CONCAT(?, ?, ?)
OR a.goods_name LIKE CONCAT(?, ?, ?)
OR c.mnemonic_code LIKE CONCAT(?, ?, ?)
OR b.approve_no LIKE CONCAT(?, ?, ?)
)

) tmp
limit ?, ?







UPDATE `sl_pos_goods`.`gsc_product_location` SET `create_time` = ?, `update_time` = ? WHERE `id` = ? and `location` = ?

select a.order_sales_detail_id,
a.order_sales_promotion_id,
a.use_point,
a.discount_money
from order_sales_promotion_detail a
LEFT JOIN order_sales_promotion b
ON a.order_sales_promotion_id = b.id
WHERE b.order_sales_id=?

select a.order_sales_detail_id,
a.order_sales_promotion_id,
a.use_point,
a.discount_money
from order_sales_promotion_detail a
LEFT JOIN order_sales_promotion b
ON a.order_sales_promotion_id = b.id
WHERE b.order_sales_id=305834673320226816
SQL: select a.order_sales_detail_id, a.order_sales_promotion_id, a.use_point, a.discount_money from order_sales_promotion_detail a
LEFT JOIN order_sales_promotion b ON a.order_sales_promotion_id = b.id WHERE b.order_sales_id=305834673320226816
查看格式化信息
===========================================
|ID|OPERATOR |NAME|EST.ROWS|EST.TIME(us)|
-------------------------------------------
|0 |HASH JOIN | |3 |86908 |
|1 | TABLE SCAN|b |2 |13740 |
|2 | TABLE SCAN|a |414870 |38440 |
===========================================
Outputs & filters:
-------------------------------------
0 - output([a.order_sales_detail_id(0x7fb24061ec90)], [a.order_sales_promotion_id(0x7fb24061d050)], [a.use_point(0x7fb24061f530)], [a.discount_money(0x7fb24061fae0)]),
filter(nil), rowset=256
equal_conds([a.order_sales_promotion_id(0x7fb24061d050) = b.id(0x7fb24061d310)(0x7fb24061c9a0)]), other_conds(nil)
1 - output([b.id(0x7fb24061d310)]), filter([b.order_sales_id(0x7fb24061e460) = 305834673320226816(0x7fb24061ddb0)]), rowset=256
access([b.id(0x7fb24061d310)], [b.order_sales_id(0x7fb24061e460)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([b.id(0x7fb24061d310)]), range(MIN ; MAX)always true
2 - output([a.order_sales_promotion_id(0x7fb24061d050)], [a.order_sales_detail_id(0x7fb24061ec90)], [a.use_point(0x7fb24061f530)], [a.discount_money(0x7fb24061fae0)]),
filter(nil), rowset=256
access([a.order_sales_promotion_id(0x7fb24061d050)], [a.order_sales_detail_id(0x7fb24061ec90)], [a.use_point(0x7fb24061f530)], [a.discount_money(0x7fb24061fae0)]),
partitions(p0)
is_index_back=false, is_global_index=false,
range_key([a.id(0x7fb240620130)]), range(MIN ; MAX)always true
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$C6D21C0F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$C6D21C0F" ("sl_pos_order"."b"@"SEL$1" "sl_pos_order"."a"@"SEL$1"))
USE_HASH(@"SEL$C6D21C0F" "sl_pos_order"."a"@"SEL$1")
FULL(@"SEL$C6D21C0F" "b"@"SEL$1")
FULL(@"SEL$C6D21C0F" "a"@"SEL$1")
OUTER_TO_INNER(@"SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.0.0.0')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
b:
table_rows:249567
physical_range_rows:271448
logical_range_rows:271448
index_back_rows:0
output_rows:1
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[order_sales_promotion]
table_id:501511:estimation info:(table_type:10, version:-1--1--1, logical_rc:265618, physical_rc:265618),
(table_type:11, version:-1--1--1, logical_rc:1646, physical_rc:1646),
(table_type:12, version:-1--1--1, logical_rc:2128, physical_rc:2128),
(table_type:0, version:-1--1--1, logical_rc:2056, physical_rc:2056)]
stats version:1703512818425632
a:
table_rows:387568
physical_range_rows:414870
logical_range_rows:414870
index_back_rows:0
output_rows:414870
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[order_sales_promotion_detail]
table_id:501632:estimation info:(table_type:10, version:-1--1--1, logical_rc:407615, physical_rc:407615),
(table_type:11, version:-1--1--1, logical_rc:1998, physical_rc:1998),
(table_type:12, version:-1--1--1, logical_rc:2633, physical_rc:2633),
(table_type:0, version:-1--1--1, logical_rc:2624, physical_rc:2624)]
stats version:1703512804134272
Plan Type:
LOCAL


alter table order_sales_promotion add index order_sales_id(order_sales_id);
alter table order_sales_promotion_detail add index order_sales_promotion_id(order_sales_promotion_id)


SQL: select a.order_sales_detail_id, a.order_sales_promotion_id, a.use_point, a.discount_money from order_sales_promotion_detail a LEFT JOIN order_sales_promotion b ON a.order_sales_promotion_id = b.id WHERE b.order_sales_id=305834673320226816
查看格式化信息
==============================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------
|0 |NESTED-LOOP JOIN | |2 |35 |
|1 | TABLE SCAN |b(order_sales_id) |1 |4 |
|2 | DISTRIBUTED TABLE SCAN|a(order_sales_promotion_id)|2 |31 |
==============================================================================
Outputs & filters:
-------------------------------------
0 - output([a.order_sales_detail_id(0x7fb25b21ecb0)], [a.order_sales_promotion_id(0x7fb25b21d070)], [a.use_point(0x7fb25b21f550)], [a.discount_money(0x7fb25b21fb00)]),
filter(nil), rowset=256
conds(nil), nl_params_([b.id(0x7fb25b21d330)]), batch_join=true
1 - output([b.id(0x7fb25b21d330)]), filter(nil), rowset=256
access([b.id(0x7fb25b21d330)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([b.order_sales_id(0x7fb25b21e480)], [b.id(0x7fb25b21d330)]), range(305834673320226816,MIN ; 305834673320226816,MAX),
range_cond([b.order_sales_id(0x7fb25b21e480) = 305834673320226816(0x7fb25b21ddd0)])
2 - output([a.order_sales_promotion_id(0x7fb25b21d070)], [a.order_sales_detail_id(0x7fb25b21ecb0)], [a.use_point(0x7fb25b21f550)], [a.discount_money(0x7fb25b21fb00)]),
filter(nil), rowset=256
access([GROUP_ID(0x7fb25b3121c0)], [a.id(0x7fb25b220150)], [a.order_sales_promotion_id(0x7fb25b21d070)], [a.order_sales_detail_id(0x7fb25b21ecb0)],
[a.use_point(0x7fb25b21f550)], [a.discount_money(0x7fb25b21fb00)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.order_sales_promotion_id(0x7fb25b21d070)], [a.id(0x7fb25b220150)]), range(MIN ; MAX),
range_cond([a.order_sales_promotion_id(0x7fb25b21d070) = :1(0x7fb25b2bef70)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$C6D21C0F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$C6D21C0F" ("sl_pos_order"."b"@"SEL$1" "sl_pos_order"."a"@"SEL$1"))
USE_NL(@"SEL$C6D21C0F" "sl_pos_order"."a"@"SEL$1")
INDEX(@"SEL$C6D21C0F" "b"@"SEL$1" "order_sales_id")
INDEX(@"SEL$C6D21C0F" "a"@"SEL$1" "order_sales_promotion_id")
USE_DAS(@"SEL$C6D21C0F" "a"@"SEL$1")
OUTER_TO_INNER(@"SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.0.0.0')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
b:
table_rows:249567
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[order_sales_id]
pruned_index_name:[order_sales_promotion]
table_id:501748:estimation info:(table_type:10, version:-1--1--1, logical_rc:1, physical_rc:1),
(table_type:0, version:-1--1--1, logical_rc:0, physical_rc:0)]
stats version:1703512818425632
a:
table_rows:387568
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:1
est_method:local_storage
optimization_method:cost_based
avaiable_index_name:[order_sales_promotion_id]
unstable_index_name:[order_sales_promotion_detail]
table_id:501749:estimation info:(table_type:10, version:-1--1--1, logical_rc:415085, physical_rc:415085),
(table_type:12, version:-1--1--1, logical_rc:1, physical_rc:1),
(table_type:0, version:-1--1--1, logical_rc:7, physical_rc:7)]
stats version:1703512804134272
Plan Type:
LOCAL





SELECT
b.dict_code,b.dict_msg,b.dict_type_name
FROM
sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = ? AND a.is_deleted = ? AND b.is_deleted = ? AND b.tenant_id IN
(
?
,
?
)

select osd.id,
osd.tenant_id,
osd.department_id,
osd.order_sales_id,
osd.goods_id,
osd.goods_name,
osd.goods_validate,
osd.goods_no,
osd.is_dismantle,
osd.dismantle_id,
osd.specifications,
osd.producing_batch_number_id,
osd.producing_batch_number,
osd.push_class,
osd.factory_name,
osd.producing_area,
osd.units,
osd.price,
osd.member_price,
osd.goods_num,
osd.receivable_money,
osd.discount_money,
osd.actual_receivable_money,
osd.is_refund,
osd.salesman_id,
osd.salesman_name,
osd.create_user_id,
osd.update_user_id,
osd.create_time,
osd.update_time,
osd.refund_num,
osd.is_ephedrine,
osd.goods_type,
osd.exchange_type,
ospd.use_points,
ospd2.use_point
from order_sales_detail osd
left join order_sales_points_detail ospd on osd.id = ospd.order_sales_detail_id
left join order_sales_promotion_detail ospd2 on osd.id = ospd2.order_sales_detail_id
where
osd.is_deleted = ?
and osd.order_sales_id = ?






SELECT /*+ read_consistency(weak) ob_querytimeout(100000000) */ substr(usec_to_time(request_time),1,19) request_time_, s.svr_ip, s.client_Ip, s.sid,s.tenant_id, s.tenant_name, s.user_name, s.db_name, s.query_sql, s.plan_id, s.plan_type, s.affected_rows, s.return_rows, s.ret_code, s.event, s.elapsed_time, s.queue_time, s.execute_time
FROM oceanbase.gv$ob_sql_audit s
WHERE 1=1 and s.tenant_id = 1002
and user_name='u_tpcc' and query_sql like 'UPDATE `sl_pos_goods`.`gsc_product_location` SET `create_time`%'
and request_time >= time_to_usec(date_sub(CURRENT_TIMESTAMP, interval 5 minute ))
ORDER BY request_time DESC
LIMIT 10






SELECT
bothOfAll.*
from
(
SELECT
os.id,
os.department_id,
os.department_name,
os.region_code,
os.region_name,
os.long_store_no,
(0.00 - rf.refund_money) as receivable_money,
os.change_money,
0 as discount_money,
(0.00 - rf.refund_money) as actual_receivable_money,
os.type,
os.sub_type,
os.medical_insurance_business_class,
os.medical_insurance_class,
os.type_source,
rf.status,
os.order_time,
rf.refund_time as finish_time,
rf.accounting_day,
os.classes_setting_id,
os.classes_name,
os.cashier_id,
os.cashier_name,
os.cashier_no,
os.member_id,
os.member_phone,
os.member_name,
os.member_card_no,
os.member_card_type_id,
os.member_card_type,
os.member_points,
os.is_ultimate_member,
os.detail_num,
(0 - rf.give_points) as give_points,
os.hub_send_flag,
os.is_ephedrine,
os.is_high_risk,
os.create_user_id,
os.update_user_id,
rf.create_time as create_time,
os.update_time,
os.is_deleted,
os.tenant_id,
os.id as order_sales_id,
1 as is_refund,
rf.refund_money as refund_money,
rf.id as refundId,
opr.id orderPayResultId,
osim.order_source orderSyncSource
FROM
order_sales os
LEFT JOIN order_refund rf on rf.order_sales_id = os.id
LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id
LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id
AND rf.department_id = 270661884600029197
JOIN (
select
order_refund_id,
max(goods_id) as goods_id
from
order_refund_detail
where
goods_no = '8218424'
group by
order_refund_id
) osd on osd.order_refund_id = rf.id
WHERE
os.is_deleted = 0
and rf.is_deleted = 0
AND rf.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781'
AND rf.department_id = 270661884600029197
AND rf.status != 3
and osd.goods_id is not null
UNION ALL
SELECT
os.id,
os.department_id,
os.department_name,
os.region_code,
os.region_name,
os.long_store_no,
os.receivable_money,
os.change_money,
os.discount_money,
os.actual_receivable_money,
os.type,
os.sub_type,
os.medical_insurance_business_class,
os.medical_insurance_class,
os.type_source,
os.status,
os.order_time,
os.finish_time,
os.accounting_day,
os.classes_setting_id,
os.classes_name,
os.cashier_id,
os.cashier_name,
os.cashier_no,
os.member_id,
os.member_phone,
os.member_name,
os.member_card_no,
os.member_card_type_id,
os.member_card_type,
os.member_points,
os.is_ultimate_member,
os.detail_num,
os.give_points,
os.hub_send_flag,
os.is_ephedrine,
os.is_high_risk,
os.create_user_id,
os.update_user_id,
os.create_time,
os.update_time,
os.is_deleted,
os.tenant_id,
os.id as order_sales_id,
0 as is_refund,
0 as refund_money,
null as refundId,
opr.id orderPayResultId,
osim.order_source orderSyncSource
FROM
order_sales os
LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id
LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id
JOIN (
select
order_sales_id,
max(goods_id) as goods_id
from
order_sales_detail
where
goods_no = '8218424'
group by
order_sales_id
) osd on osd.order_sales_id = os.id
WHERE
os.is_deleted = 0
AND os.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781'
AND os.department_id = 270661884600029197
and os.status != 17
and osd.goods_id is not null
) as bothOfAll
ORDER BY
finish_time desc, create_time desc
LIMIT 15





SQL: SELECT bothOfAll.* from ( SELECT os.id, os.department_id, os.department_name, os.region_code, os.region_name, os.long_store_no, (0.00 - rf.refund_money) as receivable_money, os.change_money, 0 as discount_money, (0.00 - rf.refund_money) as actual_receivable_money, os.type, os.sub_type, os.medical_insurance_business_class, os.medical_insurance_class, os.type_source, rf.status, os.order_time, rf.refund_time as finish_time, rf.accounting_day, os.classes_setting_id, os.classes_name, os.cashier_id, os.cashier_name, os.cashier_no, os.member_id, os.member_phone, os.member_name, os.member_card_no, os.member_card_type_id, os.member_card_type, os.member_points, os.is_ultimate_member, os.detail_num, (0 - rf.give_points) as give_points, os.hub_send_flag, os.is_ephedrine, os.is_high_risk, os.create_user_id, os.update_user_id, rf.create_time as create_time, os.update_time, os.is_deleted, os.tenant_id, os.id as order_sales_id, 1 as is_refund, rf.refund_money as refund_money, rf.id as refundId, opr.id orderPayResultId, osim.order_source orderSyncSource FROM order_sales os LEFT JOIN order_refund rf on rf.order_sales_id = os.id LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id AND rf.department_id = 270661884600029197 JOIN ( select order_refund_id, max(goods_id) as goods_id from order_refund_detail where goods_no = '8218424' group by order_refund_id ) osd on osd.order_refund_id = rf.id WHERE os.is_deleted = 0 and rf.is_deleted = 0 AND rf.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781' AND rf.department_id = 270661884600029197 AND rf.status != 3 and osd.goods_id is not null UNION ALL SELECT os.id, os.department_id, os.department_name, os.region_code, os.region_name, os.long_store_no, os.receivable_money, os.change_money, os.discount_money, os.actual_receivable_money, os.type, os.sub_type, os.medical_insurance_business_class, os.medical_insurance_class, os.type_source, os.status, os.order_time, os.finish_time, os.accounting_day, os.classes_setting_id, os.classes_name, os.cashier_id, os.cashier_name, os.cashier_no, os.member_id, os.member_phone, os.member_name, os.member_card_no, os.member_card_type_id, os.member_card_type, os.member_points, os.is_ultimate_member, os.detail_num, os.give_points, os.hub_send_flag, os.is_ephedrine, os.is_high_risk, os.create_user_id, os.update_user_id, os.create_time, os.update_time, os.is_deleted, os.tenant_id, os.id as order_sales_id, 0 as is_refund, 0 as refund_money, null as refundId, opr.id orderPayResultId, osim.order_source orderSyncSource FROM order_sales os LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id JOIN ( select order_sales_id, max(goods_id) as goods_id from order_sales_detail where goods_no = '8218424' group by order_sales_id ) osd on osd.order_sales_id = os.id WHERE os.is_deleted = 0 AND os.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781' AND os.department_id = 270661884600029197 and os.status != 17 and osd.goods_id is not null ) as bothOfAll ORDER BY finish_time desc, create_time desc LIMIT 15
查看格式化信息
=====================================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------------------------------------------
|0 |TOP-N SORT | |15 |31839782 |
|1 |└─UNION ALL | |30 |31839748 |
|2 | ├─LIMIT | |15 |35091 |
|3 | │ └─NESTED-LOOP OUTER JOIN | |15 |35091 |
|4 | │ ├─NESTED-LOOP OUTER JOIN | |15 |34829 |
|5 | │ │ ├─SUBPLAN SCAN |VIEW1 |15 |34566 |
|6 | │ │ │ └─TOP-N SORT | |15 |34566 |
|7 | │ │ │ └─NESTED-LOOP JOIN | |190 |34532 |
|8 | │ │ │ ├─NESTED-LOOP JOIN | |183 |31074 |
|9 | │ │ │ │ ├─TABLE RANGE SCAN |rf(idx_order_refund_department_id) |842 |4141 |
|10| │ │ │ │ └─SUBPLAN SCAN |osd |1 |32 |
|11| │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|order_refund_detail(idx_order_refund_id) |1 |32 |
|12| │ │ │ └─DISTRIBUTED TABLE GET |os |1 |19 |
|13| │ │ └─DISTRIBUTED TABLE GET |osim |1 |18 |
|14| │ └─DISTRIBUTED TABLE RANGE SCAN |opr(uni_order_sales_id) |1 |18 |
|15| └─LIMIT | |15 |31804657 |
|16| └─NESTED-LOOP OUTER JOIN | |15 |31804657 |
|17| ├─NESTED-LOOP OUTER JOIN | |15 |31804394 |
|18| │ ├─SUBPLAN SCAN |VIEW2 |15 |31804137 |
|19| │ │ └─TOP-N SORT | |15 |31804137 |
|20| │ │ └─NESTED-LOOP JOIN | |1970 |31804034 |
|21| │ │ ├─TABLE FULL SCAN |os(idx_finish_time,Reverse) |3570 |31690225 |
|22| │ │ └─SUBPLAN SCAN |osd |1 |32 |
|23| │ │ └─DISTRIBUTED TABLE RANGE SCAN |order_sales_detail(idx_order_sales_detail_order_sales_id)|1 |32 |
|24| │ └─DISTRIBUTED TABLE GET |osim |1 |18 |
|25| └─DISTRIBUTED TABLE RANGE SCAN |opr(uni_order_sales_id) |1 |18 |
=====================================================================================================================================
Outputs & filters:
-------------------------------------
0 - output([UNION([1])(0x7f6814b52930)], [UNION([2])(0x7f6814b52b80)], [UNION([3])(0x7f6814b52dd0)], [UNION([4])(0x7f6814b53020)], [UNION([5])(0x7f6814b53270)],
[UNION([6])(0x7f6814b534c0)], [UNION([7])(0x7f6814b53710)], [UNION([8])(0x7f6814b53960)], [UNION([9])(0x7f6814b53bb0)], [UNION([10])(0x7f6814b53e00)],
[UNION([11])(0x7f6814b54050)], [UNION([12])(0x7f6814b542a0)], [UNION([13])(0x7f6814b544f0)], [UNION([14])(0x7f6814b54740)], [UNION([15])(0x7f6814b54990)],
[UNION([16])(0x7f6814b54be0)], [UNION([17])(0x7f6814b54e30)], [UNION([18])(0x7f6814b62990)], [UNION([19])(0x7f6814b62be0)], [UNION([20])(0x7f6814b62e30)],
[UNION([21])(0x7f6814b63080)], [UNION([22])(0x7f6814b632d0)], [UNION([23])(0x7f6814b63520)], [UNION([24])(0x7f6814b63770)], [UNION([25])(0x7f6814b639c0)],
[UNION([26])(0x7f6814b63c10)], [UNION([27])(0x7f6814b63e60)], [UNION([28])(0x7f6814b640b0)], [UNION([29])(0x7f6814b64300)], [UNION([30])(0x7f6814b64550)],
[UNION([31])(0x7f6814b647a0)], [UNION([32])(0x7f6814b649f0)], [UNION([33])(0x7f6814b64c40)], [UNION([34])(0x7f6814b64e90)], [UNION([35])(0x7f6814b650e0)],
[UNION([36])(0x7f6814b65330)], [UNION([37])(0x7f6814b80790)], [UNION([38])(0x7f6814b809e0)], [UNION([39])(0x7f6814b80c30)], [UNION([40])(0x7f6814b80e80)],
[UNION([41])(0x7f6814b810d0)], [UNION([42])(0x7f6814b81320)], [UNION([43])(0x7f6814b81570)], [UNION([44])(0x7f6814b817c0)], [UNION([45])(0x7f6814b81a10)],
[UNION([46])(0x7f6814b81c60)], [UNION([47])(0x7f6814b81eb0)], [UNION([48])(0x7f6814b82100)], [UNION([49])(0x7f6814b82350)]), filter(nil), rowset=256
sort_keys([UNION([18])(0x7f6814b62990), DESC], [UNION([40])(0x7f6814b80e80), DESC]), topn(15)
1 - output([UNION([18])(0x7f6814b62990)], [UNION([40])(0x7f6814b80e80)], [UNION([1])(0x7f6814b52930)], [UNION([2])(0x7f6814b52b80)], [UNION([3])(0x7f6814b52dd0)],
[UNION([4])(0x7f6814b53020)], [UNION([5])(0x7f6814b53270)], [UNION([6])(0x7f6814b534c0)], [UNION([7])(0x7f6814b53710)], [UNION([8])(0x7f6814b53960)], [UNION([9])(0x7f6814b53bb0)],
[UNION([10])(0x7f6814b53e00)], [UNION([11])(0x7f6814b54050)], [UNION([12])(0x7f6814b542a0)], [UNION([13])(0x7f6814b544f0)], [UNION([14])(0x7f6814b54740)],
[UNION([15])(0x7f6814b54990)], [UNION([16])(0x7f6814b54be0)], [UNION([17])(0x7f6814b54e30)], [UNION([19])(0x7f6814b62be0)], [UNION([20])(0x7f6814b62e30)],
[UNION([21])(0x7f6814b63080)], [UNION([22])(0x7f6814b632d0)], [UNION([23])(0x7f6814b63520)], [UNION([24])(0x7f6814b63770)], [UNION([25])(0x7f6814b639c0)],
[UNION([26])(0x7f6814b63c10)], [UNION([27])(0x7f6814b63e60)], [UNION([28])(0x7f6814b640b0)], [UNION([29])(0x7f6814b64300)], [UNION([30])(0x7f6814b64550)],
[UNION([31])(0x7f6814b647a0)], [UNION([32])(0x7f6814b649f0)], [UNION([33])(0x7f6814b64c40)], [UNION([34])(0x7f6814b64e90)], [UNION([35])(0x7f6814b650e0)],
[UNION([36])(0x7f6814b65330)], [UNION([37])(0x7f6814b80790)], [UNION([38])(0x7f6814b809e0)], [UNION([39])(0x7f6814b80c30)], [UNION([41])(0x7f6814b810d0)],
[UNION([42])(0x7f6814b81320)], [UNION([43])(0x7f6814b81570)], [UNION([44])(0x7f6814b817c0)], [UNION([45])(0x7f6814b81a10)], [UNION([46])(0x7f6814b81c60)],
[UNION([47])(0x7f6814b81eb0)], [UNION([48])(0x7f6814b82100)], [UNION([49])(0x7f6814b82350)]), filter(nil), rowset=256
2 - output([VIEW1.os.id(0x7f6814bfa590)], [VIEW1.os.department_id(0x7f6814bfb180)], [VIEW1.os.department_name(0x7f6814bfb480)], [VIEW1.os.region_code(0x7f6814bfb770)],
[VIEW1.os.region_name(0x7f6814bfba60)], [VIEW1.os.long_store_no(0x7f6814bfbd60)], [0.00 - VIEW1.rf.refund_money(0x7f6814bfc050)(0x7f6814aa3a50)], [VIEW1.os.change_money(0x7f6814bfc340)],
[cast(0, DECIMAL(24, 4))(0x7f6814b4fc70)], [0.00 - VIEW1.rf.refund_money(0x7f6814bfc050)(0x7f6814aa3a50)], [VIEW1.os.type(0x7f6814bfc630)], [VIEW1.os.sub_type(0x7f6814bfc920)],
[VIEW1.os.medical_insurance_business_class(0x7f6814bfcc30)], [VIEW1.os.medical_insurance_class(0x7f6814bfcf30)], [VIEW1.os.type_source(0x7f6814bfd220)],
[VIEW1.rf.status(0x7f6bd6c11960)], [VIEW1.os.order_time(0x7f6bd6c11c50)], [VIEW1.rf.refund_time(0x7f6814bfab90)], [VIEW1.rf.accounting_day(0x7f6bd6c11f50)],
[VIEW1.os.classes_setting_id(0x7f6bd6c12250)], [VIEW1.os.classes_name(0x7f6bd6c12540)], [VIEW1.os.cashier_id(0x7f6bd6c12830)], [VIEW1.os.cashier_name(0x7f6bd6c12b20)],
[VIEW1.os.cashier_no(0x7f6bd6c12e10)], [VIEW1.os.member_id(0x7f6bd6c13100)], [VIEW1.os.member_phone(0x7f6bd6c133f0)], [VIEW1.os.member_name(0x7f6bd6c136e0)],
[VIEW1.os.member_card_no(0x7f6bd6c139e0)], [VIEW1.os.member_card_type_id(0x7f6bd6c13ce0)], [VIEW1.os.member_card_type(0x7f6bd6c13fe0)], [VIEW1.os.member_points(0x7f6bd6c142e0)],
[VIEW1.os.is_ultimate_member(0x7f6bd6c145e0)], [VIEW1.os.detail_num(0x7f6bd6c148d0)], [0 - VIEW1.rf.give_points(0x7f6bd6c14bc0)(0x7f6814abc0b0)], [VIEW1.os.hub_send_flag(0x7f6bd6c14ec0)],
[VIEW1.os.is_ephedrine(0x7f6bd6c303c0)], [VIEW1.os.is_high_risk(0x7f6bd6c306b0)], [VIEW1.os.create_user_id(0x7f6bd6c309b0)], [VIEW1.os.update_user_id(0x7f6bd6c30cb0)],
[VIEW1.rf.create_time(0x7f6814bfae80)], [VIEW1.os.update_time(0x7f6bd6c30fa0)], [VIEW1.os.is_deleted(0x7f6bd6c31290)], [VIEW1.os.tenant_id(0x7f6bd6c31580)],
[VIEW1.os.id(0x7f6814bfa590)], [1], [VIEW1.rf.refund_money(0x7f6814bfc050)], [VIEW1.rf.id(0x7f6bd6c31870)], [opr.id(0x7f6814adbcc0)], [osim.order_source(0x7f6814adc2c0)]), filter(nil), rowset=256
limit(15), offset(nil)
3 - output([VIEW1.os.id(0x7f6814bfa590)], [VIEW1.os.department_id(0x7f6814bfb180)], [VIEW1.os.department_name(0x7f6814bfb480)], [VIEW1.os.region_code(0x7f6814bfb770)],
[VIEW1.os.region_name(0x7f6814bfba60)], [VIEW1.os.long_store_no(0x7f6814bfbd60)], [VIEW1.os.change_money(0x7f6814bfc340)], [VIEW1.os.type(0x7f6814bfc630)],
[VIEW1.os.sub_type(0x7f6814bfc920)], [VIEW1.os.medical_insurance_business_class(0x7f6814bfcc30)], [VIEW1.os.medical_insurance_class(0x7f6814bfcf30)], [VIEW1.os.type_source(0x7f6814bfd220)],
[VIEW1.rf.status(0x7f6bd6c11960)], [VIEW1.os.order_time(0x7f6bd6c11c50)], [VIEW1.rf.refund_time(0x7f6814bfab90)], [VIEW1.rf.accounting_day(0x7f6bd6c11f50)],
[VIEW1.os.classes_setting_id(0x7f6bd6c12250)], [VIEW1.os.classes_name(0x7f6bd6c12540)], [VIEW1.os.cashier_id(0x7f6bd6c12830)], [VIEW1.os.cashier_name(0x7f6bd6c12b20)],
[VIEW1.os.cashier_no(0x7f6bd6c12e10)], [VIEW1.os.member_id(0x7f6bd6c13100)], [VIEW1.os.member_phone(0x7f6bd6c133f0)], [VIEW1.os.member_name(0x7f6bd6c136e0)],
[VIEW1.os.member_card_no(0x7f6bd6c139e0)], [VIEW1.os.member_card_type_id(0x7f6bd6c13ce0)], [VIEW1.os.member_card_type(0x7f6bd6c13fe0)], [VIEW1.os.member_points(0x7f6bd6c142e0)],
[VIEW1.os.is_ultimate_member(0x7f6bd6c145e0)], [VIEW1.os.detail_num(0x7f6bd6c148d0)], [VIEW1.os.hub_send_flag(0x7f6bd6c14ec0)], [VIEW1.os.is_ephedrine(0x7f6bd6c303c0)],
[VIEW1.os.is_high_risk(0x7f6bd6c306b0)], [VIEW1.os.create_user_id(0x7f6bd6c309b0)], [VIEW1.os.update_user_id(0x7f6bd6c30cb0)], [VIEW1.rf.create_time(0x7f6814bfae80)],
[VIEW1.os.update_time(0x7f6bd6c30fa0)], [VIEW1.os.is_deleted(0x7f6bd6c31290)], [VIEW1.os.tenant_id(0x7f6bd6c31580)], [VIEW1.rf.refund_money(0x7f6814bfc050)],
[VIEW1.rf.id(0x7f6bd6c31870)], [opr.id(0x7f6814adbcc0)], [osim.order_source(0x7f6814adc2c0)], [VIEW1.rf.give_points(0x7f6bd6c14bc0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW1.os.id(0x7f6814bfa590)(:4)]), use_batch=true
4 - output([VIEW1.os.id(0x7f6814bfa590)], [VIEW1.os.department_id(0x7f6814bfb180)], [VIEW1.os.department_name(0x7f6814bfb480)], [VIEW1.os.region_code(0x7f6814bfb770)],
[VIEW1.os.region_name(0x7f6814bfba60)], [VIEW1.os.long_store_no(0x7f6814bfbd60)], [VIEW1.os.change_money(0x7f6814bfc340)], [VIEW1.os.type(0x7f6814bfc630)],
[VIEW1.os.sub_type(0x7f6814bfc920)], [VIEW1.os.medical_insurance_business_class(0x7f6814bfcc30)], [VIEW1.os.medical_insurance_class(0x7f6814bfcf30)], [VIEW1.os.type_source(0x7f6814bfd220)],
[VIEW1.rf.status(0x7f6bd6c11960)], [VIEW1.os.order_time(0x7f6bd6c11c50)], [VIEW1.rf.refund_time(0x7f6814bfab90)], [VIEW1.rf.accounting_day(0x7f6bd6c11f50)],
[VIEW1.os.classes_setting_id(0x7f6bd6c12250)], [VIEW1.os.classes_name(0x7f6bd6c12540)], [VIEW1.os.cashier_id(0x7f6bd6c12830)], [VIEW1.os.cashier_name(0x7f6bd6c12b20)],
[VIEW1.os.cashier_no(0x7f6bd6c12e10)], [VIEW1.os.member_id(0x7f6bd6c13100)], [VIEW1.os.member_phone(0x7f6bd6c133f0)], [VIEW1.os.member_name(0x7f6bd6c136e0)],
[VIEW1.os.member_card_no(0x7f6bd6c139e0)], [VIEW1.os.member_card_type_id(0x7f6bd6c13ce0)], [VIEW1.os.member_card_type(0x7f6bd6c13fe0)], [VIEW1.os.member_points(0x7f6bd6c142e0)],
[VIEW1.os.is_ultimate_member(0x7f6bd6c145e0)], [VIEW1.os.detail_num(0x7f6bd6c148d0)], [VIEW1.os.hub_send_flag(0x7f6bd6c14ec0)], [VIEW1.os.is_ephedrine(0x7f6bd6c303c0)],
[VIEW1.os.is_high_risk(0x7f6bd6c306b0)], [VIEW1.os.create_user_id(0x7f6bd6c309b0)], [VIEW1.os.update_user_id(0x7f6bd6c30cb0)], [VIEW1.rf.create_time(0x7f6814bfae80)],
[VIEW1.os.update_time(0x7f6bd6c30fa0)], [VIEW1.os.is_deleted(0x7f6bd6c31290)], [VIEW1.os.tenant_id(0x7f6bd6c31580)], [VIEW1.rf.refund_money(0x7f6814bfc050)],
[VIEW1.rf.id(0x7f6bd6c31870)], [osim.order_source(0x7f6814adc2c0)], [VIEW1.rf.give_points(0x7f6bd6c14bc0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW1.os.id(0x7f6814bfa590)(:5)], [VIEW1.rf.department_id = 270661884600029197(0x7f6814bfa8a0)(:6)]), use_batch=true
5 - output([VIEW1.os.id(0x7f6814bfa590)], [VIEW1.rf.department_id = 270661884600029197(0x7f6814bfa8a0)], [VIEW1.rf.refund_time(0x7f6814bfab90)], [VIEW1.rf.create_time(0x7f6814bfae80)],
[VIEW1.os.department_id(0x7f6814bfb180)], [VIEW1.os.department_name(0x7f6814bfb480)], [VIEW1.os.region_code(0x7f6814bfb770)], [VIEW1.os.region_name(0x7f6814bfba60)],
[VIEW1.os.long_store_no(0x7f6814bfbd60)], [VIEW1.rf.refund_money(0x7f6814bfc050)], [VIEW1.os.change_money(0x7f6814bfc340)], [VIEW1.os.type(0x7f6814bfc630)],
[VIEW1.os.sub_type(0x7f6814bfc920)], [VIEW1.os.medical_insurance_business_class(0x7f6814bfcc30)], [VIEW1.os.medical_insurance_class(0x7f6814bfcf30)], [VIEW1.os.type_source(0x7f6814bfd220)],
[VIEW1.rf.status(0x7f6bd6c11960)], [VIEW1.os.order_time(0x7f6bd6c11c50)], [VIEW1.rf.accounting_day(0x7f6bd6c11f50)], [VIEW1.os.classes_setting_id(0x7f6bd6c12250)],
[VIEW1.os.classes_name(0x7f6bd6c12540)], [VIEW1.os.cashier_id(0x7f6bd6c12830)], [VIEW1.os.cashier_name(0x7f6bd6c12b20)], [VIEW1.os.cashier_no(0x7f6bd6c12e10)],
[VIEW1.os.member_id(0x7f6bd6c13100)], [VIEW1.os.member_phone(0x7f6bd6c133f0)], [VIEW1.os.member_name(0x7f6bd6c136e0)], [VIEW1.os.member_card_no(0x7f6bd6c139e0)],
[VIEW1.os.member_card_type_id(0x7f6bd6c13ce0)], [VIEW1.os.member_card_type(0x7f6bd6c13fe0)], [VIEW1.os.member_points(0x7f6bd6c142e0)], [VIEW1.os.is_ultimate_member(0x7f6bd6c145e0)],
[VIEW1.os.detail_num(0x7f6bd6c148d0)], [VIEW1.rf.give_points(0x7f6bd6c14bc0)], [VIEW1.os.hub_send_flag(0x7f6bd6c14ec0)], [VIEW1.os.is_ephedrine(0x7f6bd6c303c0)],
[VIEW1.os.is_high_risk(0x7f6bd6c306b0)], [VIEW1.os.create_user_id(0x7f6bd6c309b0)], [VIEW1.os.update_user_id(0x7f6bd6c30cb0)], [VIEW1.os.update_time(0x7f6bd6c30fa0)],
[VIEW1.os.is_deleted(0x7f6bd6c31290)], [VIEW1.os.tenant_id(0x7f6bd6c31580)], [VIEW1.rf.id(0x7f6bd6c31870)]), filter(nil), rowset=256
access([VIEW1.os.id(0x7f6814bfa590)], [VIEW1.rf.department_id = 270661884600029197(0x7f6814bfa8a0)], [VIEW1.rf.refund_time(0x7f6814bfab90)], [VIEW1.rf.create_time(0x7f6814bfae80)],
[VIEW1.os.department_id(0x7f6814bfb180)], [VIEW1.os.department_name(0x7f6814bfb480)], [VIEW1.os.region_code(0x7f6814bfb770)], [VIEW1.os.region_name(0x7f6814bfba60)],
[VIEW1.os.long_store_no(0x7f6814bfbd60)], [VIEW1.rf.refund_money(0x7f6814bfc050)], [VIEW1.os.change_money(0x7f6814bfc340)], [VIEW1.os.type(0x7f6814bfc630)],
[VIEW1.os.sub_type(0x7f6814bfc920)], [VIEW1.os.medical_insurance_business_class(0x7f6814bfcc30)], [VIEW1.os.medical_insurance_class(0x7f6814bfcf30)], [VIEW1.os.type_source(0x7f6814bfd220)],
[VIEW1.rf.status(0x7f6bd6c11960)], [VIEW1.os.order_time(0x7f6bd6c11c50)], [VIEW1.rf.accounting_day(0x7f6bd6c11f50)], [VIEW1.os.classes_setting_id(0x7f6bd6c12250)],
[VIEW1.os.classes_name(0x7f6bd6c12540)], [VIEW1.os.cashier_id(0x7f6bd6c12830)], [VIEW1.os.cashier_name(0x7f6bd6c12b20)], [VIEW1.os.cashier_no(0x7f6bd6c12e10)],
[VIEW1.os.member_id(0x7f6bd6c13100)], [VIEW1.os.member_phone(0x7f6bd6c133f0)], [VIEW1.os.member_name(0x7f6bd6c136e0)], [VIEW1.os.member_card_no(0x7f6bd6c139e0)],
[VIEW1.os.member_card_type_id(0x7f6bd6c13ce0)], [VIEW1.os.member_card_type(0x7f6bd6c13fe0)], [VIEW1.os.member_points(0x7f6bd6c142e0)], [VIEW1.os.is_ultimate_member(0x7f6bd6c145e0)],
[VIEW1.os.detail_num(0x7f6bd6c148d0)], [VIEW1.rf.give_points(0x7f6bd6c14bc0)], [VIEW1.os.hub_send_flag(0x7f6bd6c14ec0)], [VIEW1.os.is_ephedrine(0x7f6bd6c303c0)],
[VIEW1.os.is_high_risk(0x7f6bd6c306b0)], [VIEW1.os.create_user_id(0x7f6bd6c309b0)], [VIEW1.os.update_user_id(0x7f6bd6c30cb0)], [VIEW1.os.update_time(0x7f6bd6c30fa0)],
[VIEW1.os.is_deleted(0x7f6bd6c31290)], [VIEW1.os.tenant_id(0x7f6bd6c31580)], [VIEW1.rf.id(0x7f6bd6c31870)])
6 - output([os.id(0x7f6814a77730)], [rf.department_id(0x7f6814a7d4a0) = 270661884600029197(0x7f6814a7cd50)], [rf.refund_time(0x7f6814ab5e40)], [rf.create_time(0x7f6814a9a070)],
[os.department_id(0x7f6814a9fad0)], [os.department_name(0x7f6814aa00d0)], [os.region_code(0x7f6814aa06d0)], [os.region_name(0x7f6814aa0cd0)], [os.long_store_no(0x7f6814aa12d0)],
[rf.refund_money(0x7f6814aa41a0)], [os.change_money(0x7f6814aa4820)], [os.type(0x7f6814aa5e10)], [os.sub_type(0x7f6814aa6410)], [os.medical_insurance_business_class(0x7f6814aa6a10)],
[os.medical_insurance_class(0x7f6814aa7010)], [os.type_source(0x7f6814aa7610)], [rf.status(0x7f6814a9dcc0)], [os.order_time(0x7f6814aa7f30)], [rf.accounting_day(0x7f6814ab6440)],
[os.classes_setting_id(0x7f6814ab6a40)], [os.classes_name(0x7f6814ab7040)], [os.cashier_id(0x7f6814ab7640)], [os.cashier_name(0x7f6814ab7c40)], [os.cashier_no(0x7f6814ab8240)],
[os.member_id(0x7f6814ab8840)], [os.member_phone(0x7f6814ab8e40)], [os.member_name(0x7f6814ab9440)], [os.member_card_no(0x7f6814ab9a40)], [os.member_card_type_id(0x7f6814aba040)],
[os.member_card_type(0x7f6814aba640)], [os.member_points(0x7f6814abac40)], [os.is_ultimate_member(0x7f6814abb240)], [os.detail_num(0x7f6814abb840)], [rf.give_points(0x7f6814abc800)],
[os.hub_send_flag(0x7f6814abce80)], [os.is_ephedrine(0x7f6814abd480)], [os.is_high_risk(0x7f6814ad8c90)], [os.create_user_id(0x7f6814ad9290)], [os.update_user_id(0x7f6814ad9890)],
[os.update_time(0x7f6814ada1b0)], [os.is_deleted(0x7f6814a967b0)], [os.tenant_id(0x7f6814adaad0)], [rf.id(0x7f6814a95550)]), filter(nil), rowset=256
sort_keys([rf.refund_time(0x7f6814ab5e40), DESC], [rf.create_time(0x7f6814a9a070), DESC]), topn(15)
7 - output([rf.refund_time(0x7f6814ab5e40)], [rf.create_time(0x7f6814a9a070)], [os.id(0x7f6814a77730)], [os.department_id(0x7f6814a9fad0)], [os.department_name(0x7f6814aa00d0)],
[os.region_code(0x7f6814aa06d0)], [os.region_name(0x7f6814aa0cd0)], [os.long_store_no(0x7f6814aa12d0)], [rf.refund_money(0x7f6814aa41a0)], [os.change_money(0x7f6814aa4820)],
[os.type(0x7f6814aa5e10)], [os.sub_type(0x7f6814aa6410)], [os.medical_insurance_business_class(0x7f6814aa6a10)], [os.medical_insurance_class(0x7f6814aa7010)],
[os.type_source(0x7f6814aa7610)], [rf.status(0x7f6814a9dcc0)], [os.order_time(0x7f6814aa7f30)], [rf.accounting_day(0x7f6814ab6440)], [os.classes_setting_id(0x7f6814ab6a40)],
[os.classes_name(0x7f6814ab7040)], [os.cashier_id(0x7f6814ab7640)], [os.cashier_name(0x7f6814ab7c40)], [os.cashier_no(0x7f6814ab8240)], [os.member_id(0x7f6814ab8840)],
[os.member_phone(0x7f6814ab8e40)], [os.member_name(0x7f6814ab9440)], [os.member_card_no(0x7f6814ab9a40)], [os.member_card_type_id(0x7f6814aba040)], [os.member_card_type(0x7f6814aba640)],
[os.member_points(0x7f6814abac40)], [os.is_ultimate_member(0x7f6814abb240)], [os.detail_num(0x7f6814abb840)], [rf.give_points(0x7f6814abc800)], [os.hub_send_flag(0x7f6814abce80)],
[os.is_ephedrine(0x7f6814abd480)], [os.is_high_risk(0x7f6814ad8c90)], [os.create_user_id(0x7f6814ad9290)], [os.update_user_id(0x7f6814ad9890)], [os.update_time(0x7f6814ada1b0)],
[os.is_deleted(0x7f6814a967b0)], [os.tenant_id(0x7f6814adaad0)], [rf.id(0x7f6814a95550)], [rf.department_id(0x7f6814a7d4a0)]), filter(nil), rowset=256
conds(nil), nl_params_([rf.order_sales_id(0x7f6814a77440)(:1)]), use_batch=true
8 - output([rf.refund_time(0x7f6814ab5e40)], [rf.create_time(0x7f6814a9a070)], [rf.refund_money(0x7f6814aa41a0)], [rf.status(0x7f6814a9dcc0)], [rf.accounting_day(0x7f6814ab6440)],
[rf.give_points(0x7f6814abc800)], [rf.id(0x7f6814a95550)], [rf.order_sales_id(0x7f6814a77440)], [rf.department_id(0x7f6814a7d4a0)]), filter(nil), rowset=256
conds(nil), nl_params_([rf.id(0x7f6814a95550)(:2)]), use_batch=false
9 - output([rf.id(0x7f6814a95550)], [rf.order_sales_id(0x7f6814a77440)], [rf.department_id(0x7f6814a7d4a0)], [rf.create_time(0x7f6814a9a070)], [rf.status(0x7f6814a9dcc0)],
[rf.refund_money(0x7f6814aa41a0)], [rf.refund_time(0x7f6814ab5e40)], [rf.accounting_day(0x7f6814ab6440)], [rf.give_points(0x7f6814abc800)]), filter([rf.create_time(0x7f6814a9a070)
>= INTERNAL_FUNCTION('2024-06-12 14:41:02.781', 114, 17)(0x7f6814bbac30)(0x7f6814a98aa0)], [rf.status(0x7f6814a9dcc0) != 3(0x7f6814a9d570)], [rf.is_deleted(0x7f6814a97a10)
= 0(0x7f6814a972c0)], [rf.create_time(0x7f6814a9a070) <= INTERNAL_FUNCTION('2024-12-12 14:41:02.781', 112, 17)(0x7f6814bbb860)(0x7f6814a991a0)]), rowset=256
access([rf.id(0x7f6814a95550)], [rf.order_sales_id(0x7f6814a77440)], [rf.department_id(0x7f6814a7d4a0)], [rf.is_deleted(0x7f6814a97a10)], [rf.create_time(0x7f6814a9a070)],
[rf.status(0x7f6814a9dcc0)], [rf.refund_money(0x7f6814aa41a0)], [rf.refund_time(0x7f6814ab5e40)], [rf.accounting_day(0x7f6814ab6440)], [rf.give_points(0x7f6814abc800)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([rf.department_id(0x7f6814a7d4a0)], [rf.id(0x7f6814a95550)]), range(270661884600029197,MIN ; 270661884600029197,MAX),
range_cond([rf.department_id(0x7f6814a7d4a0) = 270661884600029197(0x7f6814a7cd50)])
10 - output(nil), filter(nil), rowset=256
access(nil)
11 - output([order_refund_detail.order_refund_id(0x7f6814a911d0)]), filter([order_refund_detail.goods_no(0x7f6814a90940) = '8218424'(0x7f6814a901f0)]), rowset=256
access([order_refund_detail.id(0x7f6814bba2b0)], [order_refund_detail.goods_no(0x7f6814a90940)], [order_refund_detail.order_refund_id(0x7f6814a911d0)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([order_refund_detail.order_refund_id(0x7f6814a911d0)], [order_refund_detail.id(0x7f6814bba2b0)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([order_refund_detail.order_refund_id(0x7f6814a911d0) = :2(0x7f687f762e00)])
12 - output([os.id(0x7f6814a77730)], [os.is_deleted(0x7f6814a967b0)], [os.department_id(0x7f6814a9fad0)], [os.department_name(0x7f6814aa00d0)], [os.region_code(0x7f6814aa06d0)],
[os.region_name(0x7f6814aa0cd0)], [os.long_store_no(0x7f6814aa12d0)], [os.change_money(0x7f6814aa4820)], [os.type(0x7f6814aa5e10)], [os.sub_type(0x7f6814aa6410)],
[os.medical_insurance_business_class(0x7f6814aa6a10)], [os.medical_insurance_class(0x7f6814aa7010)], [os.type_source(0x7f6814aa7610)], [os.order_time(0x7f6814aa7f30)],
[os.classes_setting_id(0x7f6814ab6a40)], [os.classes_name(0x7f6814ab7040)], [os.cashier_id(0x7f6814ab7640)], [os.cashier_name(0x7f6814ab7c40)], [os.cashier_no(0x7f6814ab8240)],
[os.member_id(0x7f6814ab8840)], [os.member_phone(0x7f6814ab8e40)], [os.member_name(0x7f6814ab9440)], [os.member_card_no(0x7f6814ab9a40)], [os.member_card_type_id(0x7f6814aba040)],
[os.member_card_type(0x7f6814aba640)], [os.member_points(0x7f6814abac40)], [os.is_ultimate_member(0x7f6814abb240)], [os.detail_num(0x7f6814abb840)], [os.hub_send_flag(0x7f6814abce80)],
[os.is_ephedrine(0x7f6814abd480)], [os.is_high_risk(0x7f6814ad8c90)], [os.create_user_id(0x7f6814ad9290)], [os.update_user_id(0x7f6814ad9890)], [os.update_time(0x7f6814ada1b0)],
[os.tenant_id(0x7f6814adaad0)]), filter([os.is_deleted(0x7f6814a967b0) = 0(0x7f6814a96060)]), rowset=256
access([GROUP_ID(0x7f6822bf4bb0)], [os.id(0x7f6814a77730)], [os.is_deleted(0x7f6814a967b0)], [os.department_id(0x7f6814a9fad0)], [os.department_name(0x7f6814aa00d0)],
[os.region_code(0x7f6814aa06d0)], [os.region_name(0x7f6814aa0cd0)], [os.long_store_no(0x7f6814aa12d0)], [os.change_money(0x7f6814aa4820)], [os.type(0x7f6814aa5e10)],
[os.sub_type(0x7f6814aa6410)], [os.medical_insurance_business_class(0x7f6814aa6a10)], [os.medical_insurance_class(0x7f6814aa7010)], [os.type_source(0x7f6814aa7610)],
[os.order_time(0x7f6814aa7f30)], [os.classes_setting_id(0x7f6814ab6a40)], [os.classes_name(0x7f6814ab7040)], [os.cashier_id(0x7f6814ab7640)], [os.cashier_name(0x7f6814ab7c40)],
[os.cashier_no(0x7f6814ab8240)], [os.member_id(0x7f6814ab8840)], [os.member_phone(0x7f6814ab8e40)], [os.member_name(0x7f6814ab9440)], [os.member_card_no(0x7f6814ab9a40)],
[os.member_card_type_id(0x7f6814aba040)], [os.member_card_type(0x7f6814aba640)], [os.member_points(0x7f6814abac40)], [os.is_ultimate_member(0x7f6814abb240)],
[os.detail_num(0x7f6814abb840)], [os.hub_send_flag(0x7f6814abce80)], [os.is_ephedrine(0x7f6814abd480)], [os.is_high_risk(0x7f6814ad8c90)], [os.create_user_id(0x7f6814ad9290)],
[os.update_user_id(0x7f6814ad9890)], [os.update_time(0x7f6814ada1b0)], [os.tenant_id(0x7f6814adaad0)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([os.id(0x7f6814a77730)]), range(MIN ; MAX),
range_cond([:1 = os.id(0x7f6814a77730)(0x7f687f730ca0)])
13 - output([osim.order_source(0x7f6814adc2c0)]), filter([:6]), rowset=256
access([GROUP_ID(0x7f6822bfe950)], [osim.order_source(0x7f6814adc2c0)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([osim.id(0x7f6814a7c240)]), range(MIN ; MAX),
range_cond([:5 = osim.id(0x7f6814a7c240)(0x7f6d55675730)])
14 - output([opr.id(0x7f6814adbcc0)]), filter(nil), rowset=256
access([GROUP_ID(0x7f60cc605f60)], [opr.id(0x7f6814adbcc0)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([opr.order_sales_id(0x7f6814a7ac40)], [opr.shadow_pk_0(0x7f6d55627d30)]), range(MIN ; MAX),
range_cond([:4 = opr.order_sales_id(0x7f6814a7ac40)(0x7f6d55651d80)])
15 - output([VIEW2.os.id(0x7f6bd6c58cc0)], [VIEW2.os.department_id(0x7f6bd6c595a0)], [VIEW2.os.department_name(0x7f6bd6c598a0)], [VIEW2.os.region_code(0x7f6bd6c59b90)],
[VIEW2.os.region_name(0x7f6bd6c59e80)], [VIEW2.os.long_store_no(0x7f6bd6c5a180)], [VIEW2.os.receivable_money(0x7f6bd6c5a480)], [VIEW2.os.change_money(0x7f6bd6c5a770)],
[VIEW2.os.discount_money(0x7f6bd6c5aa70)], [VIEW2.os.actual_receivable_money(0x7f6bd6c5ad70)], [VIEW2.os.type(0x7f6bd6c5b060)], [VIEW2.os.sub_type(0x7f6bd6c5b350)],
[VIEW2.os.medical_insurance_business_class(0x7f6bd6c5b660)], [VIEW2.os.medical_insurance_class(0x7f6bd6c5b960)], [VIEW2.os.type_source(0x7f6bd6c69560)],
[VIEW2.os.status(0x7f6bd6c69850)], [VIEW2.os.order_time(0x7f6bd6c69b40)], [VIEW2.os.finish_time(0x7f6bd6c58fb0)], [VIEW2.os.accounting_day(0x7f6bd6c69e40)],
[VIEW2.os.classes_setting_id(0x7f6bd6c6a140)], [VIEW2.os.classes_name(0x7f6bd6c6a430)], [VIEW2.os.cashier_id(0x7f6bd6c6a720)], [VIEW2.os.cashier_name(0x7f6bd6c6aa10)],
[VIEW2.os.cashier_no(0x7f6bd6c6ad00)], [VIEW2.os.member_id(0x7f6bd6c6aff0)], [VIEW2.os.member_phone(0x7f6bd6c6b2e0)], [VIEW2.os.member_name(0x7f6bd6c6b5d0)],
[VIEW2.os.member_card_no(0x7f6bd6c6b8d0)], [VIEW2.os.member_card_type_id(0x7f6bd6c6bbd0)], [VIEW2.os.member_card_type(0x7f6bd6c6bed0)], [VIEW2.os.member_points(0x7f6bd6c6c1d0)],
[VIEW2.os.is_ultimate_member(0x7f6bd6c6c4d0)], [VIEW2.os.detail_num(0x7f6bd6c6c7c0)], [cast(VIEW2.os.give_points(0x7f6bd6c6cab0), BIGINT(20, 0))(0x7f6814b507a0)],
[VIEW2.os.hub_send_flag(0x7f6bd6c87fc0)], [VIEW2.os.is_ephedrine(0x7f6bd6c882b0)], [VIEW2.os.is_high_risk(0x7f6bd6c885a0)], [VIEW2.os.create_user_id(0x7f6bd6c888a0)],
[VIEW2.os.update_user_id(0x7f6bd6c88ba0)], [VIEW2.os.create_time(0x7f6bd6c592a0)], [VIEW2.os.update_time(0x7f6bd6c88e90)], [VIEW2.os.is_deleted(0x7f6bd6c89180)],
[VIEW2.os.tenant_id(0x7f6bd6c89470)], [VIEW2.os.id(0x7f6bd6c58cc0)], [0], [cast(0, DECIMAL(24, 4))(0x7f6814b512d0)], [cast(NULL, BIGINT UNSIGNED(20, 0))(0x7f6814b51e00)],
[opr.id(0x7f6814b4ea30)], [osim.order_source(0x7f6814b4f030)]), filter(nil), rowset=256
limit(15), offset(nil)
16 - output([VIEW2.os.id(0x7f6bd6c58cc0)], [VIEW2.os.department_id(0x7f6bd6c595a0)], [VIEW2.os.department_name(0x7f6bd6c598a0)], [VIEW2.os.region_code(0x7f6bd6c59b90)],
[VIEW2.os.region_name(0x7f6bd6c59e80)], [VIEW2.os.long_store_no(0x7f6bd6c5a180)], [VIEW2.os.receivable_money(0x7f6bd6c5a480)], [VIEW2.os.change_money(0x7f6bd6c5a770)],
[VIEW2.os.discount_money(0x7f6bd6c5aa70)], [VIEW2.os.actual_receivable_money(0x7f6bd6c5ad70)], [VIEW2.os.type(0x7f6bd6c5b060)], [VIEW2.os.sub_type(0x7f6bd6c5b350)],
[VIEW2.os.medical_insurance_business_class(0x7f6bd6c5b660)], [VIEW2.os.medical_insurance_class(0x7f6bd6c5b960)], [VIEW2.os.type_source(0x7f6bd6c69560)],
[VIEW2.os.status(0x7f6bd6c69850)], [VIEW2.os.order_time(0x7f6bd6c69b40)], [VIEW2.os.finish_time(0x7f6bd6c58fb0)], [VIEW2.os.accounting_day(0x7f6bd6c69e40)],
[VIEW2.os.classes_setting_id(0x7f6bd6c6a140)], [VIEW2.os.classes_name(0x7f6bd6c6a430)], [VIEW2.os.cashier_id(0x7f6bd6c6a720)], [VIEW2.os.cashier_name(0x7f6bd6c6aa10)],
[VIEW2.os.cashier_no(0x7f6bd6c6ad00)], [VIEW2.os.member_id(0x7f6bd6c6aff0)], [VIEW2.os.member_phone(0x7f6bd6c6b2e0)], [VIEW2.os.member_name(0x7f6bd6c6b5d0)],
[VIEW2.os.member_card_no(0x7f6bd6c6b8d0)], [VIEW2.os.member_card_type_id(0x7f6bd6c6bbd0)], [VIEW2.os.member_card_type(0x7f6bd6c6bed0)], [VIEW2.os.member_points(0x7f6bd6c6c1d0)],
[VIEW2.os.is_ultimate_member(0x7f6bd6c6c4d0)], [VIEW2.os.detail_num(0x7f6bd6c6c7c0)], [VIEW2.os.hub_send_flag(0x7f6bd6c87fc0)], [VIEW2.os.is_ephedrine(0x7f6bd6c882b0)],
[VIEW2.os.is_high_risk(0x7f6bd6c885a0)], [VIEW2.os.create_user_id(0x7f6bd6c888a0)], [VIEW2.os.update_user_id(0x7f6bd6c88ba0)], [VIEW2.os.create_time(0x7f6bd6c592a0)],
[VIEW2.os.update_time(0x7f6bd6c88e90)], [VIEW2.os.is_deleted(0x7f6bd6c89180)], [VIEW2.os.tenant_id(0x7f6bd6c89470)], [opr.id(0x7f6814b4ea30)], [osim.order_source(0x7f6814b4f030)],
[VIEW2.os.give_points(0x7f6bd6c6cab0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW2.os.id(0x7f6bd6c58cc0)(:9)]), use_batch=true
17 - output([VIEW2.os.id(0x7f6bd6c58cc0)], [VIEW2.os.department_id(0x7f6bd6c595a0)], [VIEW2.os.department_name(0x7f6bd6c598a0)], [VIEW2.os.region_code(0x7f6bd6c59b90)],
[VIEW2.os.region_name(0x7f6bd6c59e80)], [VIEW2.os.long_store_no(0x7f6bd6c5a180)], [VIEW2.os.receivable_money(0x7f6bd6c5a480)], [VIEW2.os.change_money(0x7f6bd6c5a770)],
[VIEW2.os.discount_money(0x7f6bd6c5aa70)], [VIEW2.os.actual_receivable_money(0x7f6bd6c5ad70)], [VIEW2.os.type(0x7f6bd6c5b060)], [VIEW2.os.sub_type(0x7f6bd6c5b350)],
[VIEW2.os.medical_insurance_business_class(0x7f6bd6c5b660)], [VIEW2.os.medical_insurance_class(0x7f6bd6c5b960)], [VIEW2.os.type_source(0x7f6bd6c69560)],
[VIEW2.os.status(0x7f6bd6c69850)], [VIEW2.os.order_time(0x7f6bd6c69b40)], [VIEW2.os.finish_time(0x7f6bd6c58fb0)], [VIEW2.os.accounting_day(0x7f6bd6c69e40)],
[VIEW2.os.classes_setting_id(0x7f6bd6c6a140)], [VIEW2.os.classes_name(0x7f6bd6c6a430)], [VIEW2.os.cashier_id(0x7f6bd6c6a720)], [VIEW2.os.cashier_name(0x7f6bd6c6aa10)],
[VIEW2.os.cashier_no(0x7f6bd6c6ad00)], [VIEW2.os.member_id(0x7f6bd6c6aff0)], [VIEW2.os.member_phone(0x7f6bd6c6b2e0)], [VIEW2.os.member_name(0x7f6bd6c6b5d0)],
[VIEW2.os.member_card_no(0x7f6bd6c6b8d0)], [VIEW2.os.member_card_type_id(0x7f6bd6c6bbd0)], [VIEW2.os.member_card_type(0x7f6bd6c6bed0)], [VIEW2.os.member_points(0x7f6bd6c6c1d0)],
[VIEW2.os.is_ultimate_member(0x7f6bd6c6c4d0)], [VIEW2.os.detail_num(0x7f6bd6c6c7c0)], [VIEW2.os.hub_send_flag(0x7f6bd6c87fc0)], [VIEW2.os.is_ephedrine(0x7f6bd6c882b0)],
[VIEW2.os.is_high_risk(0x7f6bd6c885a0)], [VIEW2.os.create_user_id(0x7f6bd6c888a0)], [VIEW2.os.update_user_id(0x7f6bd6c88ba0)], [VIEW2.os.create_time(0x7f6bd6c592a0)],
[VIEW2.os.update_time(0x7f6bd6c88e90)], [VIEW2.os.is_deleted(0x7f6bd6c89180)], [VIEW2.os.tenant_id(0x7f6bd6c89470)], [osim.order_source(0x7f6814b4f030)],
[VIEW2.os.give_points(0x7f6bd6c6cab0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW2.os.id(0x7f6bd6c58cc0)(:10)]), use_batch=true
18 - output([VIEW2.os.id(0x7f6bd6c58cc0)], [VIEW2.os.finish_time(0x7f6bd6c58fb0)], [VIEW2.os.create_time(0x7f6bd6c592a0)], [VIEW2.os.department_id(0x7f6bd6c595a0)],
[VIEW2.os.department_name(0x7f6bd6c598a0)], [VIEW2.os.region_code(0x7f6bd6c59b90)], [VIEW2.os.region_name(0x7f6bd6c59e80)], [VIEW2.os.long_store_no(0x7f6bd6c5a180)],
[VIEW2.os.receivable_money(0x7f6bd6c5a480)], [VIEW2.os.change_money(0x7f6bd6c5a770)], [VIEW2.os.discount_money(0x7f6bd6c5aa70)], [VIEW2.os.actual_receivable_money(0x7f6bd6c5ad70)],
[VIEW2.os.type(0x7f6bd6c5b060)], [VIEW2.os.sub_type(0x7f6bd6c5b350)], [VIEW2.os.medical_insurance_business_class(0x7f6bd6c5b660)], [VIEW2.os.medical_insurance_class(0x7f6bd6c5b960)],
[VIEW2.os.type_source(0x7f6bd6c69560)], [VIEW2.os.status(0x7f6bd6c69850)], [VIEW2.os.order_time(0x7f6bd6c69b40)], [VIEW2.os.accounting_day(0x7f6bd6c69e40)],
[VIEW2.os.classes_setting_id(0x7f6bd6c6a140)], [VIEW2.os.classes_name(0x7f6bd6c6a430)], [VIEW2.os.cashier_id(0x7f6bd6c6a720)], [VIEW2.os.cashier_name(0x7f6bd6c6aa10)],
[VIEW2.os.cashier_no(0x7f6bd6c6ad00)], [VIEW2.os.member_id(0x7f6bd6c6aff0)], [VIEW2.os.member_phone(0x7f6bd6c6b2e0)], [VIEW2.os.member_name(0x7f6bd6c6b5d0)],
[VIEW2.os.member_card_no(0x7f6bd6c6b8d0)], [VIEW2.os.member_card_type_id(0x7f6bd6c6bbd0)], [VIEW2.os.member_card_type(0x7f6bd6c6bed0)], [VIEW2.os.member_points(0x7f6bd6c6c1d0)],
[VIEW2.os.is_ultimate_member(0x7f6bd6c6c4d0)], [VIEW2.os.detail_num(0x7f6bd6c6c7c0)], [VIEW2.os.give_points(0x7f6bd6c6cab0)], [VIEW2.os.hub_send_flag(0x7f6bd6c87fc0)],
[VIEW2.os.is_ephedrine(0x7f6bd6c882b0)], [VIEW2.os.is_high_risk(0x7f6bd6c885a0)], [VIEW2.os.create_user_id(0x7f6bd6c888a0)], [VIEW2.os.update_user_id(0x7f6bd6c88ba0)],
[VIEW2.os.update_time(0x7f6bd6c88e90)], [VIEW2.os.is_deleted(0x7f6bd6c89180)], [VIEW2.os.tenant_id(0x7f6bd6c89470)]), filter(nil), rowset=256
access([VIEW2.os.id(0x7f6bd6c58cc0)], [VIEW2.os.finish_time(0x7f6bd6c58fb0)], [VIEW2.os.create_time(0x7f6bd6c592a0)], [VIEW2.os.department_id(0x7f6bd6c595a0)],
[VIEW2.os.department_name(0x7f6bd6c598a0)], [VIEW2.os.region_code(0x7f6bd6c59b90)], [VIEW2.os.region_name(0x7f6bd6c59e80)], [VIEW2.os.long_store_no(0x7f6bd6c5a180)],
[VIEW2.os.receivable_money(0x7f6bd6c5a480)], [VIEW2.os.change_money(0x7f6bd6c5a770)], [VIEW2.os.discount_money(0x7f6bd6c5aa70)], [VIEW2.os.actual_receivable_money(0x7f6bd6c5ad70)],
[VIEW2.os.type(0x7f6bd6c5b060)], [VIEW2.os.sub_type(0x7f6bd6c5b350)], [VIEW2.os.medical_insurance_business_class(0x7f6bd6c5b660)], [VIEW2.os.medical_insurance_class(0x7f6bd6c5b960)],
[VIEW2.os.type_source(0x7f6bd6c69560)], [VIEW2.os.status(0x7f6bd6c69850)], [VIEW2.os.order_time(0x7f6bd6c69b40)], [VIEW2.os.accounting_day(0x7f6bd6c69e40)],
[VIEW2.os.classes_setting_id(0x7f6bd6c6a140)], [VIEW2.os.classes_name(0x7f6bd6c6a430)], [VIEW2.os.cashier_id(0x7f6bd6c6a720)], [VIEW2.os.cashier_name(0x7f6bd6c6aa10)],
[VIEW2.os.cashier_no(0x7f6bd6c6ad00)], [VIEW2.os.member_id(0x7f6bd6c6aff0)], [VIEW2.os.member_phone(0x7f6bd6c6b2e0)], [VIEW2.os.member_name(0x7f6bd6c6b5d0)],
[VIEW2.os.member_card_no(0x7f6bd6c6b8d0)], [VIEW2.os.member_card_type_id(0x7f6bd6c6bbd0)], [VIEW2.os.member_card_type(0x7f6bd6c6bed0)], [VIEW2.os.member_points(0x7f6bd6c6c1d0)],
[VIEW2.os.is_ultimate_member(0x7f6bd6c6c4d0)], [VIEW2.os.detail_num(0x7f6bd6c6c7c0)], [VIEW2.os.give_points(0x7f6bd6c6cab0)], [VIEW2.os.hub_send_flag(0x7f6bd6c87fc0)],
[VIEW2.os.is_ephedrine(0x7f6bd6c882b0)], [VIEW2.os.is_high_risk(0x7f6bd6c885a0)], [VIEW2.os.create_user_id(0x7f6bd6c888a0)], [VIEW2.os.update_user_id(0x7f6bd6c88ba0)],
[VIEW2.os.update_time(0x7f6bd6c88e90)], [VIEW2.os.is_deleted(0x7f6bd6c89180)], [VIEW2.os.tenant_id(0x7f6bd6c89470)])
19 - output([os.id(0x7f6814af16a0)], [os.finish_time(0x7f6814b29710)], [os.create_time(0x7f6814b0e620)], [os.department_id(0x7f6814b11440)], [os.department_name(0x7f6814b147d0)],
[os.region_code(0x7f6814b14dd0)], [os.region_name(0x7f6814b153d0)], [os.long_store_no(0x7f6814b159d0)], [os.receivable_money(0x7f6814b15fd0)], [os.change_money(0x7f6814b165d0)],
[os.discount_money(0x7f6814b16bd0)], [os.actual_receivable_money(0x7f6814b171d0)], [os.type(0x7f6814b196e0)], [os.sub_type(0x7f6814b19ce0)], [os.medical_insurance_business_class(0x7f6814b1a2e0)],
[os.medical_insurance_class(0x7f6814b1a8e0)], [os.type_source(0x7f6814b1aee0)], [os.status(0x7f6814b126a0)], [os.order_time(0x7f6814b1b800)], [os.accounting_day(0x7f6814b29d10)],
[os.classes_setting_id(0x7f6814b2a310)], [os.classes_name(0x7f6814b2a910)], [os.cashier_id(0x7f6814b2af10)], [os.cashier_name(0x7f6814b2b510)], [os.cashier_no(0x7f6814b2bb10)],
[os.member_id(0x7f6814b2c110)], [os.member_phone(0x7f6814b2c710)], [os.member_name(0x7f6814b2cd10)], [os.member_card_no(0x7f6814b2d310)], [os.member_card_type_id(0x7f6814b2d910)],
[os.member_card_type(0x7f6814b2df10)], [os.member_points(0x7f6814b2e510)], [os.is_ultimate_member(0x7f6814b2eb10)], [os.detail_num(0x7f6814b2f110)], [os.give_points(0x7f6814b2f710)],
[os.hub_send_flag(0x7f6814b2fd10)], [os.is_ephedrine(0x7f6814b30310)], [os.is_high_risk(0x7f6814b4bb20)], [os.create_user_id(0x7f6814b4c120)], [os.update_user_id(0x7f6814b4c720)],
[os.update_time(0x7f6814b4d040)], [os.is_deleted(0x7f6814b0bfc0)], [os.tenant_id(0x7f6814b4d960)]), filter(nil), rowset=256
sort_keys([os.finish_time(0x7f6814b29710), DESC], [os.create_time(0x7f6814b0e620), DESC]), topn(15), prefix_pos(1)
20 - output([os.finish_time(0x7f6814b29710)], [os.create_time(0x7f6814b0e620)], [os.id(0x7f6814af16a0)], [os.department_id(0x7f6814b11440)], [os.department_name(0x7f6814b147d0)],
[os.region_code(0x7f6814b14dd0)], [os.region_name(0x7f6814b153d0)], [os.long_store_no(0x7f6814b159d0)], [os.receivable_money(0x7f6814b15fd0)], [os.change_money(0x7f6814b165d0)],
[os.discount_money(0x7f6814b16bd0)], [os.actual_receivable_money(0x7f6814b171d0)], [os.type(0x7f6814b196e0)], [os.sub_type(0x7f6814b19ce0)], [os.medical_insurance_business_class(0x7f6814b1a2e0)],
[os.medical_insurance_class(0x7f6814b1a8e0)], [os.type_source(0x7f6814b1aee0)], [os.status(0x7f6814b126a0)], [os.order_time(0x7f6814b1b800)], [os.accounting_day(0x7f6814b29d10)],
[os.classes_setting_id(0x7f6814b2a310)], [os.classes_name(0x7f6814b2a910)], [os.cashier_id(0x7f6814b2af10)], [os.cashier_name(0x7f6814b2b510)], [os.cashier_no(0x7f6814b2bb10)],
[os.member_id(0x7f6814b2c110)], [os.member_phone(0x7f6814b2c710)], [os.member_name(0x7f6814b2cd10)], [os.member_card_no(0x7f6814b2d310)], [os.member_card_type_id(0x7f6814b2d910)],
[os.member_card_type(0x7f6814b2df10)], [os.member_points(0x7f6814b2e510)], [os.is_ultimate_member(0x7f6814b2eb10)], [os.detail_num(0x7f6814b2f110)], [os.give_points(0x7f6814b2f710)],
[os.hub_send_flag(0x7f6814b2fd10)], [os.is_ephedrine(0x7f6814b30310)], [os.is_high_risk(0x7f6814b4bb20)], [os.create_user_id(0x7f6814b4c120)], [os.update_user_id(0x7f6814b4c720)],
[os.update_time(0x7f6814b4d040)], [os.is_deleted(0x7f6814b0bfc0)], [os.tenant_id(0x7f6814b4d960)]), filter(nil), rowset=256
conds(nil), nl_params_([os.id(0x7f6814af16a0)(:7)]), use_batch=false
21 - output([os.id(0x7f6814af16a0)], [os.is_deleted(0x7f6814b0bfc0)], [os.create_time(0x7f6814b0e620)], [os.department_id(0x7f6814b11440)], [os.status(0x7f6814b126a0)],
[os.department_name(0x7f6814b147d0)], [os.region_code(0x7f6814b14dd0)], [os.region_name(0x7f6814b153d0)], [os.long_store_no(0x7f6814b159d0)], [os.receivable_money(0x7f6814b15fd0)],
[os.change_money(0x7f6814b165d0)], [os.discount_money(0x7f6814b16bd0)], [os.actual_receivable_money(0x7f6814b171d0)], [os.type(0x7f6814b196e0)], [os.sub_type(0x7f6814b19ce0)],
[os.medical_insurance_business_class(0x7f6814b1a2e0)], [os.medical_insurance_class(0x7f6814b1a8e0)], [os.type_source(0x7f6814b1aee0)], [os.order_time(0x7f6814b1b800)],
[os.finish_time(0x7f6814b29710)], [os.accounting_day(0x7f6814b29d10)], [os.classes_setting_id(0x7f6814b2a310)], [os.classes_name(0x7f6814b2a910)], [os.cashier_id(0x7f6814b2af10)],
[os.cashier_name(0x7f6814b2b510)], [os.cashier_no(0x7f6814b2bb10)], [os.member_id(0x7f6814b2c110)], [os.member_phone(0x7f6814b2c710)], [os.member_name(0x7f6814b2cd10)],
[os.member_card_no(0x7f6814b2d310)], [os.member_card_type_id(0x7f6814b2d910)], [os.member_card_type(0x7f6814b2df10)], [os.member_points(0x7f6814b2e510)],
[os.is_ultimate_member(0x7f6814b2eb10)], [os.detail_num(0x7f6814b2f110)], [os.give_points(0x7f6814b2f710)], [os.hub_send_flag(0x7f6814b2fd10)], [os.is_ephedrine(0x7f6814b30310)],
[os.is_high_risk(0x7f6814b4bb20)], [os.create_user_id(0x7f6814b4c120)], [os.update_user_id(0x7f6814b4c720)], [os.update_time(0x7f6814b4d040)], [os.tenant_id(0x7f6814b4d960)]), filter([os.department_id
(0x7f6814b11440) = 270661884600029197(0x7f6814b10cf0)], [os.create_time(0x7f6814b0e620) >= INTERNAL_FUNCTION('2024-06-12 14:41:02.781', 114, 17)(0x7f6814bbe990)(0x7f6814b0d050)],
[os.status(0x7f6814b126a0) != 17(0x7f6814b11f50)], [os.create_time(0x7f6814b0e620) <= INTERNAL_FUNCTION('2024-12-12 14:41:02.781', 112, 17)(0x7f6814bbf5c0)(0x7f6814b0d750)],
[os.is_deleted(0x7f6814b0bfc0) = 0(0x7f6814b0b870)]), rowset=256
access([os.id(0x7f6814af16a0)], [os.is_deleted(0x7f6814b0bfc0)], [os.create_time(0x7f6814b0e620)], [os.department_id(0x7f6814b11440)], [os.status(0x7f6814b126a0)],
[os.department_name(0x7f6814b147d0)], [os.region_code(0x7f6814b14dd0)], [os.region_name(0x7f6814b153d0)], [os.long_store_no(0x7f6814b159d0)], [os.receivable_money(0x7f6814b15fd0)],
[os.change_money(0x7f6814b165d0)], [os.discount_money(0x7f6814b16bd0)], [os.actual_receivable_money(0x7f6814b171d0)], [os.type(0x7f6814b196e0)], [os.sub_type(0x7f6814b19ce0)],
[os.medical_insurance_business_class(0x7f6814b1a2e0)], [os.medical_insurance_class(0x7f6814b1a8e0)], [os.type_source(0x7f6814b1aee0)], [os.order_time(0x7f6814b1b800)],
[os.finish_time(0x7f6814b29710)], [os.accounting_day(0x7f6814b29d10)], [os.classes_setting_id(0x7f6814b2a310)], [os.classes_name(0x7f6814b2a910)], [os.cashier_id(0x7f6814b2af10)],
[os.cashier_name(0x7f6814b2b510)], [os.cashier_no(0x7f6814b2bb10)], [os.member_id(0x7f6814b2c110)], [os.member_phone(0x7f6814b2c710)], [os.member_name(0x7f6814b2cd10)],
[os.member_card_no(0x7f6814b2d310)], [os.member_card_type_id(0x7f6814b2d910)], [os.member_card_type(0x7f6814b2df10)], [os.member_points(0x7f6814b2e510)],
[os.is_ultimate_member(0x7f6814b2eb10)], [os.detail_num(0x7f6814b2f110)], [os.give_points(0x7f6814b2f710)], [os.hub_send_flag(0x7f6814b2fd10)], [os.is_ephedrine(0x7f6814b30310)],
[os.is_high_risk(0x7f6814b4bb20)], [os.create_user_id(0x7f6814b4c120)], [os.update_user_id(0x7f6814b4c720)], [os.update_time(0x7f6814b4d040)], [os.tenant_id(0x7f6814b4d960)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false,false],
range_key([os.finish_time(0x7f6814b29710)], [os.id(0x7f6814af16a0)]), range(MIN,MIN ; MAX,MAX)always true
22 - output(nil), filter(nil), rowset=256
access(nil)
23 - output([order_sales_detail.order_sales_id(0x7f6814b08bd0)]), filter([order_sales_detail.goods_no(0x7f6814b08340) = '8218424'(0x7f6814b07bf0)]), rowset=256
access([order_sales_detail.id(0x7f6814bbe090)], [order_sales_detail.goods_no(0x7f6814b08340)], [order_sales_detail.order_sales_id(0x7f6814b08bd0)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([order_sales_detail.order_sales_id(0x7f6814b08bd0)], [order_sales_detail.id(0x7f6814bbe090)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([order_sales_detail.order_sales_id(0x7f6814b08bd0) = :7(0x7f6822a06400)])
24 - output([osim.order_source(0x7f6814b4f030)]), filter(nil), rowset=256
access([GROUP_ID(0x7f60cc61f570)], [osim.order_source(0x7f6814b4f030)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([osim.id(0x7f6814af4ea0)]), range(MIN ; MAX),
range_cond([:10 = osim.id(0x7f6814af4ea0)(0x7f6822b456b0)])
25 - output([opr.id(0x7f6814b4ea30)]), filter(nil), rowset=256
access([GROUP_ID(0x7f60cc6216d0)], [opr.id(0x7f6814b4ea30)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([opr.order_sales_id(0x7f6814af1990)], [opr.shadow_pk_0(0x7f6822af6290)]), range(MIN ; MAX),
range_cond([:9 = opr.order_sales_id(0x7f6814af1990)(0x7f6822b20340)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$8BC34FF0
stmt_id:2, SET$1 > SET$939198FE > SET$BFC27C50 > SET$EC04A340 > SET$6913F587
stmt_id:3, SEL$2 > SEL$A3D39CCF > SEL$AFBCB124 > SEL$7E653A1A
stmt_id:4, SEL$3 > SEL$6BC7FBC3 > SEL$2FC64B17
stmt_id:5, SEL$4 > SEL$862290CF > SEL$BA81EF59 > SEL$BDEE6E70
stmt_id:6, SEL$5 > SEL$02479FB7 > SEL$E7505DD1
stmt_id:7, parent:SEL$AFBCB124 > SEL$7E653A19 > SEL$2FA61C88 > SEL$D6D8F97F
stmt_id:8, parent:SEL$BA81EF59 > SEL$BDEE6E6F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$7E653A1A" (("VIEW1"@"SEL$AFBCB124" "sl_pos_order"."osim"@"SEL$2") "sl_pos_order"."opr"@"SEL$2"))
USE_NL(@"SEL$7E653A1A" "sl_pos_order"."opr"@"SEL$2")
USE_NL(@"SEL$7E653A1A" "sl_pos_order"."osim"@"SEL$2")
LEADING(@"SEL$D6D8F97F" (("sl_pos_order"."rf"@"SEL$2" "osd"@"SEL$2") "sl_pos_order"."os"@"SEL$2"))
USE_NL(@"SEL$D6D8F97F" "sl_pos_order"."os"@"SEL$2")
USE_NL(@"SEL$D6D8F97F" "osd"@"SEL$2")
INDEX(@"SEL$D6D8F97F" "rf"@"SEL$2" "idx_order_refund_department_id")
INDEX(@"SEL$2FC64B17" "sl_pos_order"."order_refund_detail"@"SEL$3" "idx_order_refund_id")
USE_DAS(@"SEL$2FC64B17" "sl_pos_order"."order_refund_detail"@"SEL$3")
FULL(@"SEL$D6D8F97F" "os"@"SEL$2")
USE_DAS(@"SEL$D6D8F97F" "os"@"SEL$2")
FULL(@"SEL$7E653A1A" "osim"@"SEL$2")
USE_DAS(@"SEL$7E653A1A" "osim"@"SEL$2")
INDEX(@"SEL$7E653A1A" "opr"@"SEL$2" "uni_order_sales_id")
USE_DAS(@"SEL$7E653A1A" "opr"@"SEL$2")
LEADING(@"SEL$BDEE6E70" (("VIEW2"@"SEL$BA81EF59" "sl_pos_order"."osim"@"SEL$4") "sl_pos_order"."opr"@"SEL$4"))
USE_NL(@"SEL$BDEE6E70" "sl_pos_order"."opr"@"SEL$4")
USE_NL(@"SEL$BDEE6E70" "sl_pos_order"."osim"@"SEL$4")
LEADING(@"SEL$BDEE6E6F" ("sl_pos_order"."os"@"SEL$4" "osd"@"SEL$4"))
USE_NL(@"SEL$BDEE6E6F" "osd"@"SEL$4")
INDEX(@"SEL$BDEE6E6F" "os"@"SEL$4" "idx_finish_time")
INDEX(@"SEL$E7505DD1" "sl_pos_order"."order_sales_detail"@"SEL$5" "idx_order_sales_detail_order_sales_id")
USE_DAS(@"SEL$E7505DD1" "sl_pos_order"."order_sales_detail"@"SEL$5")
FULL(@"SEL$BDEE6E70" "osim"@"SEL$4")
USE_DAS(@"SEL$BDEE6E70" "osim"@"SEL$4")
INDEX(@"SEL$BDEE6E70" "opr"@"SEL$4" "uni_order_sales_id")
USE_DAS(@"SEL$BDEE6E70" "opr"@"SEL$4")
SIMPLIFY_EXPR(@"SEL$2")
SIMPLIFY_EXPR(@"SEL$4")
SIMPLIFY_LIMIT(@"SEL$1")
PROJECT_PRUNE(@"SEL$3")
PROJECT_PRUNE(@"SEL$5")
SIMPLIFY_SET(@"SET$1")
MERGE(@"SET$939198FE" < "SEL$8BC34FF0")
OUTER_TO_INNER(@"SEL$A3D39CCF")
OUTER_TO_INNER(@"SEL$862290CF")
PUSH_LIMIT(@"SEL$AFBCB124")
PUSH_LIMIT(@"SEL$BA81EF59")
PRED_DEDUCE(@"SEL$7E653A19")
SIMPLIFY_GROUP_BY(@"SEL$6BC7FBC3")
SIMPLIFY_GROUP_BY(@"SEL$02479FB7")
SIMPLIFY_ORDER_BY(@"SET$BFC27C50")
SIMPLIFY_SET(@"SET$EC04A340")
OUTER_TO_INNER(@"SEL$2FA61C88")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
rf:
table_rows:1158444
physical_range_rows:865
logical_range_rows:865
index_back_rows:865
output_rows:340
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_order_refund_department_id, idx_di_ct_osft_osi, idx_accounting_day_department_id, idx_order_sales_id, order_refund]
pruned_index_name:[idx_accounting_day_department_id]
unstable_index_name:[order_refund]
stats version:1733926647257274
dynamic sampling level:0
order_refund_detail:
table_rows:2382426
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_order_refund_detail_department_id, idx_order_refund_id, odi, order_refund_detail]
pruned_index_name:[idx_order_refund_detail_department_id, odi]
unstable_index_name:[order_refund_detail]
stats version:1733149081120140
dynamic sampling level:0
os:
table_rows:70678520
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time, order_sales]
pruned_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time]
stats version:1733842179002725
dynamic sampling level:0
osim:
table_rows:58258711
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_inca_order_id, order_sales_inca_mapping]
pruned_index_name:[idx_inca_order_id]
stats version:1733754440387683
dynamic sampling level:0
opr:
table_rows:55247796
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_update_user_id, idx_create_time, uni_order_sales_id, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
pruned_index_name:[idx_update_user_id, idx_create_time, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
stats version:1733408327558753
dynamic sampling level:0
os:
table_rows:70678520
physical_range_rows:73580259
logical_range_rows:72165877
index_back_rows:72165877
output_rows:3261
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time, order_sales]
pruned_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_member_id, idx_long_store_no, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time]
stats version:1733842179002725
dynamic sampling level:0
order_sales_detail:
table_rows:171316742
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_order_sales_detail_order_sales_id, idx_create_time, idx_goods_id, idx_create_user_id, idx_order_sales_detail_department_id, idx_batch_id, idx_goods_no, idx_prescription_order_id, idx_dismantle_id, idx_producing_batch_number_id, idx_salesman_id, idx_department_id, idx_is_di_depi_osid, order_sales_detail]
pruned_index_name:[idx_create_time, idx_goods_id, idx_create_user_id, idx_order_sales_detail_department_id, idx_batch_id, idx_prescription_order_id, idx_dismantle_id, idx_producing_batch_number_id, idx_salesman_id, idx_department_id, idx_is_di_depi_osid]
unstable_index_name:[order_sales_detail]
stats version:1733841584954550
dynamic sampling level:0
osim:
table_rows:58258711
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_inca_order_id, order_sales_inca_mapping]
pruned_index_name:[idx_inca_order_id]
stats version:1733754440387683
dynamic sampling level:0
opr:
table_rows:55247796
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_update_user_id, idx_create_time, uni_order_sales_id, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
pruned_index_name:[idx_update_user_id, idx_create_time, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
stats version:1733408327558753
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property
Expr Constraints:
1 result is TRUE
1 result is TRUE












































SQL: SELECT bothOfAll.* from ( SELECT os.id, os.department_id, os.department_name, os.region_code, os.region_name, os.long_store_no, (0.00 - rf.refund_money) as receivable_money, os.change_money, 0 as discount_money, (0.00 - rf.refund_money) as actual_receivable_money, os.type, os.sub_type, os.medical_insurance_business_class, os.medical_insurance_class, os.type_source, rf.status, os.order_time, rf.refund_time as finish_time, rf.accounting_day, os.classes_setting_id, os.classes_name, os.cashier_id, os.cashier_name, os.cashier_no, os.member_id, os.member_phone, os.member_name, os.member_card_no, os.member_card_type_id, os.member_card_type, os.member_points, os.is_ultimate_member, os.detail_num, (0 - rf.give_points) as give_points, os.hub_send_flag, os.is_ephedrine, os.is_high_risk, os.create_user_id, os.update_user_id, rf.create_time as create_time, os.update_time, os.is_deleted, os.tenant_id, os.id as order_sales_id, 1 as is_refund, rf.refund_money as refund_money, rf.id as refundId, opr.id orderPayResultId, osim.order_source orderSyncSource FROM order_sales os LEFT JOIN order_refund rf on rf.order_sales_id = os.id LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id AND rf.department_id = 270661884600029197 JOIN ( select order_refund_id, max(goods_id) as goods_id from order_refund_detail where goods_no = '8218424' group by order_refund_id ) osd on osd.order_refund_id = rf.id WHERE os.is_deleted = 0 and rf.is_deleted = 0 AND rf.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781' AND rf.department_id = 270661884600029197 AND rf.status != 3 and osd.goods_id is not null UNION ALL SELECT /*+ index(os idx_order_sales_department_id_create_time) */ os.id, os.department_id, os.department_name, os.region_code, os.region_name, os.long_store_no, os.receivable_money, os.change_money, os.discount_money, os.actual_receivable_money, os.type, os.sub_type, os.medical_insurance_business_class, os.medical_insurance_class, os.type_source, os.status, os.order_time, os.finish_time, os.accounting_day, os.classes_setting_id, os.classes_name, os.cashier_id, os.cashier_name, os.cashier_no, os.member_id, os.member_phone, os.member_name, os.member_card_no, os.member_card_type_id, os.member_card_type, os.member_points, os.is_ultimate_member, os.detail_num, os.give_points, os.hub_send_flag, os.is_ephedrine, os.is_high_risk, os.create_user_id, os.update_user_id, os.create_time, os.update_time, os.is_deleted, os.tenant_id, os.id as order_sales_id, 0 as is_refund, 0 as refund_money, null as refundId, opr.id orderPayResultId, osim.order_source orderSyncSource FROM order_sales os LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id JOIN ( select order_sales_id, max(goods_id) as goods_id from order_sales_detail where goods_no = '8218424' group by order_sales_id ) osd on osd.order_sales_id = os.id WHERE os.is_deleted = 0 AND os.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781' AND os.department_id = 270661884600029197 and os.status != 17 and osd.goods_id is not null ) as bothOfAll ORDER BY finish_time desc, create_time desc LIMIT 15
查看格式化信息
=========================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------------------------------
|0 |TOP-N SORT | |15 |611564 |
|1 |└─UNION ALL | |30 |611530 |
|2 | ├─LIMIT | |15 |35100 |
|3 | │ └─NESTED-LOOP OUTER JOIN | |15 |35100 |
|4 | │ ├─NESTED-LOOP OUTER JOIN | |15 |34837 |
|5 | │ │ ├─SUBPLAN SCAN |VIEW1 |15 |34575 |
|6 | │ │ │ └─TOP-N SORT | |15 |34575 |
|7 | │ │ │ └─NESTED-LOOP JOIN | |190 |34541 |
|8 | │ │ │ ├─NESTED-LOOP JOIN | |183 |31081 |
|9 | │ │ │ │ ├─TABLE RANGE SCAN |rf(idx_order_refund_department_id) |842 |4145 |
|10| │ │ │ │ └─SUBPLAN SCAN |osd |1 |32 |
|11| │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|order_refund_detail(idx_order_refund_id) |1 |32 |
|12| │ │ │ └─DISTRIBUTED TABLE GET |os |1 |19 |
|13| │ │ └─DISTRIBUTED TABLE GET |osim |1 |18 |
|14| │ └─DISTRIBUTED TABLE RANGE SCAN |opr(uni_order_sales_id) |1 |18 |
|15| └─LIMIT | |15 |576430 |
|16| └─NESTED-LOOP OUTER JOIN | |15 |576430 |
|17| ├─NESTED-LOOP OUTER JOIN | |15 |576167 |
|18| │ ├─SUBPLAN SCAN |VIEW2 |15 |575910 |
|19| │ │ └─TOP-N SORT | |15 |575910 |
|20| │ │ └─HASH JOIN | |29565 |574728 |
|21| │ │ ├─SUBPLAN SCAN |osd |29565 |133944 |
|22| │ │ │ └─HASH DISTINCT | |29565 |133866 |
|23| │ │ │ └─TABLE RANGE SCAN |order_sales_detail(idx_goods_no) |29568 |125404 |
|24| │ │ └─TABLE RANGE SCAN |os(idx_order_sales_department_id_create_time)|53545 |429664 |
|25| │ └─DISTRIBUTED TABLE GET |osim |1 |18 |
|26| └─DISTRIBUTED TABLE RANGE SCAN |opr(uni_order_sales_id) |1 |18 |
=========================================================================================================================
Outputs & filters:
-------------------------------------
0 - output([UNION([1])(0x7f640d152f50)], [UNION([2])(0x7f640d1531a0)], [UNION([3])(0x7f640d1533f0)], [UNION([4])(0x7f640d153640)], [UNION([5])(0x7f640d153890)],
[UNION([6])(0x7f640d153ae0)], [UNION([7])(0x7f640d153d30)], [UNION([8])(0x7f640d153f80)], [UNION([9])(0x7f640d1541d0)], [UNION([10])(0x7f640d154420)],
[UNION([11])(0x7f640d154670)], [UNION([12])(0x7f640d1548c0)], [UNION([13])(0x7f640d154b10)], [UNION([14])(0x7f640d154d60)], [UNION([15])(0x7f640d154fb0)],
[UNION([16])(0x7f640d155200)], [UNION([17])(0x7f640d155450)], [UNION([18])(0x7f640d162fb0)], [UNION([19])(0x7f640d163200)], [UNION([20])(0x7f640d163450)],
[UNION([21])(0x7f640d1636a0)], [UNION([22])(0x7f640d1638f0)], [UNION([23])(0x7f640d163b40)], [UNION([24])(0x7f640d163d90)], [UNION([25])(0x7f640d163fe0)],
[UNION([26])(0x7f640d164230)], [UNION([27])(0x7f640d164480)], [UNION([28])(0x7f640d1646d0)], [UNION([29])(0x7f640d164920)], [UNION([30])(0x7f640d164b70)],
[UNION([31])(0x7f640d164dc0)], [UNION([32])(0x7f640d165010)], [UNION([33])(0x7f640d165260)], [UNION([34])(0x7f640d1654b0)], [UNION([35])(0x7f640d165700)],
[UNION([36])(0x7f640d165950)], [UNION([37])(0x7f640d180db0)], [UNION([38])(0x7f640d181000)], [UNION([39])(0x7f640d181250)], [UNION([40])(0x7f640d1814a0)],
[UNION([41])(0x7f640d1816f0)], [UNION([42])(0x7f640d181940)], [UNION([43])(0x7f640d181b90)], [UNION([44])(0x7f640d181de0)], [UNION([45])(0x7f640d182030)],
[UNION([46])(0x7f640d182280)], [UNION([47])(0x7f640d1824d0)], [UNION([48])(0x7f640d182720)], [UNION([49])(0x7f640d182970)]), filter(nil), rowset=256
sort_keys([UNION([18])(0x7f640d162fb0), DESC], [UNION([40])(0x7f640d1814a0), DESC]), topn(15)
1 - output([UNION([18])(0x7f640d162fb0)], [UNION([40])(0x7f640d1814a0)], [UNION([1])(0x7f640d152f50)], [UNION([2])(0x7f640d1531a0)], [UNION([3])(0x7f640d1533f0)],
[UNION([4])(0x7f640d153640)], [UNION([5])(0x7f640d153890)], [UNION([6])(0x7f640d153ae0)], [UNION([7])(0x7f640d153d30)], [UNION([8])(0x7f640d153f80)], [UNION([9])(0x7f640d1541d0)],
[UNION([10])(0x7f640d154420)], [UNION([11])(0x7f640d154670)], [UNION([12])(0x7f640d1548c0)], [UNION([13])(0x7f640d154b10)], [UNION([14])(0x7f640d154d60)],
[UNION([15])(0x7f640d154fb0)], [UNION([16])(0x7f640d155200)], [UNION([17])(0x7f640d155450)], [UNION([19])(0x7f640d163200)], [UNION([20])(0x7f640d163450)],
[UNION([21])(0x7f640d1636a0)], [UNION([22])(0x7f640d1638f0)], [UNION([23])(0x7f640d163b40)], [UNION([24])(0x7f640d163d90)], [UNION([25])(0x7f640d163fe0)],
[UNION([26])(0x7f640d164230)], [UNION([27])(0x7f640d164480)], [UNION([28])(0x7f640d1646d0)], [UNION([29])(0x7f640d164920)], [UNION([30])(0x7f640d164b70)],
[UNION([31])(0x7f640d164dc0)], [UNION([32])(0x7f640d165010)], [UNION([33])(0x7f640d165260)], [UNION([34])(0x7f640d1654b0)], [UNION([35])(0x7f640d165700)],
[UNION([36])(0x7f640d165950)], [UNION([37])(0x7f640d180db0)], [UNION([38])(0x7f640d181000)], [UNION([39])(0x7f640d181250)], [UNION([41])(0x7f640d1816f0)],
[UNION([42])(0x7f640d181940)], [UNION([43])(0x7f640d181b90)], [UNION([44])(0x7f640d181de0)], [UNION([45])(0x7f640d182030)], [UNION([46])(0x7f640d182280)],
[UNION([47])(0x7f640d1824d0)], [UNION([48])(0x7f640d182720)], [UNION([49])(0x7f640d182970)]), filter(nil), rowset=256
2 - output([VIEW1.os.id(0x7f640d1fabb0)], [VIEW1.os.department_id(0x7f640d1fb7a0)], [VIEW1.os.department_name(0x7f640d1fbaa0)], [VIEW1.os.region_code(0x7f640d1fbd90)],
[VIEW1.os.region_name(0x7f640d1fc080)], [VIEW1.os.long_store_no(0x7f640d1fc380)], [0.00 - VIEW1.rf.refund_money(0x7f640d1fc670)(0x7f640d0a3ff0)], [VIEW1.os.change_money(0x7f640d1fc960)],
[cast(0, DECIMAL(24, 4))(0x7f640d150290)], [0.00 - VIEW1.rf.refund_money(0x7f640d1fc670)(0x7f640d0a3ff0)], [VIEW1.os.type(0x7f640d1fcc50)], [VIEW1.os.sub_type(0x7f640d1fcf40)],
[VIEW1.os.medical_insurance_business_class(0x7f640d1fd250)], [VIEW1.os.medical_insurance_class(0x7f640d1fd550)], [VIEW1.os.type_source(0x7f640d1fd840)],
[VIEW1.rf.status(0x7f61a8611960)], [VIEW1.os.order_time(0x7f61a8611c50)], [VIEW1.rf.refund_time(0x7f640d1fb1b0)], [VIEW1.rf.accounting_day(0x7f61a8611f50)],
[VIEW1.os.classes_setting_id(0x7f61a8612250)], [VIEW1.os.classes_name(0x7f61a8612540)], [VIEW1.os.cashier_id(0x7f61a8612830)], [VIEW1.os.cashier_name(0x7f61a8612b20)],
[VIEW1.os.cashier_no(0x7f61a8612e10)], [VIEW1.os.member_id(0x7f61a8613100)], [VIEW1.os.member_phone(0x7f61a86133f0)], [VIEW1.os.member_name(0x7f61a86136e0)],
[VIEW1.os.member_card_no(0x7f61a86139e0)], [VIEW1.os.member_card_type_id(0x7f61a8613ce0)], [VIEW1.os.member_card_type(0x7f61a8613fe0)], [VIEW1.os.member_points(0x7f61a86142e0)],
[VIEW1.os.is_ultimate_member(0x7f61a86145e0)], [VIEW1.os.detail_num(0x7f61a86148d0)], [0 - VIEW1.rf.give_points(0x7f61a8614bc0)(0x7f640d0bc650)], [VIEW1.os.hub_send_flag(0x7f61a8614ec0)],
[VIEW1.os.is_ephedrine(0x7f61a86303c0)], [VIEW1.os.is_high_risk(0x7f61a86306b0)], [VIEW1.os.create_user_id(0x7f61a86309b0)], [VIEW1.os.update_user_id(0x7f61a8630cb0)],
[VIEW1.rf.create_time(0x7f640d1fb4a0)], [VIEW1.os.update_time(0x7f61a8630fa0)], [VIEW1.os.is_deleted(0x7f61a8631290)], [VIEW1.os.tenant_id(0x7f61a8631580)],
[VIEW1.os.id(0x7f640d1fabb0)], [1], [VIEW1.rf.refund_money(0x7f640d1fc670)], [VIEW1.rf.id(0x7f61a8631870)], [opr.id(0x7f640d0dc260)], [osim.order_source(0x7f640d0dc860)]), filter(nil), rowset=256
limit(15), offset(nil)
3 - output([VIEW1.os.id(0x7f640d1fabb0)], [VIEW1.os.department_id(0x7f640d1fb7a0)], [VIEW1.os.department_name(0x7f640d1fbaa0)], [VIEW1.os.region_code(0x7f640d1fbd90)],
[VIEW1.os.region_name(0x7f640d1fc080)], [VIEW1.os.long_store_no(0x7f640d1fc380)], [VIEW1.os.change_money(0x7f640d1fc960)], [VIEW1.os.type(0x7f640d1fcc50)],
[VIEW1.os.sub_type(0x7f640d1fcf40)], [VIEW1.os.medical_insurance_business_class(0x7f640d1fd250)], [VIEW1.os.medical_insurance_class(0x7f640d1fd550)], [VIEW1.os.type_source(0x7f640d1fd840)],
[VIEW1.rf.status(0x7f61a8611960)], [VIEW1.os.order_time(0x7f61a8611c50)], [VIEW1.rf.refund_time(0x7f640d1fb1b0)], [VIEW1.rf.accounting_day(0x7f61a8611f50)],
[VIEW1.os.classes_setting_id(0x7f61a8612250)], [VIEW1.os.classes_name(0x7f61a8612540)], [VIEW1.os.cashier_id(0x7f61a8612830)], [VIEW1.os.cashier_name(0x7f61a8612b20)],
[VIEW1.os.cashier_no(0x7f61a8612e10)], [VIEW1.os.member_id(0x7f61a8613100)], [VIEW1.os.member_phone(0x7f61a86133f0)], [VIEW1.os.member_name(0x7f61a86136e0)],
[VIEW1.os.member_card_no(0x7f61a86139e0)], [VIEW1.os.member_card_type_id(0x7f61a8613ce0)], [VIEW1.os.member_card_type(0x7f61a8613fe0)], [VIEW1.os.member_points(0x7f61a86142e0)],
[VIEW1.os.is_ultimate_member(0x7f61a86145e0)], [VIEW1.os.detail_num(0x7f61a86148d0)], [VIEW1.os.hub_send_flag(0x7f61a8614ec0)], [VIEW1.os.is_ephedrine(0x7f61a86303c0)],
[VIEW1.os.is_high_risk(0x7f61a86306b0)], [VIEW1.os.create_user_id(0x7f61a86309b0)], [VIEW1.os.update_user_id(0x7f61a8630cb0)], [VIEW1.rf.create_time(0x7f640d1fb4a0)],
[VIEW1.os.update_time(0x7f61a8630fa0)], [VIEW1.os.is_deleted(0x7f61a8631290)], [VIEW1.os.tenant_id(0x7f61a8631580)], [VIEW1.rf.refund_money(0x7f640d1fc670)],
[VIEW1.rf.id(0x7f61a8631870)], [opr.id(0x7f640d0dc260)], [osim.order_source(0x7f640d0dc860)], [VIEW1.rf.give_points(0x7f61a8614bc0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW1.os.id(0x7f640d1fabb0)(:4)]), use_batch=true
4 - output([VIEW1.os.id(0x7f640d1fabb0)], [VIEW1.os.department_id(0x7f640d1fb7a0)], [VIEW1.os.department_name(0x7f640d1fbaa0)], [VIEW1.os.region_code(0x7f640d1fbd90)],
[VIEW1.os.region_name(0x7f640d1fc080)], [VIEW1.os.long_store_no(0x7f640d1fc380)], [VIEW1.os.change_money(0x7f640d1fc960)], [VIEW1.os.type(0x7f640d1fcc50)],
[VIEW1.os.sub_type(0x7f640d1fcf40)], [VIEW1.os.medical_insurance_business_class(0x7f640d1fd250)], [VIEW1.os.medical_insurance_class(0x7f640d1fd550)], [VIEW1.os.type_source(0x7f640d1fd840)],
[VIEW1.rf.status(0x7f61a8611960)], [VIEW1.os.order_time(0x7f61a8611c50)], [VIEW1.rf.refund_time(0x7f640d1fb1b0)], [VIEW1.rf.accounting_day(0x7f61a8611f50)],
[VIEW1.os.classes_setting_id(0x7f61a8612250)], [VIEW1.os.classes_name(0x7f61a8612540)], [VIEW1.os.cashier_id(0x7f61a8612830)], [VIEW1.os.cashier_name(0x7f61a8612b20)],
[VIEW1.os.cashier_no(0x7f61a8612e10)], [VIEW1.os.member_id(0x7f61a8613100)], [VIEW1.os.member_phone(0x7f61a86133f0)], [VIEW1.os.member_name(0x7f61a86136e0)],
[VIEW1.os.member_card_no(0x7f61a86139e0)], [VIEW1.os.member_card_type_id(0x7f61a8613ce0)], [VIEW1.os.member_card_type(0x7f61a8613fe0)], [VIEW1.os.member_points(0x7f61a86142e0)],
[VIEW1.os.is_ultimate_member(0x7f61a86145e0)], [VIEW1.os.detail_num(0x7f61a86148d0)], [VIEW1.os.hub_send_flag(0x7f61a8614ec0)], [VIEW1.os.is_ephedrine(0x7f61a86303c0)],
[VIEW1.os.is_high_risk(0x7f61a86306b0)], [VIEW1.os.create_user_id(0x7f61a86309b0)], [VIEW1.os.update_user_id(0x7f61a8630cb0)], [VIEW1.rf.create_time(0x7f640d1fb4a0)],
[VIEW1.os.update_time(0x7f61a8630fa0)], [VIEW1.os.is_deleted(0x7f61a8631290)], [VIEW1.os.tenant_id(0x7f61a8631580)], [VIEW1.rf.refund_money(0x7f640d1fc670)],
[VIEW1.rf.id(0x7f61a8631870)], [osim.order_source(0x7f640d0dc860)], [VIEW1.rf.give_points(0x7f61a8614bc0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW1.os.id(0x7f640d1fabb0)(:5)], [VIEW1.rf.department_id = 270661884600029197(0x7f640d1faec0)(:6)]), use_batch=true
5 - output([VIEW1.os.id(0x7f640d1fabb0)], [VIEW1.rf.department_id = 270661884600029197(0x7f640d1faec0)], [VIEW1.rf.refund_time(0x7f640d1fb1b0)], [VIEW1.rf.create_time(0x7f640d1fb4a0)],
[VIEW1.os.department_id(0x7f640d1fb7a0)], [VIEW1.os.department_name(0x7f640d1fbaa0)], [VIEW1.os.region_code(0x7f640d1fbd90)], [VIEW1.os.region_name(0x7f640d1fc080)],
[VIEW1.os.long_store_no(0x7f640d1fc380)], [VIEW1.rf.refund_money(0x7f640d1fc670)], [VIEW1.os.change_money(0x7f640d1fc960)], [VIEW1.os.type(0x7f640d1fcc50)],
[VIEW1.os.sub_type(0x7f640d1fcf40)], [VIEW1.os.medical_insurance_business_class(0x7f640d1fd250)], [VIEW1.os.medical_insurance_class(0x7f640d1fd550)], [VIEW1.os.type_source(0x7f640d1fd840)],
[VIEW1.rf.status(0x7f61a8611960)], [VIEW1.os.order_time(0x7f61a8611c50)], [VIEW1.rf.accounting_day(0x7f61a8611f50)], [VIEW1.os.classes_setting_id(0x7f61a8612250)],
[VIEW1.os.classes_name(0x7f61a8612540)], [VIEW1.os.cashier_id(0x7f61a8612830)], [VIEW1.os.cashier_name(0x7f61a8612b20)], [VIEW1.os.cashier_no(0x7f61a8612e10)],
[VIEW1.os.member_id(0x7f61a8613100)], [VIEW1.os.member_phone(0x7f61a86133f0)], [VIEW1.os.member_name(0x7f61a86136e0)], [VIEW1.os.member_card_no(0x7f61a86139e0)],
[VIEW1.os.member_card_type_id(0x7f61a8613ce0)], [VIEW1.os.member_card_type(0x7f61a8613fe0)], [VIEW1.os.member_points(0x7f61a86142e0)], [VIEW1.os.is_ultimate_member(0x7f61a86145e0)],
[VIEW1.os.detail_num(0x7f61a86148d0)], [VIEW1.rf.give_points(0x7f61a8614bc0)], [VIEW1.os.hub_send_flag(0x7f61a8614ec0)], [VIEW1.os.is_ephedrine(0x7f61a86303c0)],
[VIEW1.os.is_high_risk(0x7f61a86306b0)], [VIEW1.os.create_user_id(0x7f61a86309b0)], [VIEW1.os.update_user_id(0x7f61a8630cb0)], [VIEW1.os.update_time(0x7f61a8630fa0)],
[VIEW1.os.is_deleted(0x7f61a8631290)], [VIEW1.os.tenant_id(0x7f61a8631580)], [VIEW1.rf.id(0x7f61a8631870)]), filter(nil), rowset=256
access([VIEW1.os.id(0x7f640d1fabb0)], [VIEW1.rf.department_id = 270661884600029197(0x7f640d1faec0)], [VIEW1.rf.refund_time(0x7f640d1fb1b0)], [VIEW1.rf.create_time(0x7f640d1fb4a0)],
[VIEW1.os.department_id(0x7f640d1fb7a0)], [VIEW1.os.department_name(0x7f640d1fbaa0)], [VIEW1.os.region_code(0x7f640d1fbd90)], [VIEW1.os.region_name(0x7f640d1fc080)],
[VIEW1.os.long_store_no(0x7f640d1fc380)], [VIEW1.rf.refund_money(0x7f640d1fc670)], [VIEW1.os.change_money(0x7f640d1fc960)], [VIEW1.os.type(0x7f640d1fcc50)],
[VIEW1.os.sub_type(0x7f640d1fcf40)], [VIEW1.os.medical_insurance_business_class(0x7f640d1fd250)], [VIEW1.os.medical_insurance_class(0x7f640d1fd550)], [VIEW1.os.type_source(0x7f640d1fd840)],
[VIEW1.rf.status(0x7f61a8611960)], [VIEW1.os.order_time(0x7f61a8611c50)], [VIEW1.rf.accounting_day(0x7f61a8611f50)], [VIEW1.os.classes_setting_id(0x7f61a8612250)],
[VIEW1.os.classes_name(0x7f61a8612540)], [VIEW1.os.cashier_id(0x7f61a8612830)], [VIEW1.os.cashier_name(0x7f61a8612b20)], [VIEW1.os.cashier_no(0x7f61a8612e10)],
[VIEW1.os.member_id(0x7f61a8613100)], [VIEW1.os.member_phone(0x7f61a86133f0)], [VIEW1.os.member_name(0x7f61a86136e0)], [VIEW1.os.member_card_no(0x7f61a86139e0)],
[VIEW1.os.member_card_type_id(0x7f61a8613ce0)], [VIEW1.os.member_card_type(0x7f61a8613fe0)], [VIEW1.os.member_points(0x7f61a86142e0)], [VIEW1.os.is_ultimate_member(0x7f61a86145e0)],
[VIEW1.os.detail_num(0x7f61a86148d0)], [VIEW1.rf.give_points(0x7f61a8614bc0)], [VIEW1.os.hub_send_flag(0x7f61a8614ec0)], [VIEW1.os.is_ephedrine(0x7f61a86303c0)],
[VIEW1.os.is_high_risk(0x7f61a86306b0)], [VIEW1.os.create_user_id(0x7f61a86309b0)], [VIEW1.os.update_user_id(0x7f61a8630cb0)], [VIEW1.os.update_time(0x7f61a8630fa0)],
[VIEW1.os.is_deleted(0x7f61a8631290)], [VIEW1.os.tenant_id(0x7f61a8631580)], [VIEW1.rf.id(0x7f61a8631870)])
6 - output([os.id(0x7f640d077cd0)], [rf.department_id(0x7f640d07da40) = 270661884600029197(0x7f640d07d2f0)], [rf.refund_time(0x7f640d0b63e0)], [rf.create_time(0x7f640d09a610)],
[os.department_id(0x7f640d0a0070)], [os.department_name(0x7f640d0a0670)], [os.region_code(0x7f640d0a0c70)], [os.region_name(0x7f640d0a1270)], [os.long_store_no(0x7f640d0a1870)],
[rf.refund_money(0x7f640d0a4740)], [os.change_money(0x7f640d0a4dc0)], [os.type(0x7f640d0a63b0)], [os.sub_type(0x7f640d0a69b0)], [os.medical_insurance_business_class(0x7f640d0a6fb0)],
[os.medical_insurance_class(0x7f640d0a75b0)], [os.type_source(0x7f640d0a7bb0)], [rf.status(0x7f640d09e260)], [os.order_time(0x7f640d0a84d0)], [rf.accounting_day(0x7f640d0b69e0)],
[os.classes_setting_id(0x7f640d0b6fe0)], [os.classes_name(0x7f640d0b75e0)], [os.cashier_id(0x7f640d0b7be0)], [os.cashier_name(0x7f640d0b81e0)], [os.cashier_no(0x7f640d0b87e0)],
[os.member_id(0x7f640d0b8de0)], [os.member_phone(0x7f640d0b93e0)], [os.member_name(0x7f640d0b99e0)], [os.member_card_no(0x7f640d0b9fe0)], [os.member_card_type_id(0x7f640d0ba5e0)],
[os.member_card_type(0x7f640d0babe0)], [os.member_points(0x7f640d0bb1e0)], [os.is_ultimate_member(0x7f640d0bb7e0)], [os.detail_num(0x7f640d0bbde0)], [rf.give_points(0x7f640d0bcda0)],
[os.hub_send_flag(0x7f640d0bd420)], [os.is_ephedrine(0x7f640d0bda20)], [os.is_high_risk(0x7f640d0d9230)], [os.create_user_id(0x7f640d0d9830)], [os.update_user_id(0x7f640d0d9e30)],
[os.update_time(0x7f640d0da750)], [os.is_deleted(0x7f640d096d50)], [os.tenant_id(0x7f640d0db070)], [rf.id(0x7f640d095af0)]), filter(nil), rowset=256
sort_keys([rf.refund_time(0x7f640d0b63e0), DESC], [rf.create_time(0x7f640d09a610), DESC]), topn(15)
7 - output([rf.refund_time(0x7f640d0b63e0)], [rf.create_time(0x7f640d09a610)], [os.id(0x7f640d077cd0)], [os.department_id(0x7f640d0a0070)], [os.department_name(0x7f640d0a0670)],
[os.region_code(0x7f640d0a0c70)], [os.region_name(0x7f640d0a1270)], [os.long_store_no(0x7f640d0a1870)], [rf.refund_money(0x7f640d0a4740)], [os.change_money(0x7f640d0a4dc0)],
[os.type(0x7f640d0a63b0)], [os.sub_type(0x7f640d0a69b0)], [os.medical_insurance_business_class(0x7f640d0a6fb0)], [os.medical_insurance_class(0x7f640d0a75b0)],
[os.type_source(0x7f640d0a7bb0)], [rf.status(0x7f640d09e260)], [os.order_time(0x7f640d0a84d0)], [rf.accounting_day(0x7f640d0b69e0)], [os.classes_setting_id(0x7f640d0b6fe0)],
[os.classes_name(0x7f640d0b75e0)], [os.cashier_id(0x7f640d0b7be0)], [os.cashier_name(0x7f640d0b81e0)], [os.cashier_no(0x7f640d0b87e0)], [os.member_id(0x7f640d0b8de0)],
[os.member_phone(0x7f640d0b93e0)], [os.member_name(0x7f640d0b99e0)], [os.member_card_no(0x7f640d0b9fe0)], [os.member_card_type_id(0x7f640d0ba5e0)], [os.member_card_type(0x7f640d0babe0)],
[os.member_points(0x7f640d0bb1e0)], [os.is_ultimate_member(0x7f640d0bb7e0)], [os.detail_num(0x7f640d0bbde0)], [rf.give_points(0x7f640d0bcda0)], [os.hub_send_flag(0x7f640d0bd420)],
[os.is_ephedrine(0x7f640d0bda20)], [os.is_high_risk(0x7f640d0d9230)], [os.create_user_id(0x7f640d0d9830)], [os.update_user_id(0x7f640d0d9e30)], [os.update_time(0x7f640d0da750)],
[os.is_deleted(0x7f640d096d50)], [os.tenant_id(0x7f640d0db070)], [rf.id(0x7f640d095af0)], [rf.department_id(0x7f640d07da40)]), filter(nil), rowset=256
conds(nil), nl_params_([rf.order_sales_id(0x7f640d0779e0)(:1)]), use_batch=true
8 - output([rf.refund_time(0x7f640d0b63e0)], [rf.create_time(0x7f640d09a610)], [rf.refund_money(0x7f640d0a4740)], [rf.status(0x7f640d09e260)], [rf.accounting_day(0x7f640d0b69e0)],
[rf.give_points(0x7f640d0bcda0)], [rf.id(0x7f640d095af0)], [rf.order_sales_id(0x7f640d0779e0)], [rf.department_id(0x7f640d07da40)]), filter(nil), rowset=256
conds(nil), nl_params_([rf.id(0x7f640d095af0)(:2)]), use_batch=false
9 - output([rf.id(0x7f640d095af0)], [rf.order_sales_id(0x7f640d0779e0)], [rf.department_id(0x7f640d07da40)], [rf.create_time(0x7f640d09a610)], [rf.status(0x7f640d09e260)],
[rf.refund_money(0x7f640d0a4740)], [rf.refund_time(0x7f640d0b63e0)], [rf.accounting_day(0x7f640d0b69e0)], [rf.give_points(0x7f640d0bcda0)]), filter([rf.create_time(0x7f640d09a610)
>= INTERNAL_FUNCTION('2024-06-12 14:41:02.781', 114, 17)(0x7f640d1bb250)(0x7f640d099040)], [rf.status(0x7f640d09e260) != 3(0x7f640d09db10)], [rf.is_deleted(0x7f640d097fb0)
= 0(0x7f640d097860)], [rf.create_time(0x7f640d09a610) <= INTERNAL_FUNCTION('2024-12-12 14:41:02.781', 112, 17)(0x7f640d1bbe80)(0x7f640d099740)]), rowset=256
access([rf.id(0x7f640d095af0)], [rf.order_sales_id(0x7f640d0779e0)], [rf.department_id(0x7f640d07da40)], [rf.is_deleted(0x7f640d097fb0)], [rf.create_time(0x7f640d09a610)],
[rf.status(0x7f640d09e260)], [rf.refund_money(0x7f640d0a4740)], [rf.refund_time(0x7f640d0b63e0)], [rf.accounting_day(0x7f640d0b69e0)], [rf.give_points(0x7f640d0bcda0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([rf.department_id(0x7f640d07da40)], [rf.id(0x7f640d095af0)]), range(270661884600029197,MIN ; 270661884600029197,MAX),
range_cond([rf.department_id(0x7f640d07da40) = 270661884600029197(0x7f640d07d2f0)])
10 - output(nil), filter(nil), rowset=256
access(nil)
11 - output([order_refund_detail.order_refund_id(0x7f640d091770)]), filter([order_refund_detail.goods_no(0x7f640d090ee0) = '8218424'(0x7f640d090790)]), rowset=256
access([order_refund_detail.id(0x7f640d1ba8d0)], [order_refund_detail.goods_no(0x7f640d090ee0)], [order_refund_detail.order_refund_id(0x7f640d091770)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([order_refund_detail.order_refund_id(0x7f640d091770)], [order_refund_detail.id(0x7f640d1ba8d0)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([order_refund_detail.order_refund_id(0x7f640d091770) = :2(0x7f5eb2962e00)])
12 - output([os.id(0x7f640d077cd0)], [os.is_deleted(0x7f640d096d50)], [os.department_id(0x7f640d0a0070)], [os.department_name(0x7f640d0a0670)], [os.region_code(0x7f640d0a0c70)],
[os.region_name(0x7f640d0a1270)], [os.long_store_no(0x7f640d0a1870)], [os.change_money(0x7f640d0a4dc0)], [os.type(0x7f640d0a63b0)], [os.sub_type(0x7f640d0a69b0)],
[os.medical_insurance_business_class(0x7f640d0a6fb0)], [os.medical_insurance_class(0x7f640d0a75b0)], [os.type_source(0x7f640d0a7bb0)], [os.order_time(0x7f640d0a84d0)],
[os.classes_setting_id(0x7f640d0b6fe0)], [os.classes_name(0x7f640d0b75e0)], [os.cashier_id(0x7f640d0b7be0)], [os.cashier_name(0x7f640d0b81e0)], [os.cashier_no(0x7f640d0b87e0)],
[os.member_id(0x7f640d0b8de0)], [os.member_phone(0x7f640d0b93e0)], [os.member_name(0x7f640d0b99e0)], [os.member_card_no(0x7f640d0b9fe0)], [os.member_card_type_id(0x7f640d0ba5e0)],
[os.member_card_type(0x7f640d0babe0)], [os.member_points(0x7f640d0bb1e0)], [os.is_ultimate_member(0x7f640d0bb7e0)], [os.detail_num(0x7f640d0bbde0)], [os.hub_send_flag(0x7f640d0bd420)],
[os.is_ephedrine(0x7f640d0bda20)], [os.is_high_risk(0x7f640d0d9230)], [os.create_user_id(0x7f640d0d9830)], [os.update_user_id(0x7f640d0d9e30)], [os.update_time(0x7f640d0da750)],
[os.tenant_id(0x7f640d0db070)]), filter([os.is_deleted(0x7f640d096d50) = 0(0x7f640d096600)]), rowset=256
access([GROUP_ID(0x7f7b32798de0)], [os.id(0x7f640d077cd0)], [os.is_deleted(0x7f640d096d50)], [os.department_id(0x7f640d0a0070)], [os.department_name(0x7f640d0a0670)],
[os.region_code(0x7f640d0a0c70)], [os.region_name(0x7f640d0a1270)], [os.long_store_no(0x7f640d0a1870)], [os.change_money(0x7f640d0a4dc0)], [os.type(0x7f640d0a63b0)],
[os.sub_type(0x7f640d0a69b0)], [os.medical_insurance_business_class(0x7f640d0a6fb0)], [os.medical_insurance_class(0x7f640d0a75b0)], [os.type_source(0x7f640d0a7bb0)],
[os.order_time(0x7f640d0a84d0)], [os.classes_setting_id(0x7f640d0b6fe0)], [os.classes_name(0x7f640d0b75e0)], [os.cashier_id(0x7f640d0b7be0)], [os.cashier_name(0x7f640d0b81e0)],
[os.cashier_no(0x7f640d0b87e0)], [os.member_id(0x7f640d0b8de0)], [os.member_phone(0x7f640d0b93e0)], [os.member_name(0x7f640d0b99e0)], [os.member_card_no(0x7f640d0b9fe0)],
[os.member_card_type_id(0x7f640d0ba5e0)], [os.member_card_type(0x7f640d0babe0)], [os.member_points(0x7f640d0bb1e0)], [os.is_ultimate_member(0x7f640d0bb7e0)],
[os.detail_num(0x7f640d0bbde0)], [os.hub_send_flag(0x7f640d0bd420)], [os.is_ephedrine(0x7f640d0bda20)], [os.is_high_risk(0x7f640d0d9230)], [os.create_user_id(0x7f640d0d9830)],
[os.update_user_id(0x7f640d0d9e30)], [os.update_time(0x7f640d0da750)], [os.tenant_id(0x7f640d0db070)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([os.id(0x7f640d077cd0)]), range(MIN ; MAX),
range_cond([:1 = os.id(0x7f640d077cd0)(0x7f5eb2930ca0)])
13 - output([osim.order_source(0x7f640d0dc860)]), filter([:6]), rowset=256
access([GROUP_ID(0x7f7b327a2b80)], [osim.order_source(0x7f640d0dc860)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([osim.id(0x7f640d07c7e0)]), range(MIN ; MAX),
range_cond([:5 = osim.id(0x7f640d07c7e0)(0x7f714fa75730)])
14 - output([opr.id(0x7f640d0dc260)]), filter(nil), rowset=256
access([GROUP_ID(0x7f7b327a4ce0)], [opr.id(0x7f640d0dc260)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([opr.order_sales_id(0x7f640d07b1e0)], [opr.shadow_pk_0(0x7f714fa27d30)]), range(MIN ; MAX),
range_cond([:4 = opr.order_sales_id(0x7f640d07b1e0)(0x7f714fa51d80)])
15 - output([VIEW2.os.id(0x7f61a8658cc0)], [VIEW2.os.department_id(0x7f61a86595a0)], [VIEW2.os.department_name(0x7f61a86598a0)], [VIEW2.os.region_code(0x7f61a8659b90)],
[VIEW2.os.region_name(0x7f61a8659e80)], [VIEW2.os.long_store_no(0x7f61a865a180)], [VIEW2.os.receivable_money(0x7f61a865a480)], [VIEW2.os.change_money(0x7f61a865a770)],
[VIEW2.os.discount_money(0x7f61a865aa70)], [VIEW2.os.actual_receivable_money(0x7f61a865ad70)], [VIEW2.os.type(0x7f61a865b060)], [VIEW2.os.sub_type(0x7f61a865b350)],
[VIEW2.os.medical_insurance_business_class(0x7f61a865b660)], [VIEW2.os.medical_insurance_class(0x7f61a865b960)], [VIEW2.os.type_source(0x7f61a8669560)],
[VIEW2.os.status(0x7f61a8669850)], [VIEW2.os.order_time(0x7f61a8669b40)], [VIEW2.os.finish_time(0x7f61a8658fb0)], [VIEW2.os.accounting_day(0x7f61a8669e40)],
[VIEW2.os.classes_setting_id(0x7f61a866a140)], [VIEW2.os.classes_name(0x7f61a866a430)], [VIEW2.os.cashier_id(0x7f61a866a720)], [VIEW2.os.cashier_name(0x7f61a866aa10)],
[VIEW2.os.cashier_no(0x7f61a866ad00)], [VIEW2.os.member_id(0x7f61a866aff0)], [VIEW2.os.member_phone(0x7f61a866b2e0)], [VIEW2.os.member_name(0x7f61a866b5d0)],
[VIEW2.os.member_card_no(0x7f61a866b8d0)], [VIEW2.os.member_card_type_id(0x7f61a866bbd0)], [VIEW2.os.member_card_type(0x7f61a866bed0)], [VIEW2.os.member_points(0x7f61a866c1d0)],
[VIEW2.os.is_ultimate_member(0x7f61a866c4d0)], [VIEW2.os.detail_num(0x7f61a866c7c0)], [cast(VIEW2.os.give_points(0x7f61a866cab0), BIGINT(20, 0))(0x7f640d150dc0)],
[VIEW2.os.hub_send_flag(0x7f61a8687fc0)], [VIEW2.os.is_ephedrine(0x7f61a86882b0)], [VIEW2.os.is_high_risk(0x7f61a86885a0)], [VIEW2.os.create_user_id(0x7f61a86888a0)],
[VIEW2.os.update_user_id(0x7f61a8688ba0)], [VIEW2.os.create_time(0x7f61a86592a0)], [VIEW2.os.update_time(0x7f61a8688e90)], [VIEW2.os.is_deleted(0x7f61a8689180)],
[VIEW2.os.tenant_id(0x7f61a8689470)], [VIEW2.os.id(0x7f61a8658cc0)], [0], [cast(0, DECIMAL(24, 4))(0x7f640d1518f0)], [cast(NULL, BIGINT UNSIGNED(20, 0))(0x7f640d152420)],
[opr.id(0x7f640d14efd0)], [osim.order_source(0x7f640d14f5d0)]), filter(nil), rowset=256
limit(15), offset(nil)
16 - output([VIEW2.os.id(0x7f61a8658cc0)], [VIEW2.os.department_id(0x7f61a86595a0)], [VIEW2.os.department_name(0x7f61a86598a0)], [VIEW2.os.region_code(0x7f61a8659b90)],
[VIEW2.os.region_name(0x7f61a8659e80)], [VIEW2.os.long_store_no(0x7f61a865a180)], [VIEW2.os.receivable_money(0x7f61a865a480)], [VIEW2.os.change_money(0x7f61a865a770)],
[VIEW2.os.discount_money(0x7f61a865aa70)], [VIEW2.os.actual_receivable_money(0x7f61a865ad70)], [VIEW2.os.type(0x7f61a865b060)], [VIEW2.os.sub_type(0x7f61a865b350)],
[VIEW2.os.medical_insurance_business_class(0x7f61a865b660)], [VIEW2.os.medical_insurance_class(0x7f61a865b960)], [VIEW2.os.type_source(0x7f61a8669560)],
[VIEW2.os.status(0x7f61a8669850)], [VIEW2.os.order_time(0x7f61a8669b40)], [VIEW2.os.finish_time(0x7f61a8658fb0)], [VIEW2.os.accounting_day(0x7f61a8669e40)],
[VIEW2.os.classes_setting_id(0x7f61a866a140)], [VIEW2.os.classes_name(0x7f61a866a430)], [VIEW2.os.cashier_id(0x7f61a866a720)], [VIEW2.os.cashier_name(0x7f61a866aa10)],
[VIEW2.os.cashier_no(0x7f61a866ad00)], [VIEW2.os.member_id(0x7f61a866aff0)], [VIEW2.os.member_phone(0x7f61a866b2e0)], [VIEW2.os.member_name(0x7f61a866b5d0)],
[VIEW2.os.member_card_no(0x7f61a866b8d0)], [VIEW2.os.member_card_type_id(0x7f61a866bbd0)], [VIEW2.os.member_card_type(0x7f61a866bed0)], [VIEW2.os.member_points(0x7f61a866c1d0)],
[VIEW2.os.is_ultimate_member(0x7f61a866c4d0)], [VIEW2.os.detail_num(0x7f61a866c7c0)], [VIEW2.os.hub_send_flag(0x7f61a8687fc0)], [VIEW2.os.is_ephedrine(0x7f61a86882b0)],
[VIEW2.os.is_high_risk(0x7f61a86885a0)], [VIEW2.os.create_user_id(0x7f61a86888a0)], [VIEW2.os.update_user_id(0x7f61a8688ba0)], [VIEW2.os.create_time(0x7f61a86592a0)],
[VIEW2.os.update_time(0x7f61a8688e90)], [VIEW2.os.is_deleted(0x7f61a8689180)], [VIEW2.os.tenant_id(0x7f61a8689470)], [opr.id(0x7f640d14efd0)], [osim.order_source(0x7f640d14f5d0)],
[VIEW2.os.give_points(0x7f61a866cab0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW2.os.id(0x7f61a8658cc0)(:9)]), use_batch=true
17 - output([VIEW2.os.id(0x7f61a8658cc0)], [VIEW2.os.department_id(0x7f61a86595a0)], [VIEW2.os.department_name(0x7f61a86598a0)], [VIEW2.os.region_code(0x7f61a8659b90)],
[VIEW2.os.region_name(0x7f61a8659e80)], [VIEW2.os.long_store_no(0x7f61a865a180)], [VIEW2.os.receivable_money(0x7f61a865a480)], [VIEW2.os.change_money(0x7f61a865a770)],
[VIEW2.os.discount_money(0x7f61a865aa70)], [VIEW2.os.actual_receivable_money(0x7f61a865ad70)], [VIEW2.os.type(0x7f61a865b060)], [VIEW2.os.sub_type(0x7f61a865b350)],
[VIEW2.os.medical_insurance_business_class(0x7f61a865b660)], [VIEW2.os.medical_insurance_class(0x7f61a865b960)], [VIEW2.os.type_source(0x7f61a8669560)],
[VIEW2.os.status(0x7f61a8669850)], [VIEW2.os.order_time(0x7f61a8669b40)], [VIEW2.os.finish_time(0x7f61a8658fb0)], [VIEW2.os.accounting_day(0x7f61a8669e40)],
[VIEW2.os.classes_setting_id(0x7f61a866a140)], [VIEW2.os.classes_name(0x7f61a866a430)], [VIEW2.os.cashier_id(0x7f61a866a720)], [VIEW2.os.cashier_name(0x7f61a866aa10)],
[VIEW2.os.cashier_no(0x7f61a866ad00)], [VIEW2.os.member_id(0x7f61a866aff0)], [VIEW2.os.member_phone(0x7f61a866b2e0)], [VIEW2.os.member_name(0x7f61a866b5d0)],
[VIEW2.os.member_card_no(0x7f61a866b8d0)], [VIEW2.os.member_card_type_id(0x7f61a866bbd0)], [VIEW2.os.member_card_type(0x7f61a866bed0)], [VIEW2.os.member_points(0x7f61a866c1d0)],
[VIEW2.os.is_ultimate_member(0x7f61a866c4d0)], [VIEW2.os.detail_num(0x7f61a866c7c0)], [VIEW2.os.hub_send_flag(0x7f61a8687fc0)], [VIEW2.os.is_ephedrine(0x7f61a86882b0)],
[VIEW2.os.is_high_risk(0x7f61a86885a0)], [VIEW2.os.create_user_id(0x7f61a86888a0)], [VIEW2.os.update_user_id(0x7f61a8688ba0)], [VIEW2.os.create_time(0x7f61a86592a0)],
[VIEW2.os.update_time(0x7f61a8688e90)], [VIEW2.os.is_deleted(0x7f61a8689180)], [VIEW2.os.tenant_id(0x7f61a8689470)], [osim.order_source(0x7f640d14f5d0)],
[VIEW2.os.give_points(0x7f61a866cab0)]), filter(nil), rowset=256
conds(nil), nl_params_([VIEW2.os.id(0x7f61a8658cc0)(:10)]), use_batch=true
18 - output([VIEW2.os.id(0x7f61a8658cc0)], [VIEW2.os.finish_time(0x7f61a8658fb0)], [VIEW2.os.create_time(0x7f61a86592a0)], [VIEW2.os.department_id(0x7f61a86595a0)],
[VIEW2.os.department_name(0x7f61a86598a0)], [VIEW2.os.region_code(0x7f61a8659b90)], [VIEW2.os.region_name(0x7f61a8659e80)], [VIEW2.os.long_store_no(0x7f61a865a180)],
[VIEW2.os.receivable_money(0x7f61a865a480)], [VIEW2.os.change_money(0x7f61a865a770)], [VIEW2.os.discount_money(0x7f61a865aa70)], [VIEW2.os.actual_receivable_money(0x7f61a865ad70)],
[VIEW2.os.type(0x7f61a865b060)], [VIEW2.os.sub_type(0x7f61a865b350)], [VIEW2.os.medical_insurance_business_class(0x7f61a865b660)], [VIEW2.os.medical_insurance_class(0x7f61a865b960)],
[VIEW2.os.type_source(0x7f61a8669560)], [VIEW2.os.status(0x7f61a8669850)], [VIEW2.os.order_time(0x7f61a8669b40)], [VIEW2.os.accounting_day(0x7f61a8669e40)],
[VIEW2.os.classes_setting_id(0x7f61a866a140)], [VIEW2.os.classes_name(0x7f61a866a430)], [VIEW2.os.cashier_id(0x7f61a866a720)], [VIEW2.os.cashier_name(0x7f61a866aa10)],
[VIEW2.os.cashier_no(0x7f61a866ad00)], [VIEW2.os.member_id(0x7f61a866aff0)], [VIEW2.os.member_phone(0x7f61a866b2e0)], [VIEW2.os.member_name(0x7f61a866b5d0)],
[VIEW2.os.member_card_no(0x7f61a866b8d0)], [VIEW2.os.member_card_type_id(0x7f61a866bbd0)], [VIEW2.os.member_card_type(0x7f61a866bed0)], [VIEW2.os.member_points(0x7f61a866c1d0)],
[VIEW2.os.is_ultimate_member(0x7f61a866c4d0)], [VIEW2.os.detail_num(0x7f61a866c7c0)], [VIEW2.os.give_points(0x7f61a866cab0)], [VIEW2.os.hub_send_flag(0x7f61a8687fc0)],
[VIEW2.os.is_ephedrine(0x7f61a86882b0)], [VIEW2.os.is_high_risk(0x7f61a86885a0)], [VIEW2.os.create_user_id(0x7f61a86888a0)], [VIEW2.os.update_user_id(0x7f61a8688ba0)],
[VIEW2.os.update_time(0x7f61a8688e90)], [VIEW2.os.is_deleted(0x7f61a8689180)], [VIEW2.os.tenant_id(0x7f61a8689470)]), filter(nil), rowset=256
access([VIEW2.os.id(0x7f61a8658cc0)], [VIEW2.os.finish_time(0x7f61a8658fb0)], [VIEW2.os.create_time(0x7f61a86592a0)], [VIEW2.os.department_id(0x7f61a86595a0)],
[VIEW2.os.department_name(0x7f61a86598a0)], [VIEW2.os.region_code(0x7f61a8659b90)], [VIEW2.os.region_name(0x7f61a8659e80)], [VIEW2.os.long_store_no(0x7f61a865a180)],
[VIEW2.os.receivable_money(0x7f61a865a480)], [VIEW2.os.change_money(0x7f61a865a770)], [VIEW2.os.discount_money(0x7f61a865aa70)], [VIEW2.os.actual_receivable_money(0x7f61a865ad70)],
[VIEW2.os.type(0x7f61a865b060)], [VIEW2.os.sub_type(0x7f61a865b350)], [VIEW2.os.medical_insurance_business_class(0x7f61a865b660)], [VIEW2.os.medical_insurance_class(0x7f61a865b960)],
[VIEW2.os.type_source(0x7f61a8669560)], [VIEW2.os.status(0x7f61a8669850)], [VIEW2.os.order_time(0x7f61a8669b40)], [VIEW2.os.accounting_day(0x7f61a8669e40)],
[VIEW2.os.classes_setting_id(0x7f61a866a140)], [VIEW2.os.classes_name(0x7f61a866a430)], [VIEW2.os.cashier_id(0x7f61a866a720)], [VIEW2.os.cashier_name(0x7f61a866aa10)],
[VIEW2.os.cashier_no(0x7f61a866ad00)], [VIEW2.os.member_id(0x7f61a866aff0)], [VIEW2.os.member_phone(0x7f61a866b2e0)], [VIEW2.os.member_name(0x7f61a866b5d0)],
[VIEW2.os.member_card_no(0x7f61a866b8d0)], [VIEW2.os.member_card_type_id(0x7f61a866bbd0)], [VIEW2.os.member_card_type(0x7f61a866bed0)], [VIEW2.os.member_points(0x7f61a866c1d0)],
[VIEW2.os.is_ultimate_member(0x7f61a866c4d0)], [VIEW2.os.detail_num(0x7f61a866c7c0)], [VIEW2.os.give_points(0x7f61a866cab0)], [VIEW2.os.hub_send_flag(0x7f61a8687fc0)],
[VIEW2.os.is_ephedrine(0x7f61a86882b0)], [VIEW2.os.is_high_risk(0x7f61a86885a0)], [VIEW2.os.create_user_id(0x7f61a86888a0)], [VIEW2.os.update_user_id(0x7f61a8688ba0)],
[VIEW2.os.update_time(0x7f61a8688e90)], [VIEW2.os.is_deleted(0x7f61a8689180)], [VIEW2.os.tenant_id(0x7f61a8689470)])
19 - output([os.id(0x7f640d0f1c40)], [os.finish_time(0x7f640d129cb0)], [os.create_time(0x7f640d10ebc0)], [os.department_id(0x7f640d1119e0)], [os.department_name(0x7f640d114d70)],
[os.region_code(0x7f640d115370)], [os.region_name(0x7f640d115970)], [os.long_store_no(0x7f640d115f70)], [os.receivable_money(0x7f640d116570)], [os.change_money(0x7f640d116b70)],
[os.discount_money(0x7f640d117170)], [os.actual_receivable_money(0x7f640d117770)], [os.type(0x7f640d119c80)], [os.sub_type(0x7f640d11a280)], [os.medical_insurance_business_class(0x7f640d11a880)],
[os.medical_insurance_class(0x7f640d11ae80)], [os.type_source(0x7f640d11b480)], [os.status(0x7f640d112c40)], [os.order_time(0x7f640d11bda0)], [os.accounting_day(0x7f640d12a2b0)],
[os.classes_setting_id(0x7f640d12a8b0)], [os.classes_name(0x7f640d12aeb0)], [os.cashier_id(0x7f640d12b4b0)], [os.cashier_name(0x7f640d12bab0)], [os.cashier_no(0x7f640d12c0b0)],
[os.member_id(0x7f640d12c6b0)], [os.member_phone(0x7f640d12ccb0)], [os.member_name(0x7f640d12d2b0)], [os.member_card_no(0x7f640d12d8b0)], [os.member_card_type_id(0x7f640d12deb0)],
[os.member_card_type(0x7f640d12e4b0)], [os.member_points(0x7f640d12eab0)], [os.is_ultimate_member(0x7f640d12f0b0)], [os.detail_num(0x7f640d12f6b0)], [os.give_points(0x7f640d12fcb0)],
[os.hub_send_flag(0x7f640d1302b0)], [os.is_ephedrine(0x7f640d1308b0)], [os.is_high_risk(0x7f640d14c0c0)], [os.create_user_id(0x7f640d14c6c0)], [os.update_user_id(0x7f640d14ccc0)],
[os.update_time(0x7f640d14d5e0)], [os.is_deleted(0x7f640d10c560)], [os.tenant_id(0x7f640d14df00)]), filter(nil), rowset=256
sort_keys([os.finish_time(0x7f640d129cb0), DESC], [os.create_time(0x7f640d10ebc0), DESC]), topn(15)
20 - output([os.finish_time(0x7f640d129cb0)], [os.create_time(0x7f640d10ebc0)], [os.id(0x7f640d0f1c40)], [os.department_id(0x7f640d1119e0)], [os.department_name(0x7f640d114d70)],
[os.region_code(0x7f640d115370)], [os.region_name(0x7f640d115970)], [os.long_store_no(0x7f640d115f70)], [os.receivable_money(0x7f640d116570)], [os.change_money(0x7f640d116b70)],
[os.discount_money(0x7f640d117170)], [os.actual_receivable_money(0x7f640d117770)], [os.type(0x7f640d119c80)], [os.sub_type(0x7f640d11a280)], [os.medical_insurance_business_class(0x7f640d11a880)],
[os.medical_insurance_class(0x7f640d11ae80)], [os.type_source(0x7f640d11b480)], [os.status(0x7f640d112c40)], [os.order_time(0x7f640d11bda0)], [os.accounting_day(0x7f640d12a2b0)],
[os.classes_setting_id(0x7f640d12a8b0)], [os.classes_name(0x7f640d12aeb0)], [os.cashier_id(0x7f640d12b4b0)], [os.cashier_name(0x7f640d12bab0)], [os.cashier_no(0x7f640d12c0b0)],
[os.member_id(0x7f640d12c6b0)], [os.member_phone(0x7f640d12ccb0)], [os.member_name(0x7f640d12d2b0)], [os.member_card_no(0x7f640d12d8b0)], [os.member_card_type_id(0x7f640d12deb0)],
[os.member_card_type(0x7f640d12e4b0)], [os.member_points(0x7f640d12eab0)], [os.is_ultimate_member(0x7f640d12f0b0)], [os.detail_num(0x7f640d12f6b0)], [os.give_points(0x7f640d12fcb0)],
[os.hub_send_flag(0x7f640d1302b0)], [os.is_ephedrine(0x7f640d1308b0)], [os.is_high_risk(0x7f640d14c0c0)], [os.create_user_id(0x7f640d14c6c0)], [os.update_user_id(0x7f640d14ccc0)],
[os.update_time(0x7f640d14d5e0)], [os.is_deleted(0x7f640d10c560)], [os.tenant_id(0x7f640d14df00)]), filter(nil), rowset=256
equal_conds([osd.order_sales_id(0x7f640d10b2f0) = os.id(0x7f640d0f1c40)(0x7f640d10aba0)]), other_conds(nil)
21 - output([osd.order_sales_id(0x7f640d10b2f0)]), filter(nil), rowset=256
access([osd.order_sales_id(0x7f640d10b2f0)])
22 - output([order_sales_detail.order_sales_id(0x7f640d109170)]), filter(nil), rowset=256
distinct([order_sales_detail.order_sales_id(0x7f640d109170)])
23 - output([order_sales_detail.order_sales_id(0x7f640d109170)]), filter(nil), rowset=256
access([order_sales_detail.id(0x7f640d1be6b0)], [order_sales_detail.order_sales_id(0x7f640d109170)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([order_sales_detail.goods_no(0x7f640d1088e0)], [order_sales_detail.id(0x7f640d1be6b0)]), range(8218424,MIN ; 8218424,MAX),
range_cond([order_sales_detail.goods_no(0x7f640d1088e0) = '8218424'(0x7f640d108190)])
24 - output([os.id(0x7f640d0f1c40)], [os.is_deleted(0x7f640d10c560)], [os.create_time(0x7f640d10ebc0)], [os.department_id(0x7f640d1119e0)], [os.status(0x7f640d112c40)],
[os.department_name(0x7f640d114d70)], [os.region_code(0x7f640d115370)], [os.region_name(0x7f640d115970)], [os.long_store_no(0x7f640d115f70)], [os.receivable_money(0x7f640d116570)],
[os.change_money(0x7f640d116b70)], [os.discount_money(0x7f640d117170)], [os.actual_receivable_money(0x7f640d117770)], [os.type(0x7f640d119c80)], [os.sub_type(0x7f640d11a280)],
[os.medical_insurance_business_class(0x7f640d11a880)], [os.medical_insurance_class(0x7f640d11ae80)], [os.type_source(0x7f640d11b480)], [os.order_time(0x7f640d11bda0)],
[os.finish_time(0x7f640d129cb0)], [os.accounting_day(0x7f640d12a2b0)], [os.classes_setting_id(0x7f640d12a8b0)], [os.classes_name(0x7f640d12aeb0)], [os.cashier_id(0x7f640d12b4b0)],
[os.cashier_name(0x7f640d12bab0)], [os.cashier_no(0x7f640d12c0b0)], [os.member_id(0x7f640d12c6b0)], [os.member_phone(0x7f640d12ccb0)], [os.member_name(0x7f640d12d2b0)],
[os.member_card_no(0x7f640d12d8b0)], [os.member_card_type_id(0x7f640d12deb0)], [os.member_card_type(0x7f640d12e4b0)], [os.member_points(0x7f640d12eab0)],
[os.is_ultimate_member(0x7f640d12f0b0)], [os.detail_num(0x7f640d12f6b0)], [os.give_points(0x7f640d12fcb0)], [os.hub_send_flag(0x7f640d1302b0)], [os.is_ephedrine(0x7f640d1308b0)],
[os.is_high_risk(0x7f640d14c0c0)], [os.create_user_id(0x7f640d14c6c0)], [os.update_user_id(0x7f640d14ccc0)], [os.update_time(0x7f640d14d5e0)], [os.tenant_id(0x7f640d14df00)]), filter([os.status(0x7f64
0d112c40) != 17(0x7f640d1124f0)], [os.is_deleted(0x7f640d10c560) = 0(0x7f640d10be10)]), rowset=256
access([os.id(0x7f640d0f1c40)], [os.is_deleted(0x7f640d10c560)], [os.create_time(0x7f640d10ebc0)], [os.department_id(0x7f640d1119e0)], [os.status(0x7f640d112c40)],
[os.department_name(0x7f640d114d70)], [os.region_code(0x7f640d115370)], [os.region_name(0x7f640d115970)], [os.long_store_no(0x7f640d115f70)], [os.receivable_money(0x7f640d116570)],
[os.change_money(0x7f640d116b70)], [os.discount_money(0x7f640d117170)], [os.actual_receivable_money(0x7f640d117770)], [os.type(0x7f640d119c80)], [os.sub_type(0x7f640d11a280)],
[os.medical_insurance_business_class(0x7f640d11a880)], [os.medical_insurance_class(0x7f640d11ae80)], [os.type_source(0x7f640d11b480)], [os.order_time(0x7f640d11bda0)],
[os.finish_time(0x7f640d129cb0)], [os.accounting_day(0x7f640d12a2b0)], [os.classes_setting_id(0x7f640d12a8b0)], [os.classes_name(0x7f640d12aeb0)], [os.cashier_id(0x7f640d12b4b0)],
[os.cashier_name(0x7f640d12bab0)], [os.cashier_no(0x7f640d12c0b0)], [os.member_id(0x7f640d12c6b0)], [os.member_phone(0x7f640d12ccb0)], [os.member_name(0x7f640d12d2b0)],
[os.member_card_no(0x7f640d12d8b0)], [os.member_card_type_id(0x7f640d12deb0)], [os.member_card_type(0x7f640d12e4b0)], [os.member_points(0x7f640d12eab0)],
[os.is_ultimate_member(0x7f640d12f0b0)], [os.detail_num(0x7f640d12f6b0)], [os.give_points(0x7f640d12fcb0)], [os.hub_send_flag(0x7f640d1302b0)], [os.is_ephedrine(0x7f640d1308b0)],
[os.is_high_risk(0x7f640d14c0c0)], [os.create_user_id(0x7f640d14c6c0)], [os.update_user_id(0x7f640d14ccc0)], [os.update_time(0x7f640d14d5e0)], [os.tenant_id(0x7f640d14df00)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([os.department_id(0x7f640d1119e0)], [os.create_time(0x7f640d10ebc0)], [os.id(0x7f640d0f1c40)]), range(270661884600029197,2024-06-12 14:41:02.781000,
MIN ; 270661884600029197,2024-12-12 14:41:02.781000,MAX),
range_cond([os.create_time(0x7f640d10ebc0) >= INTERNAL_FUNCTION('2024-06-12 14:41:02.781', 114, 17)(0x7f640d1befb0)(0x7f640d10d5f0)], [os.create_time(0x7f640d10ebc0)
<= INTERNAL_FUNCTION('2024-12-12 14:41:02.781', 112, 17)(0x7f640d1bfbe0)(0x7f640d10dcf0)], [os.department_id(0x7f640d1119e0) = 270661884600029197(0x7f640d111290)])
25 - output([osim.order_source(0x7f640d14f5d0)]), filter(nil), rowset=256
access([GROUP_ID(0x7f7b327bc3e0)], [osim.order_source(0x7f640d14f5d0)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([osim.id(0x7f640d0f5440)]), range(MIN ; MAX),
range_cond([:10 = osim.id(0x7f640d0f5440)(0x7f7b326f6190)])
26 - output([opr.id(0x7f640d14efd0)]), filter(nil), rowset=256
access([GROUP_ID(0x7f7b327be540)], [opr.id(0x7f640d14efd0)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([opr.order_sales_id(0x7f640d0f1f30)], [opr.shadow_pk_0(0x7f7b326a8670)]), range(MIN ; MAX),
range_cond([:9 = opr.order_sales_id(0x7f640d0f1f30)(0x7f7b326d2720)])
Used Hint:
-------------------------------------
/*+

INDEX("os" "idx_order_sales_department_id_create_time")
*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$8BC34FF0
stmt_id:2, SET$1 > SET$939198FE > SET$BFC27C50 > SET$EC04A340 > SET$6913F587
stmt_id:3, SEL$2 > SEL$A3D39CCF > SEL$AFBCB124 > SEL$7E653A1A
stmt_id:4, SEL$3 > SEL$6BC7FBC3 > SEL$2FC64B17
stmt_id:5, SEL$4 > SEL$862290CF > SEL$BA81EF59 > SEL$BDEE6E70
stmt_id:6, SEL$5 > SEL$02479FB7 > SEL$E7505DD1
stmt_id:7, parent:SEL$AFBCB124 > SEL$7E653A19 > SEL$2FA61C88 > SEL$D6D8F97F
stmt_id:8, parent:SEL$BA81EF59 > SEL$BDEE6E6F
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$7E653A1A" (("VIEW1"@"SEL$AFBCB124" "sl_pos_order"."osim"@"SEL$2") "sl_pos_order"."opr"@"SEL$2"))
USE_NL(@"SEL$7E653A1A" "sl_pos_order"."opr"@"SEL$2")
USE_NL(@"SEL$7E653A1A" "sl_pos_order"."osim"@"SEL$2")
LEADING(@"SEL$D6D8F97F" (("sl_pos_order"."rf"@"SEL$2" "osd"@"SEL$2") "sl_pos_order"."os"@"SEL$2"))
USE_NL(@"SEL$D6D8F97F" "sl_pos_order"."os"@"SEL$2")
USE_NL(@"SEL$D6D8F97F" "osd"@"SEL$2")
INDEX(@"SEL$D6D8F97F" "rf"@"SEL$2" "idx_order_refund_department_id")
INDEX(@"SEL$2FC64B17" "sl_pos_order"."order_refund_detail"@"SEL$3" "idx_order_refund_id")
USE_DAS(@"SEL$2FC64B17" "sl_pos_order"."order_refund_detail"@"SEL$3")
FULL(@"SEL$D6D8F97F" "os"@"SEL$2")
USE_DAS(@"SEL$D6D8F97F" "os"@"SEL$2")
FULL(@"SEL$7E653A1A" "osim"@"SEL$2")
USE_DAS(@"SEL$7E653A1A" "osim"@"SEL$2")
INDEX(@"SEL$7E653A1A" "opr"@"SEL$2" "uni_order_sales_id")
USE_DAS(@"SEL$7E653A1A" "opr"@"SEL$2")
LEADING(@"SEL$BDEE6E70" (("VIEW2"@"SEL$BA81EF59" "sl_pos_order"."osim"@"SEL$4") "sl_pos_order"."opr"@"SEL$4"))
USE_NL(@"SEL$BDEE6E70" "sl_pos_order"."opr"@"SEL$4")
USE_NL(@"SEL$BDEE6E70" "sl_pos_order"."osim"@"SEL$4")
LEADING(@"SEL$BDEE6E6F" ("osd"@"SEL$4" "sl_pos_order"."os"@"SEL$4"))
USE_HASH(@"SEL$BDEE6E6F" "sl_pos_order"."os"@"SEL$4")
USE_HASH_DISTINCT(@"SEL$E7505DD1")
INDEX(@"SEL$E7505DD1" "sl_pos_order"."order_sales_detail"@"SEL$5" "idx_goods_no")
INDEX(@"SEL$BDEE6E6F" "os"@"SEL$4" "idx_order_sales_department_id_create_time")
FULL(@"SEL$BDEE6E70" "osim"@"SEL$4")
USE_DAS(@"SEL$BDEE6E70" "osim"@"SEL$4")
INDEX(@"SEL$BDEE6E70" "opr"@"SEL$4" "uni_order_sales_id")
USE_DAS(@"SEL$BDEE6E70" "opr"@"SEL$4")
SIMPLIFY_EXPR(@"SEL$2")
SIMPLIFY_EXPR(@"SEL$4")
SIMPLIFY_LIMIT(@"SEL$1")
PROJECT_PRUNE(@"SEL$3")
PROJECT_PRUNE(@"SEL$5")
SIMPLIFY_SET(@"SET$1")
MERGE(@"SET$939198FE" < "SEL$8BC34FF0")
OUTER_TO_INNER(@"SEL$A3D39CCF")
OUTER_TO_INNER(@"SEL$862290CF")
PUSH_LIMIT(@"SEL$AFBCB124")
PUSH_LIMIT(@"SEL$BA81EF59")
PRED_DEDUCE(@"SEL$7E653A19")
SIMPLIFY_GROUP_BY(@"SEL$6BC7FBC3")
SIMPLIFY_GROUP_BY(@"SEL$02479FB7")
SIMPLIFY_ORDER_BY(@"SET$BFC27C50")
SIMPLIFY_SET(@"SET$EC04A340")
OUTER_TO_INNER(@"SEL$2FA61C88")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
rf:
table_rows:1158444
physical_range_rows:866
logical_range_rows:866
index_back_rows:866
output_rows:340
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_order_refund_department_id, idx_di_ct_osft_osi, idx_accounting_day_department_id, idx_order_sales_id, order_refund]
pruned_index_name:[idx_accounting_day_department_id]
unstable_index_name:[order_refund]
stats version:1733926647257274
dynamic sampling level:0
order_refund_detail:
table_rows:2382426
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_order_refund_detail_department_id, idx_order_refund_id, odi, order_refund_detail]
pruned_index_name:[idx_order_refund_detail_department_id, odi]
unstable_index_name:[order_refund_detail]
stats version:1733149081120140
dynamic sampling level:0
os:
table_rows:70678520
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time, order_sales]
pruned_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time]
stats version:1733842179002725
dynamic sampling level:0
osim:
table_rows:58258711
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_inca_order_id, order_sales_inca_mapping]
pruned_index_name:[idx_inca_order_id]
stats version:1733754440387683
dynamic sampling level:0
opr:
table_rows:55247796
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_update_user_id, idx_create_time, uni_order_sales_id, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
pruned_index_name:[idx_update_user_id, idx_create_time, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
stats version:1733408327558753
dynamic sampling level:0
order_sales_detail:
table_rows:171316742
physical_range_rows:29571
logical_range_rows:29568
index_back_rows:29568
output_rows:29568
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_order_sales_detail_order_sales_id, idx_create_time, idx_goods_id, idx_create_user_id, idx_order_sales_detail_department_id, idx_batch_id, idx_goods_no, idx_prescription_order_id, idx_dismantle_id, idx_producing_batch_number_id, idx_salesman_id, idx_department_id, idx_is_di_depi_osid, order_sales_detail]
pruned_index_name:[idx_create_time, idx_goods_id, idx_create_user_id, idx_order_sales_detail_department_id, idx_batch_id, idx_prescription_order_id, idx_dismantle_id, idx_producing_batch_number_id, idx_salesman_id, idx_department_id, idx_is_di_depi_osid]
stats version:1733841584954550
dynamic sampling level:0
os:
table_rows:70678520
physical_range_rows:53569
logical_range_rows:53568
index_back_rows:53568
output_rows:53544
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_order_sales_department_id_create_time, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time, order_sales]
pruned_index_name:[idx_department_id_accounting_day_classes_setting_id, idx_member_phone, idx_create_time, idx_create_user_id, idx_finish_time, idx_member_id, idx_long_store_no, idx_classes_setting_id, idx_member_card_no, idx_member_name, idx_accounting_day, idx_order_time, order_sales]
stats version:1733842179002725
dynamic sampling level:0
osim:
table_rows:58258711
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_inca_order_id, order_sales_inca_mapping]
pruned_index_name:[idx_inca_order_id]
stats version:1733754440387683
dynamic sampling level:0
opr:
table_rows:55247796
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_update_user_id, idx_create_time, uni_order_sales_id, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
pruned_index_name:[idx_update_user_id, idx_create_time, idx_create_user_id, idx_update_time, idx_department_id, order_pay_result]
stats version:1733408327558753
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property
Expr Constraints:
1 result is TRUE
1 result is TRUE













SELECT /*+ index(@SEL$4 os idx_order_sales_department_id_create_time) */
bothOfAll.*
from
(
SELECT
os.id,
os.department_id,
os.department_name,
os.region_code,
os.region_name,
os.long_store_no,
(0.00 - rf.refund_money) as receivable_money,
os.change_money,
0 as discount_money,
(0.00 - rf.refund_money) as actual_receivable_money,
os.type,
os.sub_type,
os.medical_insurance_business_class,
os.medical_insurance_class,
os.type_source,
rf.status,
os.order_time,
rf.refund_time as finish_time,
rf.accounting_day,
os.classes_setting_id,
os.classes_name,
os.cashier_id,
os.cashier_name,
os.cashier_no,
os.member_id,
os.member_phone,
os.member_name,
os.member_card_no,
os.member_card_type_id,
os.member_card_type,
os.member_points,
os.is_ultimate_member,
os.detail_num,
(0 - rf.give_points) as give_points,
os.hub_send_flag,
os.is_ephedrine,
os.is_high_risk,
os.create_user_id,
os.update_user_id,
rf.create_time as create_time,
os.update_time,
os.is_deleted,
os.tenant_id,
os.id as order_sales_id,
1 as is_refund,
rf.refund_money as refund_money,
rf.id as refundId,
opr.id orderPayResultId,
osim.order_source orderSyncSource
FROM
order_sales os
LEFT JOIN order_refund rf on rf.order_sales_id = os.id
LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id
LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id
AND rf.department_id = 270661884600029197
JOIN (
select
order_refund_id,
max(goods_id) as goods_id
from
order_refund_detail
where
goods_no = '8218424'
group by
order_refund_id
) osd on osd.order_refund_id = rf.id
WHERE
os.is_deleted = 0
and rf.is_deleted = 0
AND rf.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781'
AND rf.department_id = 270661884600029197
AND rf.status != 3
and osd.goods_id is not null
UNION ALL
SELECT
os.id,
os.department_id,
os.department_name,
os.region_code,
os.region_name,
os.long_store_no,
os.receivable_money,
os.change_money,
os.discount_money,
os.actual_receivable_money,
os.type,
os.sub_type,
os.medical_insurance_business_class,
os.medical_insurance_class,
os.type_source,
os.status,
os.order_time,
os.finish_time,
os.accounting_day,
os.classes_setting_id,
os.classes_name,
os.cashier_id,
os.cashier_name,
os.cashier_no,
os.member_id,
os.member_phone,
os.member_name,
os.member_card_no,
os.member_card_type_id,
os.member_card_type,
os.member_points,
os.is_ultimate_member,
os.detail_num,
os.give_points,
os.hub_send_flag,
os.is_ephedrine,
os.is_high_risk,
os.create_user_id,
os.update_user_id,
os.create_time,
os.update_time,
os.is_deleted,
os.tenant_id,
os.id as order_sales_id,
0 as is_refund,
0 as refund_money,
null as refundId,
opr.id orderPayResultId,
osim.order_source orderSyncSource
FROM
order_sales os
LEFT JOIN order_pay_result opr on os.id = opr.order_sales_id
LEFT JOIN order_sales_inca_mapping osim on os.id = osim.id
JOIN (
select
order_sales_id,
max(goods_id) as goods_id
from
order_sales_detail
where
goods_no = '8218424'
group by
order_sales_id
) osd on osd.order_sales_id = os.id
WHERE
os.is_deleted = 0
AND os.create_time between '2024-06-12 14:41:02.781' and '2024-12-12 14:41:02.781'
AND os.department_id = 270661884600029197
and os.status != 17
and osd.goods_id is not null
) as bothOfAll
ORDER BY
finish_time desc, create_time desc
LIMIT 15





SQL: select a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-12-12'
and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 )
order by a.creation_date desc ##limit 1000
查看格式化信息
====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------
|0 |SORT | |412517 |3499545 |
|1 |└─HASH RIGHT SEMI JOIN | |412517 |3177289 |
|2 | ├─SUBPLAN SCAN |VIEW1 |385557 |30228 |
|3 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |385557 |29207 |
|4 | └─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|594777 |2810897 |
====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f7d4c83cea0)], [a.item(0x7f7d4c83f330)], [a.lot(0x7f7d4c83f610)], [a.caseid(0x7f7d4c83f8f0)], [a.qty(0x7f7d4c83fbd0)], [a.is_xf(0x7f7d4c83feb0)],
[a.attribute1(0x7f7d4c840190)], [a.attribute2(0x7f7d4c840470)], [a.attribute3(0x7f7d4c840750)], [a.attribute4(0x7f7d4c840a30)], [a.creation_date(0x7f7d4c823f60)],
[a.created_by(0x7f7d4c840d10)], [a.last_update_date(0x7f7d4c840ff0)], [a.last_updated_by(0x7f7d4c8412d0)], [a.pos_getdate(0x7f7d4c8415b0)], [a.mq_senddate(0x7f7d4c841890)],
[a.id(0x7f7d4c843a80)], [a.pushtype(0x7f7d4c822d00)]), filter(nil), rowset=256
sort_keys([a.creation_date(0x7f7d4c823f60), DESC])
1 - output([a.creation_date(0x7f7d4c823f60)], [a.doc_no(0x7f7d4c83cea0)], [a.item(0x7f7d4c83f330)], [a.lot(0x7f7d4c83f610)], [a.caseid(0x7f7d4c83f8f0)],
[a.qty(0x7f7d4c83fbd0)], [a.is_xf(0x7f7d4c83feb0)], [a.attribute1(0x7f7d4c840190)], [a.attribute2(0x7f7d4c840470)], [a.attribute3(0x7f7d4c840750)], [a.attribute4(0x7f7d4c840a30)],
[a.created_by(0x7f7d4c840d10)], [a.last_update_date(0x7f7d4c840ff0)], [a.last_updated_by(0x7f7d4c8412d0)], [a.pos_getdate(0x7f7d4c8415b0)], [a.mq_senddate(0x7f7d4c841890)],
[a.id(0x7f7d4c843a80)], [a.pushtype(0x7f7d4c822d00)]), filter(nil), rowset=256
equal_conds([a.doc_no(0x7f7d4c83cea0) = VIEW1.do.tsf_no(0x7f7d4c854330)(0x7f7d4c854610)]), other_conds(nil)
2 - output([VIEW1.do.tsf_no(0x7f7d4c854330)]), filter(nil), rowset=256
access([VIEW1.do.tsf_no(0x7f7d4c854330)])
3 - output([do.tsf_no(0x7f7d4c83d420)]), filter(nil), rowset=256
access([do.tsf_no(0x7f7d4c83d420)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f7d4c83e680)], [do.is_deleted(0x7f7d4c83bbc0)], [do.tsf_no(0x7f7d4c83d420)], [do.id(0x7f7d4c8520e0)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f7d4c83bbc0) = 0(0x7f7d4c83b470)], [do.mq_push_flag(0x7f7d4c83e680) = 1(0x7f7d4c83df30)])
4 - output([a.id(0x7f7d4c843a80)], [a.pushtype(0x7f7d4c822d00)], [a.creation_date(0x7f7d4c823f60)], [a.doc_no(0x7f7d4c83cea0)], [a.item(0x7f7d4c83f330)],
[a.lot(0x7f7d4c83f610)], [a.caseid(0x7f7d4c83f8f0)], [a.qty(0x7f7d4c83fbd0)], [a.is_xf(0x7f7d4c83feb0)], [a.attribute1(0x7f7d4c840190)], [a.attribute2(0x7f7d4c840470)],
[a.attribute3(0x7f7d4c840750)], [a.attribute4(0x7f7d4c840a30)], [a.created_by(0x7f7d4c840d10)], [a.last_update_date(0x7f7d4c840ff0)], [a.last_updated_by(0x7f7d4c8412d0)],
[a.pos_getdate(0x7f7d4c8415b0)], [a.mq_senddate(0x7f7d4c841890)]), filter(nil), rowset=256
access([a.id(0x7f7d4c843a80)], [a.pushtype(0x7f7d4c822d00)], [a.creation_date(0x7f7d4c823f60)], [a.doc_no(0x7f7d4c83cea0)], [a.item(0x7f7d4c83f330)],
[a.lot(0x7f7d4c83f610)], [a.caseid(0x7f7d4c83f8f0)], [a.qty(0x7f7d4c83fbd0)], [a.is_xf(0x7f7d4c83feb0)], [a.attribute1(0x7f7d4c840190)], [a.attribute2(0x7f7d4c840470)],
[a.attribute3(0x7f7d4c840750)], [a.attribute4(0x7f7d4c840a30)], [a.created_by(0x7f7d4c840d10)], [a.last_update_date(0x7f7d4c840ff0)], [a.last_updated_by(0x7f7d4c8412d0)],
[a.pos_getdate(0x7f7d4c8415b0)], [a.mq_senddate(0x7f7d4c841890)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f7d4c822d00)], [a.creation_date(0x7f7d4c823f60)], [a.id(0x7f7d4c843a80)]), range(NULL,2024-12-12,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f7d4c822d00) IS NULL(0x7f7d4c8225b0)], [cast(a.creation_date(0x7f7d4c823f60), DATETIME(-1, -1))(0x7f7d4c8244d0) >= INTERNAL_FUNCTION('2024-12-12',
114, 17)(0x7f7d4c852bc0)(0x7f7d4c823810)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("VIEW1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_HASH(@"SEL$6FCAE2AA" "sl_pos_purchase_distribute"."a"@"SEL$1")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
do:
table_rows:1303897
physical_range_rows:385557
logical_range_rows:385557
index_back_rows:0
output_rows:385557
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1734012481713973
dynamic sampling level:0
a:
table_rows:246496537
physical_range_rows:724676
logical_range_rows:594777
index_back_rows:594777
output_rows:594777
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1733842594434104
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property










SQL: select /*+ LEADING(@"SEL$6FCAE2AA" ("VIEW1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1")) use_hash("a"@"SEL$1") */ a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-12-12' and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 ) order by a.creation_date desc limit 1000
查看格式化信息
====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------
|0 |TOP-N SORT | |1000 |3280213 |
|1 |└─HASH RIGHT SEMI JOIN | |413196 |3243639 |
|2 | ├─SUBPLAN SCAN |VIEW1 |385557 |30228 |
|3 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |385557 |29207 |
|4 | └─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|609400 |2873359 |
====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f645343e430)], [a.item(0x7f64534408c0)], [a.lot(0x7f6453440ba0)], [a.caseid(0x7f6453440e80)], [a.qty(0x7f6453441160)], [a.is_xf(0x7f6453441440)],
[a.attribute1(0x7f6453441720)], [a.attribute2(0x7f6453441a00)], [a.attribute3(0x7f6453441ce0)], [a.attribute4(0x7f6453441fc0)], [a.creation_date(0x7f64534254f0)],
[a.created_by(0x7f64534422a0)], [a.last_update_date(0x7f6453442580)], [a.last_updated_by(0x7f6453442860)], [a.pos_getdate(0x7f6453442b40)], [a.mq_senddate(0x7f6453442e20)],
[a.id(0x7f6453445010)], [a.pushtype(0x7f6453424290)]), filter(nil), rowset=256
sort_keys([a.creation_date(0x7f64534254f0), DESC]), topn(1000)
1 - output([a.creation_date(0x7f64534254f0)], [a.doc_no(0x7f645343e430)], [a.item(0x7f64534408c0)], [a.lot(0x7f6453440ba0)], [a.caseid(0x7f6453440e80)],
[a.qty(0x7f6453441160)], [a.is_xf(0x7f6453441440)], [a.attribute1(0x7f6453441720)], [a.attribute2(0x7f6453441a00)], [a.attribute3(0x7f6453441ce0)], [a.attribute4(0x7f6453441fc0)],
[a.created_by(0x7f64534422a0)], [a.last_update_date(0x7f6453442580)], [a.last_updated_by(0x7f6453442860)], [a.pos_getdate(0x7f6453442b40)], [a.mq_senddate(0x7f6453442e20)],
[a.id(0x7f6453445010)], [a.pushtype(0x7f6453424290)]), filter(nil), rowset=256
equal_conds([a.doc_no(0x7f645343e430) = VIEW1.do.tsf_no(0x7f6453455df0)(0x7f64534560d0)]), other_conds(nil)
2 - output([VIEW1.do.tsf_no(0x7f6453455df0)]), filter(nil), rowset=256
access([VIEW1.do.tsf_no(0x7f6453455df0)])
3 - output([do.tsf_no(0x7f645343e9b0)]), filter(nil), rowset=256
access([do.tsf_no(0x7f645343e9b0)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f645343fc10)], [do.is_deleted(0x7f645343d150)], [do.tsf_no(0x7f645343e9b0)], [do.id(0x7f6453453ba0)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f645343d150) = 0(0x7f645343ca00)], [do.mq_push_flag(0x7f645343fc10) = 1(0x7f645343f4c0)])
4 - output([a.id(0x7f6453445010)], [a.pushtype(0x7f6453424290)], [a.creation_date(0x7f64534254f0)], [a.doc_no(0x7f645343e430)], [a.item(0x7f64534408c0)],
[a.lot(0x7f6453440ba0)], [a.caseid(0x7f6453440e80)], [a.qty(0x7f6453441160)], [a.is_xf(0x7f6453441440)], [a.attribute1(0x7f6453441720)], [a.attribute2(0x7f6453441a00)],
[a.attribute3(0x7f6453441ce0)], [a.attribute4(0x7f6453441fc0)], [a.created_by(0x7f64534422a0)], [a.last_update_date(0x7f6453442580)], [a.last_updated_by(0x7f6453442860)],
[a.pos_getdate(0x7f6453442b40)], [a.mq_senddate(0x7f6453442e20)]), filter(nil), rowset=256
access([a.id(0x7f6453445010)], [a.pushtype(0x7f6453424290)], [a.creation_date(0x7f64534254f0)], [a.doc_no(0x7f645343e430)], [a.item(0x7f64534408c0)],
[a.lot(0x7f6453440ba0)], [a.caseid(0x7f6453440e80)], [a.qty(0x7f6453441160)], [a.is_xf(0x7f6453441440)], [a.attribute1(0x7f6453441720)], [a.attribute2(0x7f6453441a00)],
[a.attribute3(0x7f6453441ce0)], [a.attribute4(0x7f6453441fc0)], [a.created_by(0x7f64534422a0)], [a.last_update_date(0x7f6453442580)], [a.last_updated_by(0x7f6453442860)],
[a.pos_getdate(0x7f6453442b40)], [a.mq_senddate(0x7f6453442e20)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f6453424290)], [a.creation_date(0x7f64534254f0)], [a.id(0x7f6453445010)]), range(NULL,2024-12-12,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f6453424290) IS NULL(0x7f6453423b40)], [cast(a.creation_date(0x7f64534254f0), DATETIME(-1, -1))(0x7f6453425a60) >= INTERNAL_FUNCTION('2024-12-12',
114, 17)(0x7f6453454680)(0x7f6453424da0)])
Used Hint:
-------------------------------------
/*+

LEADING(@"SEL$6FCAE2AA" ("view1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_HASH("a"@"SEL$1")
*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("VIEW1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_HASH(@"SEL$6FCAE2AA" "sl_pos_purchase_distribute"."a"@"SEL$1")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
do:
table_rows:1303897
physical_range_rows:385557
logical_range_rows:385557
index_back_rows:0
output_rows:385557
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1734012481713973
dynamic sampling level:0
a:
table_rows:246496537
physical_range_rows:747621
logical_range_rows:609400
index_back_rows:609400
output_rows:609400
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1733842594434104
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property









select /*+ LEADING("VIEW1"@"SEL$1" "a"@"SEL$1") use_hash("a"@"SEL$1") */
a.*
from
distribute_box_info a
where
a.pushtype is null
and a.creation_date >= '2024-12-12'
and exists (
select
1
from
distribute_order do
where
do.is_deleted = 0
and a.doc_no = do.tsf_no
and do.mq_push_flag = 1
)
order by
a.creation_date desc
limit 1000




SQL: select /*+ LEADING("VIEW1"@"SEL$1" "a"@"SEL$1") */ a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-12-12' and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 ) order by a.creation_date desc limit 1000
查看格式化信息
========================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
----------------------------------------------------------------------------------------
|0 |EXCHANGE IN REMOTE | |1000 |3315986 |
|1 |└─EXCHANGE OUT REMOTE | |1000 |3313289 |
|2 | └─TOP-N SORT | |1000 |3307220 |
|3 | └─HASH RIGHT SEMI JOIN | |413476 |3270622 |
|4 | ├─SUBPLAN SCAN |VIEW1 |385557 |30228 |
|5 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |385557 |29207 |
|6 | └─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|615424 |2898740 |
========================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)], [a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)],
[a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)], [a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.creation_date(0x7f0b35a24a60)],
[a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)], [a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)],
[a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)]), filter(nil)
1 - output([a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)], [a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)],
[a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)], [a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.creation_date(0x7f0b35a24a60)],
[a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)], [a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)],
[a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)]), filter(nil)
2 - output([a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)], [a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)],
[a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)], [a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.creation_date(0x7f0b35a24a60)],
[a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)], [a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)],
[a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)]), filter(nil), rowset=256
sort_keys([a.creation_date(0x7f0b35a24a60), DESC]), topn(1000)
3 - output([a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)], [a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)],
[a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)], [a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.creation_date(0x7f0b35a24a60)],
[a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)], [a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)],
[a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)]), filter(nil), rowset=256
equal_conds([a.doc_no(0x7f0b35a3d9a0) = VIEW1.do.tsf_no(0x7f0b35a551d0)(0x7f0b35a554b0)]), other_conds(nil)
4 - output([VIEW1.do.tsf_no(0x7f0b35a551d0)]), filter(nil), rowset=256
access([VIEW1.do.tsf_no(0x7f0b35a551d0)])
5 - output([do.tsf_no(0x7f0b35a3df20)]), filter(nil), rowset=256
access([do.tsf_no(0x7f0b35a3df20)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f0b35a3f180)], [do.is_deleted(0x7f0b35a3c6c0)], [do.tsf_no(0x7f0b35a3df20)], [do.id(0x7f0b35a52f80)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f0b35a3c6c0) = 0(0x7f0b35a3bf70)], [do.mq_push_flag(0x7f0b35a3f180) = 1(0x7f0b35a3ea30)])
6 - output([a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)], [a.creation_date(0x7f0b35a24a60)], [a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)],
[a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)], [a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)],
[a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)],
[a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)]), filter(nil), rowset=256
access([a.id(0x7f0b35a44580)], [a.pushtype(0x7f0b35a23800)], [a.creation_date(0x7f0b35a24a60)], [a.doc_no(0x7f0b35a3d9a0)], [a.item(0x7f0b35a3fe30)],
[a.lot(0x7f0b35a40110)], [a.caseid(0x7f0b35a403f0)], [a.qty(0x7f0b35a406d0)], [a.is_xf(0x7f0b35a409b0)], [a.attribute1(0x7f0b35a40c90)], [a.attribute2(0x7f0b35a40f70)],
[a.attribute3(0x7f0b35a41250)], [a.attribute4(0x7f0b35a41530)], [a.created_by(0x7f0b35a41810)], [a.last_update_date(0x7f0b35a41af0)], [a.last_updated_by(0x7f0b35a41dd0)],
[a.pos_getdate(0x7f0b35a420b0)], [a.mq_senddate(0x7f0b35a42390)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f0b35a23800)], [a.creation_date(0x7f0b35a24a60)], [a.id(0x7f0b35a44580)]), range(NULL,2024-12-12,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f0b35a23800) IS NULL(0x7f0b35a230b0)], [cast(a.creation_date(0x7f0b35a24a60), DATETIME(-1, -1))(0x7f0b35a24fd0) >= INTERNAL_FUNCTION('2024-12-12',
114, 17)(0x7f0b35a53a60)(0x7f0b35a24310)])
Used Hint:
-------------------------------------
/*+

LEADING(("view1"@"SEL$1" "a"@"SEL$1"))
*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("VIEW1"@"SEL$1" "sl_pos_purchase_distribute"."a"@"SEL$1"))
USE_HASH(@"SEL$6FCAE2AA" "sl_pos_purchase_distribute"."a"@"SEL$1")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
do:
table_rows:1303897
physical_range_rows:385557
logical_range_rows:385557
index_back_rows:0
output_rows:385557
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1734012481713973
dynamic sampling level:0
a:
table_rows:246496537
physical_range_rows:752788
logical_range_rows:615424
index_back_rows:615424
output_rows:615424
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1733842594434104
dynamic sampling level:0
Plan Type:
REMOTE
Note:
Degree of Parallelisim is 1 because of table property





SQL: select /*+ LEADING(VIEW1@SEL$1 a@SEL$1) */ a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-12-12' and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 ) order by a.creation_date desc limit 1000
查看格式化信息
====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------
|0 |TOP-N SORT | |1000 |3334959 |
|1 |└─HASH RIGHT SEMI JOIN | |413776 |3298335 |
|2 | ├─SUBPLAN SCAN |VIEW1 |385557 |30228 |
|3 | │ └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |385557 |29207 |
|4 | └─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|621892 |2924733 |
====================================================================================



33637A4EA7AD287412D64D3D57E4578B

CREATE OUTLINE fixplan_20241213 on "33637A4EA7AD287412D64D3D57E4578B" using hint /*+ LEADING(VIEW1@SEL$1 a@SEL$1) */ ;


限流hint:
/*+max_concurrent(0) */






SQL: select a.* from distribute_box_info a where a.pushtype is null and a.creation_date >= '2024-11-29'
and exists ( select 1 from distribute_order do where do.is_deleted = 0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1 )
order by a.creation_date desc limit 1000
查看格式化信息
=====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------
|0 |LIMIT | |1000 |172989 |
|1 |└─NESTED-LOOP SEMI JOIN | |1000 |172986 |
|2 | ├─TABLE RANGE SCAN |a(pushtype_creation_date,Reverse)|6499 |37375 |
|3 | └─SUBPLAN SCAN |VIEW1 |1 |21 |
|4 | └─TABLE RANGE SCAN |do(idx_mq_delete_tsfno) |1 |21 |
=====================================================================================
Outputs & filters:
-------------------------------------
0 - output([a.doc_no(0x7f611443d080)], [a.item(0x7f611443f510)], [a.lot(0x7f611443f7f0)], [a.caseid(0x7f611443fad0)], [a.qty(0x7f611443fdb0)], [a.is_xf(0x7f6114440090)],
[a.attribute1(0x7f6114440370)], [a.attribute2(0x7f6114440650)], [a.attribute3(0x7f6114440930)], [a.attribute4(0x7f6114440c10)], [a.creation_date(0x7f6114424140)],
[a.created_by(0x7f6114440ef0)], [a.last_update_date(0x7f61144411d0)], [a.last_updated_by(0x7f61144414b0)], [a.pos_getdate(0x7f6114441790)], [a.mq_senddate(0x7f6114441a70)],
[a.id(0x7f6114443c60)], [a.pushtype(0x7f6114422ee0)]), filter(nil), rowset=256
limit(1000), offset(nil)
1 - output([a.doc_no(0x7f611443d080)], [a.item(0x7f611443f510)], [a.lot(0x7f611443f7f0)], [a.caseid(0x7f611443fad0)], [a.qty(0x7f611443fdb0)], [a.is_xf(0x7f6114440090)],
[a.attribute1(0x7f6114440370)], [a.attribute2(0x7f6114440650)], [a.attribute3(0x7f6114440930)], [a.attribute4(0x7f6114440c10)], [a.creation_date(0x7f6114424140)],
[a.created_by(0x7f6114440ef0)], [a.last_update_date(0x7f61144411d0)], [a.last_updated_by(0x7f61144414b0)], [a.pos_getdate(0x7f6114441790)], [a.mq_senddate(0x7f6114441a70)],
[a.id(0x7f6114443c60)], [a.pushtype(0x7f6114422ee0)]), filter(nil), rowset=256
conds(nil), nl_params_([a.doc_no(0x7f611443d080)(:0)]), use_batch=false
2 - output([a.id(0x7f6114443c60)], [a.pushtype(0x7f6114422ee0)], [a.creation_date(0x7f6114424140)], [a.doc_no(0x7f611443d080)], [a.item(0x7f611443f510)],
[a.lot(0x7f611443f7f0)], [a.caseid(0x7f611443fad0)], [a.qty(0x7f611443fdb0)], [a.is_xf(0x7f6114440090)], [a.attribute1(0x7f6114440370)], [a.attribute2(0x7f6114440650)],
[a.attribute3(0x7f6114440930)], [a.attribute4(0x7f6114440c10)], [a.created_by(0x7f6114440ef0)], [a.last_update_date(0x7f61144411d0)], [a.last_updated_by(0x7f61144414b0)],
[a.pos_getdate(0x7f6114441790)], [a.mq_senddate(0x7f6114441a70)]), filter(nil), rowset=256
access([a.id(0x7f6114443c60)], [a.pushtype(0x7f6114422ee0)], [a.creation_date(0x7f6114424140)], [a.doc_no(0x7f611443d080)], [a.item(0x7f611443f510)],
[a.lot(0x7f611443f7f0)], [a.caseid(0x7f611443fad0)], [a.qty(0x7f611443fdb0)], [a.is_xf(0x7f6114440090)], [a.attribute1(0x7f6114440370)], [a.attribute2(0x7f6114440650)],
[a.attribute3(0x7f6114440930)], [a.attribute4(0x7f6114440c10)], [a.created_by(0x7f6114440ef0)], [a.last_update_date(0x7f61144411d0)], [a.last_updated_by(0x7f61144414b0)],
[a.pos_getdate(0x7f6114441790)], [a.mq_senddate(0x7f6114441a70)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([a.pushtype(0x7f6114422ee0)], [a.creation_date(0x7f6114424140)], [a.id(0x7f6114443c60)]), range(NULL,2024-11-29,MIN ; NULL,MAX,MAX),
range_cond([a.pushtype(0x7f6114422ee0) IS NULL(0x7f6114422790)], [cast(a.creation_date(0x7f6114424140), DATETIME(-1, -1))(0x7f61144246b0) >= INTERNAL_FUNCTION('2024-11-29',
114, 17)(0x7f6114453030)(0x7f61144239f0)])
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([do.tsf_no(0x7f611443d600)]), filter(nil), rowset=256
access([do.tsf_no(0x7f611443d600)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([do.mq_push_flag(0x7f611443e860)], [do.is_deleted(0x7f611443bda0)], [do.tsf_no(0x7f611443d600)], [do.id(0x7f6114452550)]), range(1,0,MIN,
MIN ; 1,0,MAX,MAX),
range_cond([do.is_deleted(0x7f611443bda0) = 0(0x7f611443b650)], [do.mq_push_flag(0x7f611443e860) = 1(0x7f611443e110)], [:0 = do.tsf_no(0x7f611443d600)(0x7f7868804920)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$6FCAE2AA
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$6FCAE2AA" ("sl_pos_purchase_distribute"."a"@"SEL$1" "VIEW1"@"SEL$1"))
USE_NL(@"SEL$6FCAE2AA" "VIEW1"@"SEL$1")
INDEX(@"SEL$6FCAE2AA" "a"@"SEL$1" "pushtype_creation_date")
INDEX(@"SEL$2" "do"@"SEL$2" "idx_mq_delete_tsfno")
UNNEST(@"SEL$2")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
a:
table_rows:233399819
physical_range_rows:3645139
logical_range_rows:3578933
index_back_rows:3578933
output_rows:3578933
table_dop:1
dop_method:Table DOP
avaiable_index_name:[box_info_uindex, pushtype_creation_date, distribute_box_info]
stats version:1731940646429191
dynamic sampling level:0
do:
table_rows:1237087
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, idx_mq_delete_tsfno, distribute_order]
pruned_index_name:[goods_distribute_order_create_time_IDX, index_department_id, idx_distribute_order_no, id_aoi, distribute_order]
stats version:1733609221372087
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property






select (case when cmbl.no_modify_id_card = 1 then 'Y' else 'N' end) whethertomodifyidcard,
(case when cmbl.no_phone_num = 1 then 'Y' else 'N' end) phonecheck,
cm.siebel_member_id memberid,
'' fst_name,
'' last_name,
cm.tier,
cm.point,
(cmsl.superior_promotion_amount + cmsl.superior_coupon_amount + cmsl.superior_discount_amount +
cmsl.superior_extra_coupon_amount) current_discounted,
(cmbl.history_superior_coupon_amount + cmbl.history_superior_discount_amount +
cmbl.history_superior_extra_coupon_amount + cmbl.history_superior_promotion_amount) prior_discounted,
(select cmrr.siebel_member_id
from crm_member_recommended_records cmrr
where cmrr.type = 1
and cmrr.referee_siebel_member_id = cm.siebel_member_id
limit 1) referrer,
'0' maturitypoint,
(case when cmbl.pay_flag = 1 then 'Y' else 'N' end) pay,
DATE_FORMAT(cms.end_time, '%Y-%m-%d') extremeenddt,
(case when cmbl.superior_last_flag = 1 then 'Y' else 'N' end) extremelastflag,
cmcl.consume_shop_code consumestore,
cm.name,
cm.phone,
cm.status STATUS_CD,
cm.store_no storeno,
pot.store_name storeName,
-- cm.store_no dslbelongstore,
date_format(cmbl.wechat_first_binding_time, '%Y-%m-%d %H:%i:%s') wechatbindingtime,
cm.sex,
DATE_FORMAT(cm.birthday, '%Y-%m-%d') birth,
cm.id_card idno,
(case when cmbl.wechat_binding_flag = 1 then 'Y' else 'N' end) wechatbindflag,
cmta.third_name CON_MANAGER_NAME,
cm.telephone ATTRIB_38,
cmc.card_num cardnum,
pot1.store_name consumeStoreName,
cmc.card_type cardtype,
cmc.status cardstatus,
cmc.begin_time begintime,
cmc.end_time endtime,
cmc.card_type_id cardtypeid,
cmc.store_no shopcode,
'N' SUPPRESS_EMAIL_FLG,
(case when cmbl.no_sms = 1 then 'Y' else 'N' end) SUPPRESS_SMS_FLG,
(case when cmbl.no_call = 1 then 'Y' else 'N' end) SUPPRESS_CALL_FLG,
'N' SUPPRESS_FAX_FLG,
'Y' active,
TIMESTAMPDIFF(YEAR, cm.birthday, CURDATE()) age,
cm.channel REG_CHANNEL_CD,
cmc.channel MEM_CARD_SOURCE,
'' posDisplay,/*POS展示文本,原字典表查询*/
cmcl.chronic chronicDisease
from crm_member cm
left join crm_member_card cmc on cm.siebel_member_id = cmc.siebel_member_id
left join crm_member_base_label cmbl on cm.siebel_member_id = cmbl.siebel_member_id
left join crm_member_characteristic_label cmcl on cm.siebel_member_id = cmcl.siebel_member_id
left join crm_member_superior_log cmsl on cm.siebel_member_id = cmsl.siebel_member_id and cmsl.status = 1
left join crm_member_superior cms on cm.siebel_member_id = cms.siebel_member_id and cms.status = 1
left join crm_member_third_account cmta
on cm.siebel_member_id = cmta.siebel_member_id and cmta.account_type = 1
left join pub_org_tree pot on cm.store_no = pot.store_no
left join pub_org_tree pot1 on cmcl.consume_shop_code = pot1.store_no
WHERE cm.phone = '15060583506'



Query Plan
"============================================================================================================================"
"|ID|OPERATOR |NAME |EST.ROWS |EST.TIME(us) |"
"----------------------------------------------------------------------------------------------------------------------------"
"|0 |HASH RIGHT OUTER JOIN | |209165840285868|12515613769717|"
"|1 |├─TABLE FULL SCAN |cmsl |23141478 |3236472 |"
"|2 |└─HASH OUTER JOIN | |9129868 |2758259 |"
"|3 | ├─NESTED-LOOP OUTER JOIN | |2 |212 |"
"|4 | │ ├─NESTED-LOOP OUTER JOIN | |2 |172 |"
"|5 | │ │ ├─NESTED-LOOP OUTER JOIN | |2 |137 |"
"|6 | │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |104 |"
"|7 | │ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |73 |"
"|8 | │ │ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |43 |"
"|9 | │ │ │ │ │ │ ├─HASH RIGHT OUTER JOIN | |1 |14 |"
"|10| │ │ │ │ │ │ │ ├─SUBPLAN SCAN |VIEW1 |1 |5 |"
"|11| │ │ │ │ │ │ │ │ └─HASH GROUP BY | |1 |5 |"
"|12| │ │ │ │ │ │ │ │ └─TABLE FULL SCAN |cmrr |1 |4 |"
"|13| │ │ │ │ │ │ │ └─TABLE RANGE SCAN |cm(idx_crm_member_3) |1 |9 |"
"|14| │ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|pot(idx_store_no) |2 |29 |"
"|15| │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |"
"|16| │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot1(idx_store_no) |2 |29 |"
"|17| │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmbl(idx_crm_member_base_label_1) |2 |32 |"
"|18| │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |"
"|19| │ └─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |"
"|20| └─TABLE FULL SCAN |cms |6232138 |571922 |"
"============================================================================================================================"
"Outputs & filters:"
"-------------------------------------"
" 0 - output([CASE WHEN cmbl.no_modify_id_card = 1 THEN 'Y' ELSE 'N' END], [CASE WHEN cmbl.no_phone_num = 1 THEN 'Y' ELSE 'N' END], [cm.siebel_member_id],"
" [''], [''], [cm.tier], [cm.point], [cmsl.superior_promotion_amount + cmsl.superior_coupon_amount + cmsl.superior_discount_amount + cmsl.superior_extra_coupon_amount],"
" [cmbl.history_superior_coupon_amount + cmbl.history_superior_discount_amount + cmbl.history_superior_extra_coupon_amount + cmbl.history_superior_promotion_amount],"
" [VIEW1.siebel_member_id], ['0'], [CASE WHEN cmbl.pay_flag = 1 THEN 'Y' ELSE 'N' END], [DATE_FORMAT(cms.end_time, '%Y-%m-%d')], [CASE WHEN cmbl.superior_last_flag "
" = 1 THEN 'Y' ELSE 'N' END], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name], [date_format(cmbl.wechat_first_binding_time,"
" '%Y-%m-%d %H:%i:%s')], [cm.sex], [DATE_FORMAT(cm.birthday, '%Y-%m-%d')], [cm.id_card], [CASE WHEN cmbl.wechat_binding_flag = 1 THEN 'Y' ELSE 'N' END], "
" [cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id],"
" [cmc.store_no], ['N'], [CASE WHEN cmbl.no_sms = 1 THEN 'Y' ELSE 'N' END], [CASE WHEN cmbl.no_call = 1 THEN 'Y' ELSE 'N' END], ['N'], ['Y'], [timestampdiff(8,"
" cm.birthday, cast(cur_date(), DATETIME(-1, -1)))], [cm.channel], [cmc.channel], [''], [cmcl.chronic]), filter(nil), rowset=256"
" equal_conds([cm.siebel_member_id = cmsl.siebel_member_id]), other_conds(nil)"
" 1 - output([cmsl.siebel_member_id], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter([cmsl.status "
" = 1]), rowset=256"
" access([cmsl.siebel_member_id], [cmsl.status], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), partitions(p"
" 0)"
" is_index_back=false, is_global_index=false, filter_before_indexback[false], "
" range_key([cmsl.id]), range(MIN ; MAX)always true"
" 2 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time],"
" [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cm.birthday], [cm.channel], [cmc.channel], [cmcl.chronic], [cmbl.no_modify_id_card], [cmbl.no_phone_num],"
" [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount],"
" [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=256"
" equal_conds([cm.siebel_member_id = cms.siebel_member_id]), other_conds(nil)"
" 3 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time],"
" [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cm.birthday], [cm.channel], [cmc.channel], [cmcl.chronic], [cmbl.no_modify_id_card], [cmbl.no_phone_num],"
" [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount],"
" [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=256"
" conds(nil), nl_params_([cm.siebel_member_id(:0)]), use_batch=false"
" 4 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmbl.no_modify_id_card],"
" [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount],"
" [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=256"
" conds(nil), nl_params_([cm.siebel_member_id(:5)]), use_batch=false"
" 5 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmbl.no_modify_id_card], [cmbl.no_phone_num],"
" [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount],"
" [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=256"
" conds(nil), nl_params_([cm.siebel_member_id(:1)]), use_batch=false"
" 6 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic]), filter(nil), rowset=256"
" conds(nil), nl_params_([cmcl.consume_shop_code(:8)]), use_batch=false"
" 7 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],"
" [pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmcl.chronic]), filter(nil), rowset=256"
" conds(nil), nl_params_([cm.siebel_member_id(:2)]), use_batch=false"
" 8 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name],"
" [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel]), filter(nil), rowset=256"
" conds(nil), nl_params_([cm.store_no(:6)]), use_batch=false"
" 9 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card],"
" [cm.telephone], [cm.birthday], [cm.channel]), filter(nil), rowset=256"
" equal_conds([VIEW1.cmrr.referee_siebel_member_id = cm.siebel_member_id]), other_conds(nil)"
" 10 - output([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id]), filter(nil), rowset=256"
" access([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id])"
" 11 - output([T_FUN_MIN(cmrr.siebel_member_id)], [cmrr.referee_siebel_member_id]), filter(nil), rowset=256"
" group([cmrr.referee_siebel_member_id]), agg_func([T_FUN_MIN(cmrr.siebel_member_id)])"
" 12 - output([cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), filter([cmrr.type = 1]), rowset=256"
" access([cmrr.type], [cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), partitions(p0)"
" is_index_back=false, is_global_index=false, filter_before_indexback[false], "
" range_key([cmrr.id]), range(MIN ; MAX)always true"
" 13 - output([cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card], [cm.telephone],"
" [cm.channel]), filter(nil), rowset=256"
" access([cm.id], [cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card],"
" [cm.telephone], [cm.channel]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([cm.phone], [cm.shadow_pk_0]), range(15060583506,MIN ; 15060583506,MAX), "
" range_cond([cm.phone = '15060583506'])"
" 14 - output([pot.store_name]), filter(nil), rowset=256"
" access([pot.id], [pot.store_name]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([pot.store_no], [pot.id]), range(MIN ; MAX), "
" range_cond([:6 = pot.store_no])"
" 15 - output([cmcl.consume_shop_code], [cmcl.chronic]), filter(nil), rowset=256"
" access([cmcl.id], [cmcl.consume_shop_code], [cmcl.chronic]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([cmcl.siebel_member_id], [cmcl.shadow_pk_0]), range(MIN ; MAX), "
" range_cond([:2 = cmcl.siebel_member_id])"
" 16 - output([pot1.store_name]), filter(nil), rowset=256"
" access([pot1.id], [pot1.store_name]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([pot1.store_no], [pot1.id]), range(MIN ; MAX), "
" range_cond([:8 = pot1.store_no])"
" 17 - output([cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],"
" [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],"
" [cmbl.no_call]), filter(nil), rowset=256"
" access([cmbl.id], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],"
" [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],"
" [cmbl.no_call]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([cmbl.siebel_member_id], [cmbl.id]), range(MIN ; MAX), "
" range_cond([:1 = cmbl.siebel_member_id])"
" 18 - output([cmta.third_name]), filter([cmta.account_type = 1]), rowset=256"
" access([cmta.id], [cmta.account_type], [cmta.third_name]), partitions(p0)"
" is_index_back=true, is_global_index=false, filter_before_indexback[false], "
" range_key([cmta.siebel_member_id], [cmta.id]), range(MIN ; MAX), "
" range_cond([:5 = cmta.siebel_member_id])"
" 19 - output([cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), filter(nil), rowset=256"
" access([cmc.id], [cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), partitions(p0)"
" is_index_back=true, is_global_index=false, "
" range_key([cmc.siebel_member_id], [cmc.id]), range(MIN ; MAX), "
" range_cond([:0 = cmc.siebel_member_id])"
" 20 - output([cms.siebel_member_id], [cms.end_time]), filter([cms.status = 1]), rowset=256"
" access([cms.siebel_member_id], [cms.status], [cms.end_time]), partitions(p0)"
" is_index_back=false, is_global_index=false, filter_before_indexback[false], "
" range_key([cms.id]), range(MIN ; MAX)always true"



算子
名称
预估行
代价
输出 & 过滤
PHY_NESTED_LOOP_JOIN
NULL
273002085347 7932909188555
NULL
PHY_NESTED_LOOP_JOIN
NULL
224322410920 643033921599
NULL
PHY_NESTED_LOOP_JOIN
NULL
27966889 855955543
NULL
PHY_NESTED_LOOP_JOIN
NULL
24111588 62314963
NULL
PHY_NESTED_LOOP_JOIN
NULL
2 136
NULL
PHY_NESTED_LOOP_JOIN
NULL
2 103
NULL
PHY_NESTED_LOOP_JOIN
NULL
2 72
NULL
PHY_NESTED_LOOP_JOIN
NULL
2 42
NULL
PHY_HASH_JOIN
NULL
1 13
NULL
PHY_SUBPLAN_SCAN
NULL
1 4
NULL
PHY_HASH_GROUP_BY
NULL
1 4
NULL
PHY_TABLE_SCAN
cmrr
1 3
table_rows:1, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:0, avaiable_index_name[idx_crm_member_recommended_records_1,idx_crm_member_recommended_records_2,crm_member_recommended_records], pruned_index_name[idx_crm_member_recommended_records_1,idx_crm_member_recommended_records_2], estimation info[table_id:500129, (table_type:10, version:-1--1--1, logical_rc:1, physical_rc:1)]
PHY_TABLE_SCAN
cm(idx_crm_member_3)
1 8
table_rows:111366606, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_crm_member_1,idx_crm_member_2,idx_crm_member_3,idx_id_card,idx_crm_member_4,idx_crm_member_5,crm_member], pruned_index_name[idx_crm_member_1,idx_crm_member_2,idx_id_card,idx_crm_member_4,idx_crm_member_5,crm_member], estimation info[table_id:500207, (table_type:10, version:-1--1--1, logical_rc:1, physical_rc:1), (table_type:11, version:-1--1--1, logical_rc:0, physical_rc:0), (table_type:0, version:-1--1--1, logical_rc:0, physical_rc:0)]
PHY_TABLE_SCAN
pot(idx_store_no)
2 28
table_rows:19211, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_store_no,pub_org_tree], pruned_index_name[pub_org_tree], estimation info[table_id:501552, (table_type:10, version:-1--1--1, logical_rc:19211, physical_rc:19211)]
PHY_TABLE_SCAN
cmcl(idx_crm_member_characteristic_label_2)
1 28
table_rows:111407854, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_crm_member_characteristic_label_2,idx_crm_member_characteristic_label_1,idx_crm_member_characteristic_label_3,crm_member_characteristic_label], pruned_index_name[idx_crm_member_characteristic_label_1,idx_crm_member_characteristic_label_3,crm_member_characteristic_label], estimation info[table_id:500197, (table_type:10, version:-1--1--1, logical_rc:111407854, physical_rc:111407854), (table_type:12, version:-1--1--1, logical_rc:175942, physical_rc:175942)]
PHY_TABLE_SCAN
pot1(idx_store_no)
2 28
table_rows:19211, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_store_no,pub_org_tree], pruned_index_name[pub_org_tree], estimation info[table_id:501552, (table_type:10, version:-1--1--1, logical_rc:19211, physical_rc:19211)]
PHY_TABLE_SCAN
cmbl(idx_crm_member_base_label_1)
2 31
table_rows:111505960, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_crm_member_base_label_1,idx_crm_member_base_label_2,idx_crm_member_base_label_3,idx_crm_member_base_label_4,crm_member_base_label], pruned_index_name[idx_crm_member_base_label_2,idx_crm_member_base_label_3,idx_crm_member_base_label_4,crm_member_base_label], estimation info[table_id:500252, (table_type:10, version:-1--1--1, logical_rc:111588895, physical_rc:111588895), (table_type:11, version:-1--1--1, logical_rc:34979, physical_rc:750218), (table_type:0, version:-1--1--1, logical_rc:14, physical_rc:186), (table_type:0, version:-1--1--1, logical_rc:0, physical_rc:1)]
PHY_TABLE_SCAN
cms(idx_crm_member_superior_2)
22938370 58318963
table_rows:1, physical_range_rows:22938370, logical_range_rows:22938370, index_back_rows:22938370, output_rows:22938370, avaiable_index_name[idx_crm_member_superior_1,idx_crm_member_superior_2,idx_crm_member_superior_3,idx_crm_member_superior_4,idx_crm_member_superior_5,idx_crm_member_superior_6,crm_member_superior], pruned_index_name[idx_crm_member_superior_1,idx_crm_member_superior_3,idx_crm_member_superior_4,idx_crm_member_superior_5,idx_crm_member_superior_6,crm_member_superior], estimation info[table_id:501836, (table_type:10, version:-1--1--1, logical_rc:14440464, physical_rc:14440464), (table_type:11, version:-1--1--1, logical_rc:7784457, physical_rc:7784457), (table_type:12, version:-1--1--1, logical_rc:713447, physical_rc:713447), (table_type:0, version:-1--1--1, logical_rc:2, physical_rc:2)]
PHY_TABLE_SCAN
cmta(idx_crm_member_third_account_2)
2 32
table_rows:26789075, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_crm_member_third_account_1,idx_crm_member_third_account_2,idx_crm_member_third_account_3,idx_crm_member_third_account_4,crm_member_third_account_third_account_IDX,crm_member_third_account], pruned_index_name[idx_crm_member_third_account_1,idx_crm_member_third_account_3,idx_crm_member_third_account_4,crm_member_third_account_third_account_IDX,crm_member_third_account], estimation info[table_id:500250, (table_type:10, version:-1--1--1, logical_rc:36450947, physical_rc:36450947), (table_type:11, version:-1--1--1, logical_rc:35068, physical_rc:717403), (table_type:0, version:-1--1--1, logical_rc:-444, physical_rc:421818), (table_type:0, version:-1--1--1, logical_rc:2, physical_rc:1250)]
PHY_TABLE_SCAN
cmsl(idx_crm_member_superior_1)
8102 22759
table_rows:1, physical_range_rows:8102, logical_range_rows:8102, index_back_rows:8102, output_rows:8102, avaiable_index_name[idx_crm_member_superior_1,idx_crm_member_superior_2,idx_crm_member_superior_3,idx_crm_member_superior_4,crm_member_superior_log], pruned_index_name[idx_crm_member_superior_2,idx_crm_member_superior_3,idx_crm_member_superior_4,crm_member_superior_log], estimation info[table_id:501842, (table_type:0, version:-1--1--1, logical_rc:8102, physical_rc:8102)]
PHY_TABLE_SCAN
cmc(idx_crm_member_card_3)
2 31
table_rows:133042122, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:1, avaiable_index_name[idx_crm_member_card_1,idx_crm_member_card_2,idx_idx_batch_num_5,idx_crm_member_card_3,idx_crm_member_card_4,idx_crm_member_card_6,crm_member_card], pruned_index_name[idx_crm_member_card_1,idx_crm_member_card_2,idx_idx_batch_num_5,idx_crm_member_card_4,idx_crm_member_card_6,crm_member_card], estimation info[table_id:500239, (table_type:10, version:-1--1--1, logical_rc:132995173, physical_rc:132995173), (table_type:11, version:-1--1--1, logical_rc:17435, physical_rc:68584), (table_type:0, version:-1--1--1, logical_rc:17, physical_rc:424)]
Server 执行计划
















CALL dbms_stats.gather_table_stats('DSL_MEMBER_CRM','crm_member_superior')






======================================================================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP OUTER JOIN | |5 |50411 |7 |101945 |0 |0 |
|1 |├─NESTED-LOOP OUTER JOIN | |5 |50280 |2 |101945 |0 |0 |
|2 |│ ├─NESTED-LOOP OUTER JOIN | |4 |50165 |2 |101945 |0 |0 |
|3 |│ │ ├─NESTED-LOOP OUTER JOIN | |4 |50063 |2 |101945 |0 |0 |
|4 |│ │ │ ├─NESTED-LOOP OUTER JOIN | |4 |49963 |2 |101945 |0 |0 |
|5 |│ │ │ │ ├─NESTED-LOOP OUTER JOIN | |4 |49871 |2 |101945 |0 |0 |
|6 |│ │ │ │ │ ├─NESTED-LOOP OUTER JOIN | |4 |49781 |2 |101945 |0 |0 |
|7 |│ │ │ │ │ │ ├─HASH RIGHT OUTER JOIN | |3 |49692 |2 |101945 |0 |0 |
|8 |│ │ │ │ │ │ │ ├─SUBPLAN SCAN |VIEW1 |1 |5 |0 |101945 |0 |0 |
|9 |│ │ │ │ │ │ │ │ └─HASH GROUP BY | |1 |5 |0 |101945 |0 |0 |
|10|│ │ │ │ │ │ │ │ └─TABLE FULL SCAN |cmrr |1 |4 |0 |101945 |0 |0 |
|11|│ │ │ │ │ │ │ └─NESTED-LOOP OUTER JOIN | |3 |49687 |2 |101945 |0 |0 |
|12|│ │ │ │ │ │ │ ├─TABLE RANGE SCAN |cm(idx_crm_member_3) |3 |29 |2 |101945 |0 |0 |
|13|│ │ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|cmsl(idx_crm_member_superior_1) |1 |16552 |1 |85051 |0 |0 |
|14|│ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot(idx_store_no) |2 |29 |1 |86107 |0 |0 |
|15|│ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |2 |101945 |0 |0 |
|16|│ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot1(idx_store_no) |2 |29 |2 |101945 |0 |0 |
|17|│ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmbl(idx_crm_member_base_label_1) |2 |32 |2 |101945 |0 |0 |
|18|│ │ └─DISTRIBUTED TABLE RANGE SCAN |cms(idx_crm_member_superior_2) |1 |32 |1 |95611 |0 |0 |
|19|│ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |1 |96666 |0 |0 |
|20|└─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |7 |101945 |0 |0 |
======================================================================================================================================================================

Outputs & filters:
-------------------------------------
0 - output([CASE WHEN cmbl.no_modify_id_card = :0 THEN :1 ELSE :2 END], [CASE WHEN cmbl.no_phone_num = :3 THEN :4 ELSE :5 END], [cm.siebel_member_id],
[:6], [:7], [cm.tier], [cm.point], [cmsl.superior_promotion_amount + cmsl.superior_coupon_amount + cmsl.superior_discount_amount + cmsl.superior_extra_coupon_amount],
[cmbl.history_superior_coupon_amount + cmbl.history_superior_discount_amount + cmbl.history_superior_extra_coupon_amount + cmbl.history_superior_promotion_amount],
[VIEW1.siebel_member_id], [:10], [CASE WHEN cmbl.pay_flag = :11 THEN :12 ELSE :13 END], [DATE_FORMAT(cms.end_time, '%Y-%m-%d')], [CASE WHEN cmbl.superior_last_flag
= :14 THEN :15 ELSE :16 END], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name], [date_format(cmbl.wechat_first_binding_time,
'%Y-%m-%d %H:%i:%s')], [cm.sex], [DATE_FORMAT(cm.birthday, '%Y-%m-%d')], [cm.id_card], [CASE WHEN cmbl.wechat_binding_flag = :17 THEN :18 ELSE :19 END],
[cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id],
[cmc.store_no], [:20], [CASE WHEN cmbl.no_sms = :21 THEN :22 ELSE :23 END], [CASE WHEN cmbl.no_call = :24 THEN :25 ELSE :26 END], [:27], [:28], [timestampdiff(8,
cm.birthday, cast(cur_date(), DATETIME(-1, -1)))], [cm.channel], [cmc.channel], [:29], [cmcl.chronic]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:36)]), use_batch=false
1 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:41)]), use_batch=false
2 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:40)]), use_batch=false
3 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:37)]), use_batch=false
4 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cmcl.consume_shop_code(:44)]), use_batch=false
5 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount],
[cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:38)]), use_batch=false
6 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name],
[cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount],
[cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.store_no(:42)]), use_batch=false
7 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card],
[cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
equal_conds([VIEW1.cmrr.referee_siebel_member_id = cm.siebel_member_id]), other_conds(nil)
8 - output([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id]), filter(nil), rowset=16
access([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id])
9 - output([T_FUN_MIN(cmrr.siebel_member_id)], [cmrr.referee_siebel_member_id]), filter(nil), rowset=16
group([cmrr.referee_siebel_member_id]), agg_func([T_FUN_MIN(cmrr.siebel_member_id)])
10 - output([cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), filter([cmrr.type = :8]), rowset=16
access([cmrr.type], [cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([cmrr.id]), range(MIN ; MAX)always true
11 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday],
[cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:39)]), use_batch=false
12 - output([cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card], [cm.telephone],
[cm.channel]), filter(nil), rowset=16
access([cm.id], [cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card],
[cm.telephone], [cm.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cm.phone], [cm.shadow_pk_0]), range(15060583506,MIN ; 15060583506,MAX), (99999,MIN ; 99999,MAX), (9999999,MIN ; 9999999,MAX),
range_cond([cm.phone IN (:33, :34, :35)])
13 - output([cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter([cmsl.status
= :30]), rowset=16
access([cmsl.id], [cmsl.status], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmsl.siebel_member_id], [cmsl.id]), range(MIN ; MAX),
range_cond([:39 = cmsl.siebel_member_id])
14 - output([pot.store_name]), filter(nil), rowset=16
access([pot.id], [pot.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot.store_no], [pot.id]), range(MIN ; MAX),
range_cond([:42 = pot.store_no])
15 - output([cmcl.consume_shop_code], [cmcl.chronic]), filter(nil), rowset=16
access([cmcl.id], [cmcl.consume_shop_code], [cmcl.chronic]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmcl.siebel_member_id], [cmcl.shadow_pk_0]), range(MIN ; MAX),
range_cond([:38 = cmcl.siebel_member_id])
16 - output([pot1.store_name]), filter(nil), rowset=16
access([pot1.id], [pot1.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot1.store_no], [pot1.id]), range(MIN ; MAX),
range_cond([:44 = pot1.store_no])
17 - output([cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), filter(nil), rowset=16
access([cmbl.id], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmbl.siebel_member_id], [cmbl.id]), range(MIN ; MAX),
range_cond([:37 = cmbl.siebel_member_id])
18 - output([cms.end_time]), filter([cms.status = :31]), rowset=16
access([cms.id], [cms.status], [cms.end_time]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cms.siebel_member_id], [cms.id]), range(MIN ; MAX),
range_cond([:40 = cms.siebel_member_id])
19 - output([cmta.third_name]), filter([cmta.account_type = :32]), rowset=16
access([cmta.id], [cmta.account_type], [cmta.third_name]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmta.siebel_member_id], [cmta.id]), range(MIN ; MAX),
range_cond([:41 = cmta.siebel_member_id])
20 - output([cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), filter(nil), rowset=16
access([cmc.id], [cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmc.siebel_member_id], [cmc.id]), range(MIN ; MAX),
range_cond([:36 = cmc.siebel_member_id])











select * from oceanbase.GV$OB_SQL_AUDIT where query_sql like '%9999999%'

SELECT DBMS_XPLAN.DISPLAY_CURSOR(5918, 'typical', '10.106.31.177', 2882, 1002) from dual;




======================================================================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP OUTER JOIN | |2 |10405 |0 |4173 |0 |0 |
|1 |├─NESTED-LOOP OUTER JOIN | |2 |10361 |0 |4173 |0 |0 |
|2 |│ ├─NESTED-LOOP OUTER JOIN | |2 |10323 |0 |4173 |0 |0 |
|3 |│ │ ├─NESTED-LOOP OUTER JOIN | |2 |10289 |0 |4173 |0 |0 |
|4 |│ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10256 |0 |4173 |0 |0 |
|5 |│ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10221 |0 |4173 |0 |0 |
|6 |│ │ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10191 |0 |4173 |0 |0 |
|7 |│ │ │ │ │ │ ├─HASH RIGHT OUTER JOIN | |1 |10157 |0 |4173 |0 |0 |
|8 |│ │ │ │ │ │ │ ├─SUBPLAN SCAN |VIEW1 |1 |5 |0 |4173 |0 |0 |
|9 |│ │ │ │ │ │ │ │ └─HASH GROUP BY | |1 |5 |0 |4173 |0 |0 |
|10|│ │ │ │ │ │ │ │ └─TABLE FULL SCAN |cmrr |1 |4 |0 |4173 |0 |0 |
|11|│ │ │ │ │ │ │ └─NESTED-LOOP OUTER JOIN | |1 |10152 |0 |4173 |0 |0 |
|12|│ │ │ │ │ │ │ ├─TABLE RANGE SCAN |cm(idx_crm_member_3) |1 |9 |0 |4173 |0 |0 |
|13|│ │ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|cmsl(idx_crm_member_superior_1) |1 |10143 |0 |4173 |0 |0 |
|14|│ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot(idx_store_no) |3 |34 |0 |4173 |0 |0 |
|15|│ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |0 |4173 |0 |0 |
|16|│ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot1(idx_store_no) |3 |34 |0 |4173 |0 |0 |
|17|│ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmbl(idx_crm_member_base_label_1) |2 |32 |0 |4173 |0 |0 |
|18|│ │ └─DISTRIBUTED TABLE RANGE SCAN |cms(idx_crm_member_superior_2) |1 |32 |0 |4173 |0 |0 |
|19|│ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |0 |4173 |0 |0 |
|20|└─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |0 |4173 |0 |0 |
======================================================================================================================================================================

Outputs & filters:
-------------------------------------
0 - output([CASE WHEN cmbl.no_modify_id_card = :0 THEN :1 ELSE :2 END], [CASE WHEN cmbl.no_phone_num = :3 THEN :4 ELSE :5 END], [cm.siebel_member_id],
[:6], [:7], [cm.tier], [cm.point], [cmsl.superior_promotion_amount + cmsl.superior_coupon_amount + cmsl.superior_discount_amount + cmsl.superior_extra_coupon_amount],
[cmbl.history_superior_coupon_amount + cmbl.history_superior_discount_amount + cmbl.history_superior_extra_coupon_amount + cmbl.history_superior_promotion_amount],
[VIEW1.siebel_member_id], [:10], [CASE WHEN cmbl.pay_flag = :11 THEN :12 ELSE :13 END], [DATE_FORMAT(cms.end_time, '%Y-%m-%d')], [CASE WHEN cmbl.superior_last_flag
= :14 THEN :15 ELSE :16 END], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name], [date_format(cmbl.wechat_first_binding_time,
'%Y-%m-%d %H:%i:%s')], [cm.sex], [DATE_FORMAT(cm.birthday, '%Y-%m-%d')], [cm.id_card], [CASE WHEN cmbl.wechat_binding_flag = :17 THEN :18 ELSE :19 END],
[cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id],
[cmc.store_no], [:20], [CASE WHEN cmbl.no_sms = :21 THEN :22 ELSE :23 END], [CASE WHEN cmbl.no_call = :24 THEN :25 ELSE :26 END], [:27], [:28], [timestampdiff(8,
cm.birthday, cast(cur_date(), DATETIME(-1, -1)))], [cm.channel], [cmc.channel], [:29], [cmcl.chronic]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:34)]), use_batch=false
1 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:39)]), use_batch=false
2 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:38)]), use_batch=false
3 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:35)]), use_batch=false
4 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cmcl.consume_shop_code(:42)]), use_batch=false
5 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount],
[cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:36)]), use_batch=false
6 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name],
[cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount],
[cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.store_no(:40)]), use_batch=false
7 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card],
[cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
equal_conds([VIEW1.cmrr.referee_siebel_member_id = cm.siebel_member_id]), other_conds(nil)
8 - output([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id]), filter(nil), rowset=16
access([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id])
9 - output([T_FUN_MIN(cmrr.siebel_member_id)], [cmrr.referee_siebel_member_id]), filter(nil), rowset=16
group([cmrr.referee_siebel_member_id]), agg_func([T_FUN_MIN(cmrr.siebel_member_id)])
10 - output([cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), filter([cmrr.type = :8]), rowset=16
access([cmrr.type], [cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([cmrr.id]), range(MIN ; MAX)always true
11 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday],
[cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:37)]), use_batch=false
12 - output([cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card], [cm.telephone],
[cm.channel]), filter(nil), rowset=16
access([cm.id], [cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card],
[cm.telephone], [cm.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cm.phone], [cm.shadow_pk_0]), range(15060583507,MIN ; 15060583507,MAX),
range_cond([cm.phone = :33])
13 - output([cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter([cmsl.status
= :30]), rowset=16
access([cmsl.id], [cmsl.status], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmsl.siebel_member_id], [cmsl.id]), range(MIN ; MAX),
range_cond([:37 = cmsl.siebel_member_id])
14 - output([pot.store_name]), filter(nil), rowset=16
access([pot.id], [pot.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot.store_no], [pot.id]), range(MIN ; MAX),
range_cond([:40 = pot.store_no])
15 - output([cmcl.consume_shop_code], [cmcl.chronic]), filter(nil), rowset=16
access([cmcl.id], [cmcl.consume_shop_code], [cmcl.chronic]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmcl.siebel_member_id], [cmcl.shadow_pk_0]), range(MIN ; MAX),
range_cond([:36 = cmcl.siebel_member_id])
16 - output([pot1.store_name]), filter(nil), rowset=16
access([pot1.id], [pot1.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot1.store_no], [pot1.id]), range(MIN ; MAX),
range_cond([:42 = pot1.store_no])
17 - output([cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), filter(nil), rowset=16
access([cmbl.id], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmbl.siebel_member_id], [cmbl.id]), range(MIN ; MAX),
range_cond([:35 = cmbl.siebel_member_id])
18 - output([cms.end_time]), filter([cms.status = :31]), rowset=16
access([cms.id], [cms.status], [cms.end_time]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cms.siebel_member_id], [cms.id]), range(MIN ; MAX),
range_cond([:38 = cms.siebel_member_id])
19 - output([cmta.third_name]), filter([cmta.account_type = :32]), rowset=16
access([cmta.id], [cmta.account_type], [cmta.third_name]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmta.siebel_member_id], [cmta.id]), range(MIN ; MAX),
range_cond([:39 = cmta.siebel_member_id])
20 - output([cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), filter(nil), rowset=16
access([cmc.id], [cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmc.siebel_member_id], [cmc.id]), range(MIN ; MAX),
range_cond([:34 = cmc.siebel_member_id])






======================================================================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP OUTER JOIN | |2 |10405 |0 |4173 |0 |0 |
|1 |├─NESTED-LOOP OUTER JOIN | |2 |10361 |0 |4173 |0 |0 |
|2 |│ ├─NESTED-LOOP OUTER JOIN | |2 |10323 |0 |4173 |0 |0 |
|3 |│ │ ├─NESTED-LOOP OUTER JOIN | |2 |10289 |0 |4173 |0 |0 |
|4 |│ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10256 |0 |4173 |0 |0 |
|5 |│ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10221 |0 |4173 |0 |0 |
|6 |│ │ │ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |10191 |0 |4173 |0 |0 |
|7 |│ │ │ │ │ │ ├─HASH RIGHT OUTER JOIN | |1 |10157 |0 |4173 |0 |0 |
|8 |│ │ │ │ │ │ │ ├─SUBPLAN SCAN |VIEW1 |1 |5 |0 |4173 |0 |0 |
|9 |│ │ │ │ │ │ │ │ └─HASH GROUP BY | |1 |5 |0 |4173 |0 |0 |
|10|│ │ │ │ │ │ │ │ └─TABLE FULL SCAN |cmrr |1 |4 |0 |4173 |0 |0 |
|11|│ │ │ │ │ │ │ └─NESTED-LOOP OUTER JOIN | |1 |10152 |0 |4173 |0 |0 |
|12|│ │ │ │ │ │ │ ├─TABLE RANGE SCAN |cm(idx_crm_member_3) |1 |9 |0 |4173 |0 |0 |
|13|│ │ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|cmsl(idx_crm_member_superior_1) |1 |10143 |0 |4173 |0 |0 |
|14|│ │ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot(idx_store_no) |3 |34 |0 |4173 |0 |0 |
|15|│ │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |0 |4173 |0 |0 |
|16|│ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN |pot1(idx_store_no) |3 |34 |0 |4173 |0 |0 |
|17|│ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmbl(idx_crm_member_base_label_1) |2 |32 |0 |4173 |0 |0 |
|18|│ │ └─DISTRIBUTED TABLE RANGE SCAN |cms(idx_crm_member_superior_2) |1 |32 |0 |4173 |0 |0 |
|19|│ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |0 |4173 |0 |0 |
|20|└─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |0 |4173 |0 |0 |
======================================================================================================================================================================

Outputs & filters:
-------------------------------------
0 - output([CASE WHEN cmbl.no_modify_id_card = :0 THEN :1 ELSE :2 END], [CASE WHEN cmbl.no_phone_num = :3 THEN :4 ELSE :5 END], [cm.siebel_member_id],
[:6], [:7], [cm.tier], [cm.point], [cmsl.superior_promotion_amount + cmsl.superior_coupon_amount + cmsl.superior_discount_amount + cmsl.superior_extra_coupon_amount],
[cmbl.history_superior_coupon_amount + cmbl.history_superior_discount_amount + cmbl.history_superior_extra_coupon_amount + cmbl.history_superior_promotion_amount],
[VIEW1.siebel_member_id], [:10], [CASE WHEN cmbl.pay_flag = :11 THEN :12 ELSE :13 END], [DATE_FORMAT(cms.end_time, '%Y-%m-%d')], [CASE WHEN cmbl.superior_last_flag
= :14 THEN :15 ELSE :16 END], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name], [date_format(cmbl.wechat_first_binding_time,
'%Y-%m-%d %H:%i:%s')], [cm.sex], [DATE_FORMAT(cm.birthday, '%Y-%m-%d')], [cm.id_card], [CASE WHEN cmbl.wechat_binding_flag = :17 THEN :18 ELSE :19 END],
[cmta.third_name], [cm.telephone], [cmc.card_num], [pot1.store_name], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id],
[cmc.store_no], [:20], [CASE WHEN cmbl.no_sms = :21 THEN :22 ELSE :23 END], [CASE WHEN cmbl.no_call = :24 THEN :25 ELSE :26 END], [:27], [:28], [timestampdiff(8,
cm.birthday, cast(cur_date(), DATETIME(-1, -1)))], [cm.channel], [cmc.channel], [:29], [cmcl.chronic]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:34)]), use_batch=false
1 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cmta.third_name], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:39)]), use_batch=false
2 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call], [cms.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:38)]), use_batch=false
3 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount],
[cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount], [cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag],
[cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms], [cmbl.no_call]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:35)]), use_batch=false
4 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [pot1.store_name], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount],
[cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cmcl.consume_shop_code(:42)]), use_batch=false
5 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cmcl.consume_shop_code], [cm.name], [cm.phone], [cm.status], [cm.store_no],
[pot.store_name], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmcl.chronic], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount],
[cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:36)]), use_batch=false
6 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [pot.store_name],
[cm.sex], [cm.id_card], [cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount],
[cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.store_no(:40)]), use_batch=false
7 - output([cm.siebel_member_id], [cm.tier], [cm.point], [VIEW1.siebel_member_id], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card],
[cm.telephone], [cm.birthday], [cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
equal_conds([VIEW1.cmrr.referee_siebel_member_id = cm.siebel_member_id]), other_conds(nil)
8 - output([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id]), filter(nil), rowset=16
access([VIEW1.siebel_member_id], [VIEW1.cmrr.referee_siebel_member_id])
9 - output([T_FUN_MIN(cmrr.siebel_member_id)], [cmrr.referee_siebel_member_id]), filter(nil), rowset=16
group([cmrr.referee_siebel_member_id]), agg_func([T_FUN_MIN(cmrr.siebel_member_id)])
10 - output([cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), filter([cmrr.type = :8]), rowset=16
access([cmrr.type], [cmrr.referee_siebel_member_id], [cmrr.siebel_member_id]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([cmrr.id]), range(MIN ; MAX)always true
11 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cm.name], [cm.phone], [cm.status], [cm.store_no], [cm.sex], [cm.id_card], [cm.telephone], [cm.birthday],
[cm.channel], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:37)]), use_batch=false
12 - output([cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card], [cm.telephone],
[cm.channel]), filter(nil), rowset=16
access([cm.id], [cm.siebel_member_id], [cm.store_no], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.sex], [cm.birthday], [cm.id_card],
[cm.telephone], [cm.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cm.phone], [cm.shadow_pk_0]), range(15060583507,MIN ; 15060583507,MAX),
range_cond([cm.phone = :33])
13 - output([cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), filter([cmsl.status
= :30]), rowset=16
access([cmsl.id], [cmsl.status], [cmsl.superior_promotion_amount], [cmsl.superior_coupon_amount], [cmsl.superior_discount_amount], [cmsl.superior_extra_coupon_amount]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmsl.siebel_member_id], [cmsl.id]), range(MIN ; MAX),
range_cond([:37 = cmsl.siebel_member_id])
14 - output([pot.store_name]), filter(nil), rowset=16
access([pot.id], [pot.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot.store_no], [pot.id]), range(MIN ; MAX),
range_cond([:40 = pot.store_no])
15 - output([cmcl.consume_shop_code], [cmcl.chronic]), filter(nil), rowset=16
access([cmcl.id], [cmcl.consume_shop_code], [cmcl.chronic]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmcl.siebel_member_id], [cmcl.shadow_pk_0]), range(MIN ; MAX),
range_cond([:36 = cmcl.siebel_member_id])
16 - output([pot1.store_name]), filter(nil), rowset=16
access([pot1.id], [pot1.store_name]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([pot1.store_no], [pot1.id]), range(MIN ; MAX),
range_cond([:42 = pot1.store_no])
17 - output([cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), filter(nil), rowset=16
access([cmbl.id], [cmbl.no_modify_id_card], [cmbl.no_phone_num], [cmbl.history_superior_coupon_amount], [cmbl.history_superior_discount_amount], [cmbl.history_superior_extra_coupon_amount],
[cmbl.history_superior_promotion_amount], [cmbl.pay_flag], [cmbl.superior_last_flag], [cmbl.wechat_first_binding_time], [cmbl.wechat_binding_flag], [cmbl.no_sms],
[cmbl.no_call]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmbl.siebel_member_id], [cmbl.id]), range(MIN ; MAX),
range_cond([:35 = cmbl.siebel_member_id])
18 - output([cms.end_time]), filter([cms.status = :31]), rowset=16
access([cms.id], [cms.status], [cms.end_time]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cms.siebel_member_id], [cms.id]), range(MIN ; MAX),
range_cond([:38 = cms.siebel_member_id])
19 - output([cmta.third_name]), filter([cmta.account_type = :32]), rowset=16
access([cmta.id], [cmta.account_type], [cmta.third_name]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmta.siebel_member_id], [cmta.id]), range(MIN ; MAX),
range_cond([:39 = cmta.siebel_member_id])
20 - output([cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), filter(nil), rowset=16
access([cmc.id], [cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no], [cmc.channel]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmc.siebel_member_id], [cmc.id]), range(MIN ; MAX),
range_cond([:34 = cmc.siebel_member_id])






SELECT DBMS_XPLAN.DISPLAY_CURSOR(plan_id, 'typical', svr_ip, svr_port, tenant_id) from oceanbase.GV$OB_SQL_AUDIT where trace_id='YB420A6A0849-000613DC18BF7A57-0-0';


==============================================================================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)|
--------------------------------------------------------------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP OUTER JOIN | |2 |89952978 |1 |6310 |0 |0 |
|1 |├─NESTED-LOOP OUTER JOIN | |2 |89952938 |1 |6310 |0 |0 |
|2 |│ ├─NESTED-LOOP OUTER JOIN | |2 |110 |1 |6310 |0 |0 |
|3 |│ │ ├─NESTED-LOOP OUTER JOIN | |2 |75 |1 |6310 |0 |0 |
|4 |│ │ │ ├─NESTED-LOOP OUTER JOIN | |2 |45 |1 |6310 |0 |0 |
|5 |│ │ │ │ ├─MERGE RIGHT OUTER JOIN | |1 |13 |1 |6310 |0 |0 |
|6 |│ │ │ │ │ ├─TABLE FULL SCAN |cmmp |1 |4 |0 |6310 |0 |0 |
|7 |│ │ │ │ │ └─TABLE RANGE SCAN |cm(idx_crm_member_3) |1 |9 |1 |6310 |0 |0 |
|8 |│ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|cmbl(idx_crm_member_base_label_1) |2 |32 |1 |6310 |0 |0 |
|9 |│ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |1 |6310 |0 |0 |
|10|│ │ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |1 |6310 |0 |0 |
|11|│ └─DISTRIBUTED TABLE RANGE SCAN |cmsl(idx_crm_member_superior_1) |1 |73130842 |0 |7367 |0 |0 |
|12|└─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |1 |6310 |0 |0 |
==============================================================================================================================================================

Outputs & filters:
-------------------------------------
0 - output([CASE WHEN cmbl.no_phone_num = :0 THEN :1 ELSE :2 END], [cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [CASE WHEN cmbl.pay_flag
= :3 THEN :4 ELSE :5 END], [cm.name], [cm.phone], [cm.status], [date_format(cm.create_time, '%Y-%m-%d %H:%i:%S')], [:6], [:7], [cmta.third_account], [CASE
WHEN cmbl.wechat_binding_flag = :8 THEN :9 ELSE :10 END], [cmbl.verify_amount_flag], [cmbl.verify_point_flag], [cmbl.verify_voucher_flag], [cmbl.verify_superior_flag],
[cmbl.jz_tier], [cmc.card_num], [cmc.card_type], [:11], [cmc.status], [:12], [date_format(cmc.begin_time, '%Y-%m-%d %H:%i:%S')], [date_format(cmc.end_time,
'%Y-%m-%d %H:%i:%S')], [CONCAT(date_format(CASE WHEN cmc.card_type = :13 THEN cmsl.end_time ELSE cmc.end_time END, '%Y-%m-%d'), :14)], [cmc.card_type_id],
[cmc.store_no], [:15], [:16], [CASE WHEN cast(cmcl.chronic, DECIMAL(-1, -1)) = cast(:17, DECIMAL(1, 0)) THEN :18 ELSE :19 END]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:27)]), use_batch=false
1 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [cm.name], [cm.phone], [cm.status], [cmta.third_account], [cmbl.verify_amount_flag],
[cmbl.verify_point_flag], [cmbl.verify_voucher_flag], [cmbl.verify_superior_flag], [cmbl.jz_tier], [cm.create_time], [cmbl.no_phone_num], [cmbl.pay_flag],
[cmbl.wechat_binding_flag], [cmcl.chronic], [cmsl.end_time]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:26)]), use_batch=false
2 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [cm.name], [cm.phone], [cm.status], [cmta.third_account], [cmbl.verify_amount_flag],
[cmbl.verify_point_flag], [cmbl.verify_voucher_flag], [cmbl.verify_superior_flag], [cmbl.jz_tier], [cm.create_time], [cmbl.no_phone_num], [cmbl.pay_flag],
[cmbl.wechat_binding_flag], [cmcl.chronic]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:25)]), use_batch=false
3 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [cm.name], [cm.phone], [cm.status], [cmbl.verify_amount_flag], [cmbl.verify_point_flag],
[cmbl.verify_voucher_flag], [cmbl.verify_superior_flag], [cmbl.jz_tier], [cm.create_time], [cmbl.no_phone_num], [cmbl.pay_flag], [cmbl.wechat_binding_flag],
[cmcl.chronic]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:24)]), use_batch=false
4 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [cm.name], [cm.phone], [cm.status], [cmbl.verify_amount_flag], [cmbl.verify_point_flag],
[cmbl.verify_voucher_flag], [cmbl.verify_superior_flag], [cmbl.jz_tier], [cm.create_time], [cmbl.no_phone_num], [cmbl.pay_flag], [cmbl.wechat_binding_flag]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(:23)]), use_batch=false
5 - output([cm.siebel_member_id], [cm.tier], [cm.point], [cmmp.points], [cm.name], [cm.phone], [cm.status], [cm.create_time]), filter(nil), rowset=16
equal_conds([cm.siebel_member_id = cmmp.siebel_member_id]), other_conds(nil)
merge_directions([ASC])
6 - output([cmmp.siebel_member_id], [cmmp.points]), filter(nil), rowset=16
access([cmmp.siebel_member_id], [cmmp.points]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([cmmp.siebel_member_id]), range(MIN ; MAX)always true
7 - output([cm.siebel_member_id], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.create_time]), filter(nil), rowset=16
access([cm.id], [cm.siebel_member_id], [cm.phone], [cm.tier], [cm.point], [cm.name], [cm.status], [cm.create_time]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cm.phone], [cm.shadow_pk_0]), range(13659712331,MIN ; 13659712331,MAX),
range_cond([cm.phone = :22])
8 - output([cmbl.no_phone_num], [cmbl.pay_flag], [cmbl.wechat_binding_flag], [cmbl.verify_amount_flag], [cmbl.verify_point_flag], [cmbl.verify_voucher_flag],
[cmbl.verify_superior_flag], [cmbl.jz_tier]), filter(nil), rowset=16
access([cmbl.id], [cmbl.no_phone_num], [cmbl.pay_flag], [cmbl.wechat_binding_flag], [cmbl.verify_amount_flag], [cmbl.verify_point_flag], [cmbl.verify_voucher_flag],
[cmbl.verify_superior_flag], [cmbl.jz_tier]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmbl.siebel_member_id], [cmbl.id]), range(MIN ; MAX),
range_cond([:23 = cmbl.siebel_member_id])
9 - output([cmcl.chronic]), filter(nil), rowset=16
access([cmcl.id], [cmcl.chronic]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmcl.siebel_member_id], [cmcl.shadow_pk_0]), range(MIN ; MAX),
range_cond([:24 = cmcl.siebel_member_id])
10 - output([cmta.third_account]), filter([cmta.account_type = :21]), rowset=16
access([cmta.id], [cmta.account_type], [cmta.third_account]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmta.siebel_member_id], [cmta.id]), range(MIN ; MAX),
range_cond([:25 = cmta.siebel_member_id])
11 - output([cmsl.end_time]), filter([cmsl.status = :20]), rowset=16
access([cmsl.id], [cmsl.status], [cmsl.end_time]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmsl.siebel_member_id], [cmsl.id]), range(MIN ; MAX),
range_cond([:26 = cmsl.siebel_member_id])
12 - output([cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no]), filter(nil), rowset=16
access([cmc.id], [cmc.card_num], [cmc.card_type], [cmc.status], [cmc.begin_time], [cmc.end_time], [cmc.card_type_id], [cmc.store_no]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmc.siebel_member_id], [cmc.id]), range(MIN ; MAX),
range_cond([:27 = cmc.siebel_member_id])




call dbms_stats.gather_table_stats('dsl_member_crm','crm_member_superior_log')





SQL: select (case when cmbl.no_phone_num = 1 then 'Y' else 'N' end) phonecheck, cm.siebel_member_id memberid, cm.tier, cm.point, cmmp.points maturitypoint, (case when cmbl.pay_flag = 1 then 'Y' else 'N' end) pay, cm.name, cm.phone, cm.status STATUS_CD, date_format(cm.create_time,'%Y-%m-%d %H:%i:%S') joining_time, '' user_id, '' val_score, cmta.third_account union_id, (case when cmbl.wechat_binding_flag = 1 then 'Y' else 'N' end) wechatbindflag, cmbl.verify_amount_flag, cmbl.verify_point_flag, cmbl.verify_voucher_flag, cmbl.verify_superior_flag, cmbl.jz_tier, cmc.card_num cardnum, cmc.card_type cardtype, '' mainflg, cmc.status cardstatus, 'Y' active, date_format(cmc.begin_time,'%Y-%m-%d %H:%i:%S') begintime, date_format(cmc.end_time,'%Y-%m-%d %H:%i:%S') endtime, CONCAT(date_format(if(cmc.card_type = '至尊会员卡', cmsl.end_time, cmc.end_time),'%Y-%m-%d'), ' 23:59:59') interests_end_time, cmc.card_type_id cardtypeid, cmc.store_no shopcode, '' cardsegmenttype, '' cardname, (case when cmcl.chronic = 1 then 'Y' else 'N' end) chronicDisease from crm_member cm left join crm_member_card cmc on cm.siebel_member_id = cmc.siebel_member_id left join crm_member_base_label cmbl on cm.siebel_member_id = cmbl.siebel_member_id left join crm_member_characteristic_label cmcl on cm.siebel_member_id = cmcl.siebel_member_id left join crm_member_superior_log cmsl on cm.siebel_member_id = cmsl.siebel_member_id and cmsl.status = 1 left join crm_member_third_account cmta on cm.siebel_member_id = cmta.siebel_member_id and cmta.account_type = 1 left join crm_member_maturity_point cmmp on cm.siebel_member_id = cmmp.siebel_member_id WHERE cm.phone in ('13659712332','999999','8888888')
查看格式化信息
=============================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------------------
|0 |NESTED-LOOP OUTER JOIN | |6 |601 |
|1 |├─NESTED-LOOP OUTER JOIN | |5 |461 |
|2 |│ ├─NESTED-LOOP OUTER JOIN | |4 |339 |
|3 |│ │ ├─NESTED-LOOP OUTER JOIN | |4 |221 |
|4 |│ │ │ ├─NESTED-LOOP OUTER JOIN | |4 |129 |
|5 |│ │ │ │ ├─HASH RIGHT OUTER JOIN | |3 |33 |
|6 |│ │ │ │ │ ├─TABLE FULL SCAN |cmmp |1 |4 |
|7 |│ │ │ │ │ └─TABLE RANGE SCAN |cm(idx_crm_member_3) |3 |28 |
|8 |│ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|cmbl(idx_crm_member_base_label_1) |2 |32 |
|9 |│ │ │ └─DISTRIBUTED TABLE RANGE SCAN |cmcl(idx_crm_member_characteristic_label_2)|1 |29 |
|10|│ │ └─DISTRIBUTED TABLE RANGE SCAN |cmsl(idx_crm_member_superior_1) |1 |37 |
|11|│ └─DISTRIBUTED TABLE RANGE SCAN |cmta(idx_crm_member_third_account_2) |2 |33 |
|12|└─DISTRIBUTED TABLE RANGE SCAN |cmc(idx_crm_member_card_3) |2 |32 |
=============================================================================================================
Outputs & filters:
-------------------------------------
0 - output([CASE WHEN cmbl.no_phone_num(0x7f589644b8f0) = 1(0x7f589644ac40) THEN 'Y' ELSE 'N' END(0x7f5896449ea0)], [cm.siebel_member_id(0x7f58964385c0)],
[cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [CASE WHEN cmbl.pay_flag(0x7f589644ec90) = 1(0x7f589644dfe0) THEN
'Y' ELSE 'N' END(0x7f589644d240)], [cm.name(0x7f589644f3d0)], [cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [date_format(cm.create_time(0x7f5896452d40),
'%Y-%m-%d %H:%i:%S')(0x7f5896451ef0)], [''], [''], [cmta.third_account(0x7f58964538e0)], [CASE WHEN cmbl.wechat_binding_flag(0x7f5896455620) = 1(0x7f5896454970)
THEN 'Y' ELSE 'N' END(0x7f5896453bd0)], [cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)],
[cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)], [cmc.card_num(0x7f5896465470)], [cmc.card_type(0x7f5896465a70)], [''], [cmc.status(0x7f5896466300)],
['Y'], [date_format(cmc.begin_time(0x7f58964676d0), '%Y-%m-%d %H:%i:%S')(0x7f5896466880)], [date_format(cmc.end_time(0x7f5896468890), '%Y-%m-%d %H:%i:%S')(0x7f5896467a40)],
[CONCAT(date_format(CASE WHEN cmc.card_type(0x7f5896465a70) = '至尊会员卡'(0x7f589646a820) THEN cmsl.end_time(0x7f589646bde0) ELSE cmc.end_time(0x7f5896468890)
END(0x7f5896469a80), '%Y-%m-%d')(0x7f5896469340), ' 23:59:59')(0x7f5896468c00)], [cmc.card_type_id(0x7f589646c630)], [cmc.store_no(0x7f589646cc30)], [''],
[''], [CASE WHEN cast(cmcl.chronic(0x7f589646ee90), DECIMAL(-1, -1))(0x7f5896470f50) = cast(1, DECIMAL(1, 0))(0x7f5896471aa0)(0x7f589646e1e0) THEN 'Y'
ELSE 'N' END(0x7f589646d440)]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(0x7f58964385c0)(:0)]), use_batch=false
1 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [cm.name(0x7f589644f3d0)],
[cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [cmta.third_account(0x7f58964538e0)], [cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)],
[cmbl.verify_voucher_flag(0x7f5896456960)], [cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)], [cm.create_time(0x7f5896452d40)],
[cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)], [cmbl.wechat_binding_flag(0x7f5896455620)], [cmcl.chronic(0x7f589646ee90)], [cmsl.end_time(0x7f589646bde0)]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(0x7f58964385c0)(:4)]), use_batch=false
2 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [cm.name(0x7f589644f3d0)],
[cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)],
[cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)], [cm.create_time(0x7f5896452d40)], [cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)],
[cmbl.wechat_binding_flag(0x7f5896455620)], [cmcl.chronic(0x7f589646ee90)], [cmsl.end_time(0x7f589646bde0)]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(0x7f58964385c0)(:3)]), use_batch=false
3 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [cm.name(0x7f589644f3d0)],
[cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)],
[cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)], [cm.create_time(0x7f5896452d40)], [cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)],
[cmbl.wechat_binding_flag(0x7f5896455620)], [cmcl.chronic(0x7f589646ee90)]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(0x7f58964385c0)(:2)]), use_batch=false
4 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [cm.name(0x7f589644f3d0)],
[cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)],
[cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)], [cm.create_time(0x7f5896452d40)], [cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)],
[cmbl.wechat_binding_flag(0x7f5896455620)]), filter(nil), rowset=16
conds(nil), nl_params_([cm.siebel_member_id(0x7f58964385c0)(:1)]), use_batch=false
5 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cmmp.points(0x7f589644cf50)], [cm.name(0x7f589644f3d0)],
[cm.phone(0x7f5896449760)], [cm.status(0x7f589644fcf0)], [cm.create_time(0x7f5896452d40)]), filter(nil), rowset=16
equal_conds([cm.siebel_member_id(0x7f58964385c0) = cmmp.siebel_member_id(0x7f58964478a0)(0x7f5896447140)]), other_conds(nil)
6 - output([cmmp.siebel_member_id(0x7f58964478a0)], [cmmp.points(0x7f589644cf50)]), filter(nil), rowset=16
access([cmmp.siebel_member_id(0x7f58964478a0)], [cmmp.points(0x7f589644cf50)]), partitions(p0)
is_index_back=false, is_global_index=false,
range_key([cmmp.siebel_member_id(0x7f58964478a0)]), range(MIN ; MAX)always true
7 - output([cm.siebel_member_id(0x7f58964385c0)], [cm.phone(0x7f5896449760)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)], [cm.name(0x7f589644f3d0)],
[cm.status(0x7f589644fcf0)], [cm.create_time(0x7f5896452d40)]), filter(nil), rowset=16
access([cm.id(0x7f58964733a0)], [cm.siebel_member_id(0x7f58964385c0)], [cm.phone(0x7f5896449760)], [cm.tier(0x7f589644c350)], [cm.point(0x7f589644c950)],
[cm.name(0x7f589644f3d0)], [cm.status(0x7f589644fcf0)], [cm.create_time(0x7f5896452d40)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cm.phone(0x7f5896449760)], [cm.shadow_pk_0(0x7f5896501180)]), range(13659712332,MIN ; 13659712332,MAX), (999999,MIN ; 999999,MAX), (8888888,
MIN ; 8888888,MAX),
range_cond([cm.phone(0x7f5896449760) IN ('13659712332', '999999', '8888888')(0x7f5896476f20)(0x7f5896447e30)])
8 - output([cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)], [cmbl.wechat_binding_flag(0x7f5896455620)], [cmbl.verify_amount_flag(0x7f5896455d60)],
[cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)], [cmbl.verify_superior_flag(0x7f5896464870)], [cmbl.jz_tier(0x7f5896464e70)]), filter(nil), rowset=16
access([cmbl.id(0x7f5896473960)], [cmbl.no_phone_num(0x7f589644b8f0)], [cmbl.pay_flag(0x7f589644ec90)], [cmbl.wechat_binding_flag(0x7f5896455620)],
[cmbl.verify_amount_flag(0x7f5896455d60)], [cmbl.verify_point_flag(0x7f5896456360)], [cmbl.verify_voucher_flag(0x7f5896456960)], [cmbl.verify_superior_flag(0x7f5896464870)],
[cmbl.jz_tier(0x7f5896464e70)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmbl.siebel_member_id(0x7f589643bdc0)], [cmbl.id(0x7f5896473960)]), range(MIN ; MAX),
range_cond([:1 = cmbl.siebel_member_id(0x7f589643bdc0)(0x7f5b92c181b0)])
9 - output([cmcl.chronic(0x7f589646ee90)]), filter(nil), rowset=16
access([cmcl.id(0x7f5896473c40)], [cmcl.chronic(0x7f589646ee90)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmcl.siebel_member_id(0x7f589643d3c0)], [cmcl.shadow_pk_0(0x7f5896569710)]), range(MIN ; MAX),
range_cond([:2 = cmcl.siebel_member_id(0x7f589643d3c0)(0x7f5b92c59990)])
10 - output([cmsl.end_time(0x7f589646bde0)]), filter([cmsl.status(0x7f5896441b30) = 1(0x7f58964413e0)]), rowset=16
access([cmsl.id(0x7f5896473f20)], [cmsl.status(0x7f5896441b30)], [cmsl.end_time(0x7f589646bde0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmsl.siebel_member_id(0x7f58964408d0)], [cmsl.id(0x7f5896473f20)]), range(MIN ; MAX),
range_cond([:3 = cmsl.siebel_member_id(0x7f58964408d0)(0x7f5b92c6ad20)])
11 - output([cmta.third_account(0x7f58964538e0)]), filter([cmta.account_type(0x7f58964462a0) = 1(0x7f5896445b50)]), rowset=16
access([cmta.id(0x7f5896474200)], [cmta.account_type(0x7f58964462a0)], [cmta.third_account(0x7f58964538e0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([cmta.siebel_member_id(0x7f5896445040)], [cmta.id(0x7f5896474200)]), range(MIN ; MAX),
range_cond([:4 = cmta.siebel_member_id(0x7f5896445040)(0x7f5b92c9cd60)])
12 - output([cmc.card_num(0x7f5896465470)], [cmc.card_type(0x7f5896465a70)], [cmc.status(0x7f5896466300)], [cmc.begin_time(0x7f58964676d0)], [cmc.end_time(0x7f5896468890)],
[cmc.card_type_id(0x7f589646c630)], [cmc.store_no(0x7f589646cc30)]), filter(nil), rowset=16
access([cmc.id(0x7f5896473680)], [cmc.card_num(0x7f5896465470)], [cmc.card_type(0x7f5896465a70)], [cmc.status(0x7f5896466300)], [cmc.begin_time(0x7f58964676d0)],
[cmc.end_time(0x7f5896468890)], [cmc.card_type_id(0x7f589646c630)], [cmc.store_no(0x7f589646cc30)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([cmc.siebel_member_id(0x7f58964388b0)], [cmc.id(0x7f5896473680)]), range(MIN ; MAX),
range_cond([:0 = cmc.siebel_member_id(0x7f58964388b0)(0x7f58965cced0)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
LEADING(@"SEL$1" (((((("dsl_member_crm"."cmmp"@"SEL$1" "dsl_member_crm"."cm"@"SEL$1") "dsl_member_crm"."cmbl"@"SEL$1") "dsl_member_crm"."cmcl"@"SEL$1") "dsl_member_crm"."cmsl"@"SEL$1") "dsl_member_crm"."cmta"@"SEL$1") "dsl_member_crm"."cmc"@"SEL$1"))
USE_NL(@"SEL$1" "dsl_member_crm"."cmc"@"SEL$1")
USE_NL(@"SEL$1" "dsl_member_crm"."cmta"@"SEL$1")
USE_NL(@"SEL$1" "dsl_member_crm"."cmsl"@"SEL$1")
USE_NL(@"SEL$1" "dsl_member_crm"."cmcl"@"SEL$1")
USE_NL(@"SEL$1" "dsl_member_crm"."cmbl"@"SEL$1")
USE_HASH(@"SEL$1" "dsl_member_crm"."cm"@"SEL$1")
FULL(@"SEL$1" "cmmp"@"SEL$1")
INDEX(@"SEL$1" "cm"@"SEL$1" "idx_crm_member_3")
INDEX(@"SEL$1" "cmbl"@"SEL$1" "idx_crm_member_base_label_1")
USE_DAS(@"SEL$1" "cmbl"@"SEL$1")
INDEX(@"SEL$1" "cmcl"@"SEL$1" "idx_crm_member_characteristic_label_2")
USE_DAS(@"SEL$1" "cmcl"@"SEL$1")
INDEX(@"SEL$1" "cmsl"@"SEL$1" "idx_crm_member_superior_1")
USE_DAS(@"SEL$1" "cmsl"@"SEL$1")
INDEX(@"SEL$1" "cmta"@"SEL$1" "idx_crm_member_third_account_2")
USE_DAS(@"SEL$1" "cmta"@"SEL$1")
INDEX(@"SEL$1" "cmc"@"SEL$1" "idx_crm_member_card_3")
USE_DAS(@"SEL$1" "cmc"@"SEL$1")
OPTIMIZER_FEATURES_ENABLE('4.2.1.0')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
cmmp:
table_rows:1
physical_range_rows:1
logical_range_rows:1
index_back_rows:0
output_rows:1
table_dop:1
dop_method:Table DOP
avaiable_index_name:[crm_member_maturity_point]
stats version:0
dynamic sampling level:1
cm:
table_rows:111366606
physical_range_rows:3
logical_range_rows:3
index_back_rows:3
output_rows:3
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_crm_member_1, idx_crm_member_2, idx_crm_member_3, idx_id_card, idx_crm_member_4, idx_crm_member_5, crm_member]
pruned_index_name:[idx_crm_member_1, idx_crm_member_2, idx_id_card, idx_crm_member_4, idx_crm_member_5, crm_member]
stats version:1732112613697696
dynamic sampling level:0
cmbl:
table_rows:111505960
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_crm_member_base_label_1, idx_crm_member_base_label_2, idx_crm_member_base_label_3, idx_crm_member_base_label_4, crm_member_base_label]
pruned_index_name:[idx_crm_member_base_label_2, idx_crm_member_base_label_3, idx_crm_member_base_label_4]
unstable_index_name:[crm_member_base_label]
stats version:1732400089846287
dynamic sampling level:0
cmcl:
table_rows:111407854
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_crm_member_characteristic_label_2, idx_crm_member_characteristic_label_1, idx_crm_member_characteristic_label_3, crm_member_characteristic_label]
pruned_index_name:[idx_crm_member_characteristic_label_1, idx_crm_member_characteristic_label_3, crm_member_characteristic_label]
stats version:1732401122071824
dynamic sampling level:0
cmsl:
table_rows:23175341
physical_range_rows:2
logical_range_rows:2
index_back_rows:2
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_crm_member_superior_1, idx_crm_member_superior_2, idx_crm_member_superior_3, idx_crm_member_superior_4, crm_member_superior_log]
pruned_index_name:[idx_crm_member_superior_2, idx_crm_member_superior_3, idx_crm_member_superior_4]
unstable_index_name:[crm_member_superior_log]
stats version:1732701457681293
dynamic sampling level:0
cmta:
table_rows:26789075
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_crm_member_third_account_1, idx_crm_member_third_account_2, idx_crm_member_third_account_3, idx_crm_member_third_account_4, crm_member_third_account_third_account_IDX, crm_member_third_account]
pruned_index_name:[idx_crm_member_third_account_1, idx_crm_member_third_account_3, idx_crm_member_third_account_4, crm_member_third_account_third_account_IDX]
unstable_index_name:[crm_member_third_account]
stats version:1725458485718454
dynamic sampling level:0
cmc:
table_rows:133042122
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:1
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_crm_member_card_1, idx_crm_member_card_2, idx_idx_batch_num_5, idx_crm_member_card_3, idx_crm_member_card_4, idx_crm_member_card_6, crm_member_card]
pruned_index_name:[idx_crm_member_card_1, idx_crm_member_card_2, idx_idx_batch_num_5, idx_crm_member_card_4, idx_crm_member_card_6]
unstable_index_name:[crm_member_card]
stats version:1732630107046324
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property






SQL: select id as userId, user_name, user_no, phone from sys_user
WHERE is_deleted = 0 and tenant_id = 1
and ( department_id = 270661859425816579 or emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661859425816579 and is_deleted = 0 ) )
and sl_user_status = 1 LIMIT 20
查看格式化信息
=========================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-----------------------------------------------------------------------------------------
|0 |LIMIT | |20 |2741 |
|1 |└─SUBPLAN FILTER | |21 |2741 |
|2 | ├─TABLE FULL SCAN |sys_user |40 |17 |
|3 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user_empl_rcd(idx_emp_id)|1 |69 |
=========================================================================================
Outputs & filters:
-------------------------------------
0 - output([sys_user.id(0x7f7202640d00)], [sys_user.user_name(0x7f7202641300)], [sys_user.user_no(0x7f7202641900)], [sys_user.phone(0x7f7202641f00)]), filter(nil), rowset=256
limit(20), offset(nil)
1 - output([sys_user.id(0x7f7202640d00)], [sys_user.user_name(0x7f7202641300)], [sys_user.user_no(0x7f7202641900)], [sys_user.phone(0x7f7202641f00)]), filter([sys_user.department_id(0x7f720263e2f0)
= 270661859425816579(0x7f72026251a0) OR (T_OP_EXISTS, subquery(1)(0x7f72026262a0))(0x7f7202644b10)(0x7f7202624520)]), rowset=256
exec_params_([sys_user.emp_id(0x7f720263e5e0)(:0)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false
2 - output([sys_user.id(0x7f7202640d00)], [sys_user.department_id(0x7f720263e2f0)], [sys_user.emp_id(0x7f720263e5e0)], [sys_user.user_name(0x7f7202641300)],
[sys_user.user_no(0x7f7202641900)], [sys_user.phone(0x7f7202641f00)]), filter([sys_user.sl_user_status(0x7f7202640470) = 1(0x7f720263fd20)], [sys_user.is_deleted(0x7f7202622d30)
= 0(0x7f72026225e0)], [sys_user.tenant_id(0x7f7202623f90) = 1(0x7f7202623840)]), rowset=256
access([sys_user.id(0x7f7202640d00)], [sys_user.is_deleted(0x7f7202622d30)], [sys_user.tenant_id(0x7f7202623f90)], [sys_user.department_id(0x7f720263e2f0)],
[sys_user.emp_id(0x7f720263e5e0)], [sys_user.sl_user_status(0x7f7202640470)], [sys_user.user_name(0x7f7202641300)], [sys_user.user_no(0x7f7202641900)],
[sys_user.phone(0x7f7202641f00)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false,false,false],
range_key([sys_user.id(0x7f7202640d00)]), range(MIN ; MAX)always true
3 - output([1]), filter([sys_user_empl_rcd.department_id(0x7f720263c390) = 270661859425816579(0x7f720263bc40)], [sys_user_empl_rcd.is_deleted(0x7f720263d5f0)
= 0(0x7f720263cea0)]), rowset=256
access([sys_user_empl_rcd.id(0x7f7202642ca0)], [sys_user_empl_rcd.department_id(0x7f720263c390)], [sys_user_empl_rcd.is_deleted(0x7f720263d5f0)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([sys_user_empl_rcd.emp_id(0x7f720263de80)], [sys_user_empl_rcd.id(0x7f7202642ca0)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([sys_user_empl_rcd.emp_id(0x7f720263de80) = :0(0x7f7202644240)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$4D615D57 > SEL$26211548
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
FULL(@"SEL$26211548" "sl_pos_authorization"."sys_user"@"SEL$1")
INDEX(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2" "idx_emp_id")
USE_DAS(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2")
SIMPLIFY_SUBQUERY(@"SEL$1")
SIMPLIFY_SUBQUERY(@"SEL$4D615D57")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:143856
logical_range_rows:141294
index_back_rows:0
output_rows:76178
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:11
logical_range_rows:11
index_back_rows:11
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_emp_id, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property











alter table sys_user_empl_rcd add index di(department_id);


SQL: select id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1
and ( department_id = 270661859425816579 or emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661859425816579 and is_deleted = 0 ) ) and sl_user_status = 1 LIMIT 20
查看格式化信息
=================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
---------------------------------------------------------------------------------
|0 |LIMIT | |20 |337 |
|1 |└─SUBPLAN FILTER | |21 |337 |
|2 | ├─TABLE FULL SCAN |sys_user |40 |17 |
|3 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user_empl_rcd(di)|1 |8 |
=================================================================================
Outputs & filters:
-------------------------------------
0 - output([sys_user.id(0x7f65da840d00)], [sys_user.user_name(0x7f65da841300)], [sys_user.user_no(0x7f65da841900)], [sys_user.phone(0x7f65da841f00)]), filter(nil), rowset=256
limit(20), offset(nil)
1 - output([sys_user.id(0x7f65da840d00)], [sys_user.user_name(0x7f65da841300)], [sys_user.user_no(0x7f65da841900)], [sys_user.phone(0x7f65da841f00)]), filter([sys_user.department_id(0x7f65da83e2f0)
= 270661859425816579(0x7f65da8251a0) OR (T_OP_EXISTS, subquery(1)(0x7f65da8262a0))(0x7f65da844b10)(0x7f65da824520)]), rowset=256
exec_params_([sys_user.emp_id(0x7f65da83e5e0)(:0)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false
2 - output([sys_user.id(0x7f65da840d00)], [sys_user.department_id(0x7f65da83e2f0)], [sys_user.emp_id(0x7f65da83e5e0)], [sys_user.user_name(0x7f65da841300)],
[sys_user.user_no(0x7f65da841900)], [sys_user.phone(0x7f65da841f00)]), filter([sys_user.sl_user_status(0x7f65da840470) = 1(0x7f65da83fd20)], [sys_user.is_deleted(0x7f65da822d30)
= 0(0x7f65da8225e0)], [sys_user.tenant_id(0x7f65da823f90) = 1(0x7f65da823840)]), rowset=256
access([sys_user.id(0x7f65da840d00)], [sys_user.is_deleted(0x7f65da822d30)], [sys_user.tenant_id(0x7f65da823f90)], [sys_user.department_id(0x7f65da83e2f0)],
[sys_user.emp_id(0x7f65da83e5e0)], [sys_user.sl_user_status(0x7f65da840470)], [sys_user.user_name(0x7f65da841300)], [sys_user.user_no(0x7f65da841900)],
[sys_user.phone(0x7f65da841f00)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false,false,false],
range_key([sys_user.id(0x7f65da840d00)]), range(MIN ; MAX)always true
3 - output([1]), filter([sys_user_empl_rcd.emp_id(0x7f65da83de80) = :0(0x7f65da844240)], [sys_user_empl_rcd.is_deleted(0x7f65da83d5f0) = 0(0x7f65da83cea0)]), rowset=256
access([sys_user_empl_rcd.id(0x7f65da842ca0)], [sys_user_empl_rcd.is_deleted(0x7f65da83d5f0)], [sys_user_empl_rcd.emp_id(0x7f65da83de80)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([sys_user_empl_rcd.department_id(0x7f65da83c390)], [sys_user_empl_rcd.id(0x7f65da842ca0)]), range(270661859425816579,MIN ; 270661859425816579,
MAX),
range_cond([sys_user_empl_rcd.department_id(0x7f65da83c390) = 270661859425816579(0x7f65da83bc40)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$4D615D57 > SEL$26211548
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
FULL(@"SEL$26211548" "sl_pos_authorization"."sys_user"@"SEL$1")
INDEX(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2" "di")
USE_DAS(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2")
SIMPLIFY_SUBQUERY(@"SEL$1")
SIMPLIFY_SUBQUERY(@"SEL$4D615D57")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:143857
logical_range_rows:141294
index_back_rows:0
output_rows:76178
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_emp_id, di, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property








select * from (select
id as userId,
user_name,
user_no,
phone
from
sys_user
WHERE
is_deleted = 0
and tenant_id = 1
and (
department_id = 270661859425816579

)
and sl_user_status = 1
union ALL
select
id as userId,
user_name,
user_no,
phone
from
sys_user
WHERE
is_deleted = 0
and tenant_id = 1
and (
department_id <> 270661859425816579
and emp_id in(
select
emp_id
from
sys_user_empl_rcd
where
department_id = 270661859425816579
and is_deleted = 0
)
)
and sl_user_status = 1)
limit 20;










SQL: select * from (select id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1 and ( department_id = 270661859425816579 ) and sl_user_status = 1
union ALL
select id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1 and ( department_id <> 270661859425816579
and emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661859425816579 and is_deleted = 0 ) ) and sl_user_status = 1)
limit 20
查看格式化信息
=================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------
|0 |LIMIT | |4 |56 |
|1 |└─UNION ALL | |4 |56 |
|2 | ├─TABLE RANGE SCAN |sys_user(idx_id_ti_ss_dept_empid)|3 |19 |
|3 | └─LIMIT | |1 |38 |
|4 | └─NESTED-LOOP JOIN | |1 |38 |
|5 | ├─SUBPLAN SCAN |VIEW2 |1 |9 |
|6 | │ └─HASH DISTINCT | |1 |9 |
|7 | │ └─TABLE RANGE SCAN |sys_user_empl_rcd(di) |1 |8 |
|8 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user(idx_emp_id) |1 |29 |
=================================================================================================
Outputs & filters:
-------------------------------------
0 - output([UNION([1])(0x7f605b480780)], [UNION([2])(0x7f605b4809d0)], [UNION([3])(0x7f605b480c20)], [UNION([4])(0x7f605b480e70)]), filter(nil), rowset=16
limit(20), offset(nil)
1 - output([UNION([1])(0x7f605b480780)], [UNION([2])(0x7f605b4809d0)], [UNION([3])(0x7f605b480c20)], [UNION([4])(0x7f605b480e70)]), filter(nil), rowset=16
2 - output([sys_user.id(0x7f605b44d8b0)], [sys_user.user_name(0x7f605b44deb0)], [sys_user.user_no(0x7f605b44e4b0)], [sys_user.phone(0x7f605b44eab0)]), filter(nil), rowset=16
access([sys_user.id(0x7f605b44d8b0)], [sys_user.user_name(0x7f605b44deb0)], [sys_user.user_no(0x7f605b44e4b0)], [sys_user.phone(0x7f605b44eab0)]), partitions(p0)
limit(20), offset(nil), is_index_back=true, is_global_index=false,
range_key([sys_user.is_deleted(0x7f605b449900)], [sys_user.tenant_id(0x7f605b44ab60)], [sys_user.sl_user_status(0x7f605b44d020)], [sys_user.department_id(0x7f605b44bdc0)],
[sys_user.emp_id(0x7f79a70403f0)], [sys_user.id(0x7f605b44d8b0)]), range(0,1,1,270661859425816579,MIN,MIN ; 0,1,1,270661859425816579,MAX,MAX),
range_cond([sys_user.is_deleted(0x7f605b449900) = 0(0x7f605b4491b0)], [sys_user.tenant_id(0x7f605b44ab60) = 1(0x7f605b44a410)], [sys_user.department_id(0x7f605b44bdc0)
= 270661859425816579(0x7f605b44b670)], [sys_user.sl_user_status(0x7f605b44d020) = 1(0x7f605b44c8d0)])
3 - output([sys_user.id(0x7f605b4ad660)], [sys_user.user_name(0x7f605b4ae4c0)], [sys_user.user_no(0x7f605b4ae7a0)], [sys_user.phone(0x7f605b4aea80)]), filter(nil), rowset=16
limit(20), offset(nil)
4 - output([sys_user.id(0x7f605b4ad660)], [sys_user.user_name(0x7f605b4ae4c0)], [sys_user.user_no(0x7f605b4ae7a0)], [sys_user.phone(0x7f605b4aea80)]), filter(nil), rowset=16
conds(nil), nl_params_([VIEW2.VIEW1.emp_id(0x7f605b4d7f90)(:1)]), use_batch=true
5 - output([VIEW2.VIEW1.emp_id(0x7f605b4d7f90)]), filter(nil), rowset=16
access([VIEW2.VIEW1.emp_id(0x7f605b4d7f90)])
6 - output([sys_user_empl_rcd.emp_id(0x7f605b4c4450)]), filter(nil), rowset=16
distinct([sys_user_empl_rcd.emp_id(0x7f605b4c4450)])
7 - output([sys_user_empl_rcd.emp_id(0x7f605b4c4450)]), filter([sys_user_empl_rcd.is_deleted(0x7f605b4c4170) = 0(0x7f605b4c5240)]), rowset=16
access([sys_user_empl_rcd.id(0x7f605b4c3bb0)], [sys_user_empl_rcd.is_deleted(0x7f605b4c4170)], [sys_user_empl_rcd.emp_id(0x7f605b4c4450)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([sys_user_empl_rcd.department_id(0x7f605b4c3e90)], [sys_user_empl_rcd.id(0x7f605b4c3bb0)]), range(270661859425816579,MIN ; 270661859425816579,
MAX),
range_cond([sys_user_empl_rcd.department_id(0x7f605b4c3e90) = 270661859425816579(0x7f605b4c4730)])
8 - output([sys_user.id(0x7f605b4ad660)], [sys_user.user_name(0x7f605b4ae4c0)], [sys_user.user_no(0x7f605b4ae7a0)], [sys_user.phone(0x7f605b4aea80)]), filter([sys_user.sl_user_status(0x7f605b4ae1e0)
= 1(0x7f605b4b0e90)], [sys_user.is_deleted(0x7f605b4ad940) = 0(0x7f605b4aed60)], [sys_user.department_id(0x7f605b4adf00) != 270661859425816579(0x7f605b4b0380)],
[sys_user.tenant_id(0x7f605b4adc20) = 1(0x7f605b4af870)]), rowset=16
access([GROUP_ID(0x7f67482a0780)], [sys_user.id(0x7f605b4ad660)], [sys_user.is_deleted(0x7f605b4ad940)], [sys_user.tenant_id(0x7f605b4adc20)], [sys_user.department_id(0x7f605b4adf00)],
[sys_user.sl_user_status(0x7f605b4ae1e0)], [sys_user.user_name(0x7f605b4ae4c0)], [sys_user.user_no(0x7f605b4ae7a0)], [sys_user.phone(0x7f605b4aea80)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([sys_user.emp_id(0x7f605b4ad0a0)], [sys_user.id(0x7f605b4ad660)]), range(MIN ; MAX),
range_cond([sys_user.emp_id(0x7f605b4ad0a0) = :1(0x7f79a71d7700)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$8BC34FF0
stmt_id:2, SET$1 > SET$939198FE > SET$BFC27C50
stmt_id:3, SEL$2
stmt_id:4, SEL$3 > SEL$3C0FC11D > SEL$219D0A78
stmt_id:5, SEL$4 > SEL$77CA918C
stmt_id:6, parent:SEL$3C0FC11D > SEL$BF75C331
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
INDEX(@"SEL$2" "sl_pos_authorization"."sys_user"@"SEL$2" "idx_id_ti_ss_dept_empid")
LEADING(@"SEL$219D0A78" ("VIEW2"@"SEL$3C0FC11D" "sl_pos_authorization"."sys_user"@"SEL$3"))
USE_NL(@"SEL$219D0A78" "sl_pos_authorization"."sys_user"@"SEL$3")
USE_HASH_DISTINCT(@"SEL$77CA918C")
INDEX(@"SEL$77CA918C" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$4" "di")
INDEX(@"SEL$219D0A78" "sys_user"@"SEL$3" "idx_emp_id")
USE_DAS(@"SEL$219D0A78" "sys_user"@"SEL$3")
SIMPLIFY_LIMIT(@"SEL$1")
SIMPLIFY_SET(@"SET$1")
UNNEST(@"SEL$4")
SEMI_TO_INNER(@"SEL$3C0FC11D" "VIEW1")
MERGE(@"SEL$4" < "SEL$BF75C331")
MERGE(@"SET$939198FE" < "SEL$8BC34FF0")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:3
logical_range_rows:3
index_back_rows:3
output_rows:3
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_create_time, idx_emp_id, di, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
sys_user:
table_rows:141263
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property











CREATE TABLE `sys_user` (
`id` bigint(20) unsigned NOT NULL,
`user_name` varchar(200) DEFAULT NULL COMMENT '用户名称',
`login_name` varchar(20) DEFAULT NULL COMMENT '登录名',
`user_no` varchar(30) NOT NULL COMMENT '用户编码',
`emp_id` varchar(11) DEFAULT NULL COMMENT '员工id',
`user_status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态(0-无效 1-有效)',
`pharmacist` varchar(30) DEFAULT NULL COMMENT '药师',
`pro_pharmacist` varchar(30) DEFAULT NULL COMMENT '执业药师',
`permission_mark` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '权限标识(0-手工,1-自动)',
`phone` varchar(11) NOT NULL COMMENT '手机号码',
`password` varchar(200) DEFAULT NULL COMMENT '密码',
`department_type_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '部门类型ID',
`tenant_id` bigint(20) unsigned NOT NULL COMMENT '租户ID,包含加盟,联盟,大参林等',
`department_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '部门ID',
`create_user_id` bigint(20) unsigned NOT NULL COMMENT '创建用户ID',
`update_user_id` bigint(20) unsigned NOT NULL COMMENT '修改用户ID',
`create_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
`update_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '修改时间',
`is_deleted` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '删除标记 0:未删除 1:删除',
`id_card` varchar(18) DEFAULT NULL COMMENT '身份证号',
`id_card_name` varchar(20) DEFAULT NULL COMMENT '身份证名称',
`wechat` varchar(50) DEFAULT NULL COMMENT '微信号',
`email` varchar(100) DEFAULT NULL COMMENT '邮箱',
`id_card_front_url` varchar(500) DEFAULT NULL COMMENT '身份证人像图片路径',
`id_card_back_url` varchar(500) DEFAULT NULL COMMENT '身份证国徽图片路径',
`professional_technical_name` varchar(50) DEFAULT NULL COMMENT '专业技术名称',
`position_name` varchar(50) DEFAULT NULL COMMENT '岗位名称',
`salt` varchar(8) DEFAULT NULL COMMENT 'MD5盐',
`user_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '人员类型 0-行政 1-门店',
`add_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '新增方式 0-系统同步 1-人工新增',
`hcm_change_status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '变动事务0 离职 ,1入职 ,2 调动 ,3 退休,4其它',
`sl_user_status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '参林状态 0-禁用 1-启用',
`mnemonic_code` varchar(20) DEFAULT NULL COMMENT '用户名拼音',
PRIMARY KEY (`id`),
KEY `idx_emp_id` (`emp_id`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_create_time` (`create_time`) BLOCK_SIZE 16384 LOCAL,
KEY `sys_user_phone_is_delete_index` (`phone`, `is_deleted`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_update_time` (`update_time`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_user_no` (`user_no`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_department_id` (`department_id`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_login_name` (`login_name`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_id_ti_ss_dept_empid` (`is_deleted`, `tenant_id`, `sl_user_status`, `department_id`, `emp_id`) BLOCK_SIZE 16384 LOCAL
) DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = 'zstd_1.3.8' REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0 COMMENT = '联盟商用户管理表'



CREATE TABLE `sys_user_empl_rcd` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '字典ID',
`department_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '多任职门店id',
`emp_id` varchar(11) DEFAULT NULL COMMENT '员工id',
`hcm_dept_id` varchar(10) DEFAULT NULL COMMENT 'hcm部门编码',
`create_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '创建用户ID',
`update_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '修改用户ID',
`create_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
`update_time` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '修改时间',
`is_deleted` tinyint(1) unsigned DEFAULT '0' COMMENT '删除标记位',
PRIMARY KEY (`id`),
KEY `idx_create_time` (`create_time`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_emp_id` (`emp_id`) BLOCK_SIZE 16384 LOCAL,
KEY `di` (`department_id`) BLOCK_SIZE 16384 LOCAL
) AUTO_INCREMENT = 425777965789986817 AUTO_INCREMENT_MODE = 'ORDER' DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = 'zstd_1.3.8' REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0 COMMENT = '员工多任任职记录表'







这边辛苦收集下统计信息一起看下哈 CALL DBMS_STATS.GATHER_TABLE_STATS ('database_name', 'table_name',degree=>8,no_invalidate=>true)












SQL: select id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1 and ( department_id = 270661884558086155 or emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661884558086155 and is_deleted = 0 ) ) and sl_user_status = 1 limit 20
查看格式化信息
=========================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-----------------------------------------------------------------------------------------
|0 |LIMIT | |20 |2742 |
|1 |└─SUBPLAN FILTER | |21 |2742 |
|2 | ├─TABLE FULL SCAN |sys_user |40 |18 |
|3 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user_empl_rcd(idx_emp_id)|1 |69 |
=========================================================================================
Outputs & filters:
-------------------------------------
0 - output([sys_user.id(0x7f7ba1e40cc0)], [sys_user.user_name(0x7f7ba1e412c0)], [sys_user.user_no(0x7f7ba1e418c0)], [sys_user.phone(0x7f7ba1e41ec0)]), filter(nil), rowset=256
limit(20), offset(nil)
1 - output([sys_user.id(0x7f7ba1e40cc0)], [sys_user.user_name(0x7f7ba1e412c0)], [sys_user.user_no(0x7f7ba1e418c0)], [sys_user.phone(0x7f7ba1e41ec0)]), filter([sys_user.department_id(0x7f7ba1e3e2b0)
= 270661884558086155(0x7f7ba1e25160) OR (T_OP_EXISTS, subquery(1)(0x7f7ba1e26260))(0x7f7ba1e44ad0)(0x7f7ba1e244e0)]), rowset=256
exec_params_([sys_user.emp_id(0x7f7ba1e3e5a0)(:0)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false
2 - output([sys_user.id(0x7f7ba1e40cc0)], [sys_user.department_id(0x7f7ba1e3e2b0)], [sys_user.emp_id(0x7f7ba1e3e5a0)], [sys_user.user_name(0x7f7ba1e412c0)],
[sys_user.user_no(0x7f7ba1e418c0)], [sys_user.phone(0x7f7ba1e41ec0)]), filter([sys_user.sl_user_status(0x7f7ba1e40430) = 1(0x7f7ba1e3fce0)], [sys_user.is_deleted(0x7f7ba1e22cf0)
= 0(0x7f7ba1e225a0)], [sys_user.tenant_id(0x7f7ba1e23f50) = 1(0x7f7ba1e23800)]), rowset=256
access([sys_user.id(0x7f7ba1e40cc0)], [sys_user.is_deleted(0x7f7ba1e22cf0)], [sys_user.tenant_id(0x7f7ba1e23f50)], [sys_user.department_id(0x7f7ba1e3e2b0)],
[sys_user.emp_id(0x7f7ba1e3e5a0)], [sys_user.sl_user_status(0x7f7ba1e40430)], [sys_user.user_name(0x7f7ba1e412c0)], [sys_user.user_no(0x7f7ba1e418c0)],
[sys_user.phone(0x7f7ba1e41ec0)]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false,false,false],
range_key([sys_user.id(0x7f7ba1e40cc0)]), range(MIN ; MAX)always true
3 - output([1]), filter([sys_user_empl_rcd.department_id(0x7f7ba1e3c350) = 270661884558086155(0x7f7ba1e3bc00)], [sys_user_empl_rcd.is_deleted(0x7f7ba1e3d5b0)
= 0(0x7f7ba1e3ce60)]), rowset=256
access([sys_user_empl_rcd.id(0x7f7ba1e42c60)], [sys_user_empl_rcd.department_id(0x7f7ba1e3c350)], [sys_user_empl_rcd.is_deleted(0x7f7ba1e3d5b0)]), partitions(p0)
limit(1), offset(nil), is_index_back=true, is_global_index=false, filter_before_indexback[false,false],
range_key([sys_user_empl_rcd.emp_id(0x7f7ba1e3de40)], [sys_user_empl_rcd.id(0x7f7ba1e42c60)]), range(MIN,MIN ; MAX,MAX)always true,
range_cond([sys_user_empl_rcd.emp_id(0x7f7ba1e3de40) = :0(0x7f7ba1e44200)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$4D615D57 > SEL$26211548
stmt_id:2, SEL$2
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
FULL(@"SEL$26211548" "sl_pos_authorization"."sys_user"@"SEL$1")
INDEX(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2" "idx_emp_id")
USE_DAS(@"SEL$2" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2")
SIMPLIFY_SUBQUERY(@"SEL$1")
SIMPLIFY_SUBQUERY(@"SEL$4D615D57")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:144790
logical_range_rows:141422
index_back_rows:0
output_rows:76247
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:11
logical_range_rows:11
index_back_rows:11
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_create_time, idx_emp_id, di, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property




SQL: select id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1 and ( department_id = 270661884558086155 or emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661884558086155 and is_deleted = 0 ) ) and sl_user_status = 1
查看格式化信息
=============================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
---------------------------------------------------------------------------------------------
|0 |UNION ALL | |6 |168 |
|1 |├─TABLE RANGE SCAN |sys_user(idx_id_ti_ss_dept_empid)|3 |19 |
|2 |└─NESTED-LOOP JOIN | |3 |150 |
|3 | ├─SUBPLAN SCAN |VIEW2 |3 |90 |
|4 | │ └─HASH DISTINCT | |3 |90 |
|5 | │ └─TABLE RANGE SCAN |sys_user_empl_rcd(di) |3 |89 |
|6 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user(idx_emp_id) |1 |29 |
=============================================================================================
Outputs & filters:
-------------------------------------
0 - output([UNION([1])(0x7f67f4cb8d70)], [UNION([2])(0x7f67f4cb8fc0)], [UNION([3])(0x7f67f4cb9210)], [UNION([4])(0x7f67f4cb9460)]), filter(nil), rowset=16
1 - output([sys_user.id(0x7f67f4c88550)], [sys_user.user_name(0x7f67f4c89690)], [sys_user.user_no(0x7f67f4c89970)], [sys_user.phone(0x7f67f4c89c50)]), filter(nil), rowset=16
access([sys_user.id(0x7f67f4c88550)], [sys_user.user_name(0x7f67f4c89690)], [sys_user.user_no(0x7f67f4c89970)], [sys_user.phone(0x7f67f4c89c50)]), partitions(p0)
is_index_back=true, is_global_index=false,
range_key([sys_user.is_deleted(0x7f67f4c88830)], [sys_user.tenant_id(0x7f67f4c88b10)], [sys_user.sl_user_status(0x7f67f4c893b0)], [sys_user.department_id(0x7f67f4c88df0)],
[sys_user.emp_id(0x7f7bd7c6dac0)], [sys_user.id(0x7f67f4c88550)]), range(0,1,1,270661884558086155,MIN,MIN ; 0,1,1,270661884558086155,MAX,MAX),
range_cond([sys_user.is_deleted(0x7f67f4c88830) = 0(0x7f67f4c8cb70)], [sys_user.tenant_id(0x7f67f4c88b10) = 1(0x7f67f4c8d680)], [sys_user.sl_user_status(0x7f67f4c893b0)
= 1(0x7f67f4c8fd80)], [sys_user.department_id(0x7f67f4c88df0) = 270661884558086155(0x7f67f4c8ea10)])
2 - output([sys_user.id(0x7f67f4d37ba0)], [sys_user.user_name(0x7f67f4d38a00)], [sys_user.user_no(0x7f67f4d38ce0)], [sys_user.phone(0x7f67f4d38fc0)]), filter(nil), rowset=16
conds(nil), nl_params_([VIEW2.VIEW1.sys_user_empl_rcd.emp_id(0x7f67f4d45b70)(:1)]), use_batch=true
3 - output([VIEW2.VIEW1.sys_user_empl_rcd.emp_id(0x7f67f4d45b70)]), filter(nil), rowset=16
access([VIEW2.VIEW1.sys_user_empl_rcd.emp_id(0x7f67f4d45b70)])
4 - output([sys_user_empl_rcd.emp_id(0x7f67f4d3dee0)]), filter(nil), rowset=16
distinct([sys_user_empl_rcd.emp_id(0x7f67f4d3dee0)])
5 - output([sys_user_empl_rcd.emp_id(0x7f67f4d3dee0)]), filter([sys_user_empl_rcd.is_deleted(0x7f67f4d3dc00) = 0(0x7f67f4d3ecd0)]), rowset=16
access([sys_user_empl_rcd.id(0x7f67f4d3d640)], [sys_user_empl_rcd.is_deleted(0x7f67f4d3dc00)], [sys_user_empl_rcd.emp_id(0x7f67f4d3dee0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([sys_user_empl_rcd.department_id(0x7f67f4d3d920)], [sys_user_empl_rcd.id(0x7f67f4d3d640)]), range(270661884558086155,MIN ; 270661884558086155,
MAX),
range_cond([sys_user_empl_rcd.department_id(0x7f67f4d3d920) = 270661884558086155(0x7f67f4d3e1c0)])
6 - output([sys_user.id(0x7f67f4d37ba0)], [sys_user.user_name(0x7f67f4d38a00)], [sys_user.user_no(0x7f67f4d38ce0)], [sys_user.phone(0x7f67f4d38fc0)]), filter([sys_user.sl_user_status(0x7f67f4d38720)
= 1(0x7f67f4d3a8c0)], [sys_user.is_deleted(0x7f67f4d37e80) = 0(0x7f67f4d392a0)], [sys_user.tenant_id(0x7f67f4d38160) = 1(0x7f67f4d39db0)], [lnnvl(cast(sys_user.department_id(0x7f67f4d38440)
= 270661884558086155(0x7f67f4d3c290), TINYINT(-1, 0))(0x7f67f4d3b9f0))(0x7f67f4d3b150)]), rowset=16
access([GROUP_ID(0x7f77e068e5b0)], [sys_user.id(0x7f67f4d37ba0)], [sys_user.is_deleted(0x7f67f4d37e80)], [sys_user.tenant_id(0x7f67f4d38160)], [sys_user.department_id(0x7f67f4d38440)],
[sys_user.sl_user_status(0x7f67f4d38720)], [sys_user.user_name(0x7f67f4d38a00)], [sys_user.user_no(0x7f67f4d38ce0)], [sys_user.phone(0x7f67f4d38fc0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([sys_user.emp_id(0x7f67f4d378c0)], [sys_user.id(0x7f67f4d37ba0)]), range(MIN ; MAX),
range_cond([:1 = sys_user.emp_id(0x7f67f4d378c0)(0x7f7bd7dd5d40)])
Used Hint:
-------------------------------------
/*+

*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$4D615D57
stmt_id:2, SEL$2
stmt_id:3, parent:SEL$4D615D57 > SEL$EE16ACD1_1
stmt_id:4, parent:SEL$2 > SEL$DE41DCE6_2
stmt_id:5, parent:SEL$4D615D57 > SEL$EE16ACD1_2 > SEL$74AB3BFB > SEL$74737171
stmt_id:6, parent:SEL$2 > SEL$DE41DCE6_3 > SEL$41D58CDD
stmt_id:7, parent:SEL$4D615D57 > SET$EE16ACD1
stmt_id:8, parent:SEL$74AB3BFB > SEL$EA9BB838
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
INDEX(@"SEL$EE16ACD1_1" "sl_pos_authorization"."sys_user"@"SEL$1" "idx_id_ti_ss_dept_empid")
LEADING(@"SEL$74737171" ("VIEW2"@"SEL$74AB3BFB" "sl_pos_authorization"."sys_user"@"SEL$1"))
USE_NL(@"SEL$74737171" "sl_pos_authorization"."sys_user"@"SEL$1")
USE_HASH_DISTINCT(@"SEL$41D58CDD")
INDEX(@"SEL$41D58CDD" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2" "di")
INDEX(@"SEL$74737171" "sl_pos_authorization"."sys_user"@"SEL$1" "idx_emp_id")
USE_DAS(@"SEL$74737171" "sl_pos_authorization"."sys_user"@"SEL$1")
SIMPLIFY_SUBQUERY(@"SEL$1")
USE_CONCAT(@"SEL$4D615D57" 'sys_user.department_id = ? OR (T_OP_EXISTS, SQ(SEL$2))')
UNNEST(@"SEL$DE41DCE6_3")
SEMI_TO_INNER(@"SEL$74AB3BFB" "VIEW1")
MERGE(@"SEL$DE41DCE6_3" < "SEL$EA9BB838")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:3
logical_range_rows:3
index_back_rows:3
output_rows:3
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:21
logical_range_rows:21
index_back_rows:21
output_rows:2
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_create_time, idx_emp_id, di, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
sys_user:
table_rows:141263
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:1
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property








SQL: select /*+ USE_CONCAT*/ id as userId, user_name, user_no, phone from sys_user WHERE is_deleted = 0 and tenant_id = 1 and ( department_id = 270661884558086155 or emp_id in( select emp_id from sys_user_empl_rcd where department_id = 270661884558086155 and is_deleted = 0 ) ) and sl_user_status = 1 limit 20
查看格式化信息
=================================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
-------------------------------------------------------------------------------------------------
|0 |LIMIT | |6 |168 |
|1 |└─UNION ALL | |6 |168 |
|2 | ├─TABLE RANGE SCAN |sys_user(idx_id_ti_ss_dept_empid)|3 |19 |
|3 | └─LIMIT | |3 |150 |
|4 | └─NESTED-LOOP JOIN | |3 |150 |
|5 | ├─SUBPLAN SCAN |VIEW3 |3 |90 |
|6 | │ └─HASH DISTINCT | |3 |90 |
|7 | │ └─TABLE RANGE SCAN |sys_user_empl_rcd(di) |3 |89 |
|8 | └─DISTRIBUTED TABLE RANGE SCAN|sys_user(idx_emp_id) |1 |29 |
=================================================================================================
Outputs & filters:
-------------------------------------
0 - output([UNION([1])(0x7f5c55aff630)], [UNION([2])(0x7f5c55aff880)], [UNION([3])(0x7f5c55affad0)], [UNION([4])(0x7f5c55affd20)]), filter(nil), rowset=16
limit(20), offset(nil)
1 - output([UNION([1])(0x7f5c55aff630)], [UNION([2])(0x7f5c55aff880)], [UNION([3])(0x7f5c55affad0)], [UNION([4])(0x7f5c55affd20)]), filter(nil), rowset=16
2 - output([sys_user.id(0x7f5c55acaff0)], [sys_user.user_name(0x7f5c55acc130)], [sys_user.user_no(0x7f5c55acc410)], [sys_user.phone(0x7f5c55acc6f0)]), filter(nil), rowset=16
access([sys_user.id(0x7f5c55acaff0)], [sys_user.user_name(0x7f5c55acc130)], [sys_user.user_no(0x7f5c55acc410)], [sys_user.phone(0x7f5c55acc6f0)]), partitions(p0)
limit(20), offset(nil), is_index_back=true, is_global_index=false,
range_key([sys_user.is_deleted(0x7f5c55acb2d0)], [sys_user.tenant_id(0x7f5c55acb5b0)], [sys_user.sl_user_status(0x7f5c55acbe50)], [sys_user.department_id(0x7f5c55acb890)],
[sys_user.emp_id(0x7f6ac10a9e50)], [sys_user.id(0x7f5c55acaff0)]), range(0,1,1,270661884558086155,MIN,MIN ; 0,1,1,270661884558086155,MAX,MAX),
range_cond([sys_user.is_deleted(0x7f5c55acb2d0) = 0(0x7f5c55acf610)], [sys_user.tenant_id(0x7f5c55acb5b0) = 1(0x7f5c55ad0120)], [sys_user.sl_user_status(0x7f5c55acbe50)
= 1(0x7f5c55ad2820)], [sys_user.department_id(0x7f5c55acb890) = 270661884558086155(0x7f5c55ad14b0)])
3 - output([sys_user.id(0x7f5c55b276a0)], [sys_user.user_name(0x7f5c55b28500)], [sys_user.user_no(0x7f5c55b287e0)], [sys_user.phone(0x7f5c55b28ac0)]), filter(nil), rowset=16
limit(20), offset(nil)
4 - output([sys_user.id(0x7f5c55b276a0)], [sys_user.user_name(0x7f5c55b28500)], [sys_user.user_no(0x7f5c55b287e0)], [sys_user.phone(0x7f5c55b28ac0)]), filter(nil), rowset=16
conds(nil), nl_params_([VIEW3.VIEW2.sys_user_empl_rcd.emp_id(0x7f5c55b533a0)(:1)]), use_batch=true
5 - output([VIEW3.VIEW2.sys_user_empl_rcd.emp_id(0x7f5c55b533a0)]), filter(nil), rowset=16
access([VIEW3.VIEW2.sys_user_empl_rcd.emp_id(0x7f5c55b533a0)])
6 - output([sys_user_empl_rcd.emp_id(0x7f5c55b3f850)]), filter(nil), rowset=16
distinct([sys_user_empl_rcd.emp_id(0x7f5c55b3f850)])
7 - output([sys_user_empl_rcd.emp_id(0x7f5c55b3f850)]), filter([sys_user_empl_rcd.is_deleted(0x7f5c55b3f570) = 0(0x7f5c55b40640)]), rowset=16
access([sys_user_empl_rcd.id(0x7f5c55b3efb0)], [sys_user_empl_rcd.is_deleted(0x7f5c55b3f570)], [sys_user_empl_rcd.emp_id(0x7f5c55b3f850)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false],
range_key([sys_user_empl_rcd.department_id(0x7f5c55b3f290)], [sys_user_empl_rcd.id(0x7f5c55b3efb0)]), range(270661884558086155,MIN ; 270661884558086155,
MAX),
range_cond([sys_user_empl_rcd.department_id(0x7f5c55b3f290) = 270661884558086155(0x7f5c55b3fb30)])
8 - output([sys_user.id(0x7f5c55b276a0)], [sys_user.user_name(0x7f5c55b28500)], [sys_user.user_no(0x7f5c55b287e0)], [sys_user.phone(0x7f5c55b28ac0)]), filter([sys_user.sl_user_status(0x7f5c55b28220)
= 1(0x7f5c55b2a3c0)], [sys_user.is_deleted(0x7f5c55b27980) = 0(0x7f5c55b28da0)], [sys_user.tenant_id(0x7f5c55b27c60) = 1(0x7f5c55b298b0)], [lnnvl(cast(sys_user.department_id(0x7f5c55b27f40)
= 270661884558086155(0x7f5c55b2bd90), TINYINT(-1, 0))(0x7f5c55b2b4f0))(0x7f5c55b2ac50)]), rowset=16
access([GROUP_ID(0x7f76b4ed65e0)], [sys_user.id(0x7f5c55b276a0)], [sys_user.is_deleted(0x7f5c55b27980)], [sys_user.tenant_id(0x7f5c55b27c60)], [sys_user.department_id(0x7f5c55b27f40)],
[sys_user.sl_user_status(0x7f5c55b28220)], [sys_user.user_name(0x7f5c55b28500)], [sys_user.user_no(0x7f5c55b287e0)], [sys_user.phone(0x7f5c55b28ac0)]), partitions(p0)
is_index_back=true, is_global_index=false, filter_before_indexback[false,false,false,false],
range_key([sys_user.emp_id(0x7f5c55b273c0)], [sys_user.id(0x7f5c55b276a0)]), range(MIN ; MAX),
range_cond([:1 = sys_user.emp_id(0x7f5c55b273c0)(0x7f76b4e18b70)])
Used Hint:
-------------------------------------
/*+

USE_CONCAT
*/
Qb name trace:
-------------------------------------
stmt_id:0, stmt_type:T_EXPLAIN
stmt_id:1, SEL$1 > SEL$4D615D57 > SEL$EE16ACD1 > SEL$E341498D
stmt_id:2, SEL$2
stmt_id:3, parent:SEL$4D615D57 > SEL$4BEA09A8
stmt_id:4, parent:SEL$4BEA09A8 > SEL$EECC8274_1
stmt_id:5, parent:SEL$2 > SEL$DE41DCE6_2
stmt_id:6, parent:SEL$4BEA09A8 > SEL$EECC8274_2 > SEL$5D1A6BF3 > SEL$E5CBD714
stmt_id:7, parent:SEL$2 > SEL$DE41DCE6_3 > SEL$5D3B1B9D
stmt_id:8, parent:SEL$4D615D57 > SET$EE16ACD1 > SET$2CDEF8D5 > SET$6692F2F4
stmt_id:9, parent:SEL$5D1A6BF3 > SEL$E6DE60B0
Outline Data:
-------------------------------------
/*+
BEGIN_OUTLINE_DATA
INDEX(@"SEL$EECC8274_1" "sl_pos_authorization"."sys_user"@"SEL$1" "idx_id_ti_ss_dept_empid")
LEADING(@"SEL$E5CBD714" ("VIEW3"@"SEL$5D1A6BF3" "sl_pos_authorization"."sys_user"@"SEL$1"))
USE_NL(@"SEL$E5CBD714" "sl_pos_authorization"."sys_user"@"SEL$1")
USE_HASH_DISTINCT(@"SEL$5D3B1B9D")
INDEX(@"SEL$5D3B1B9D" "sl_pos_authorization"."sys_user_empl_rcd"@"SEL$2" "di")
INDEX(@"SEL$E5CBD714" "sl_pos_authorization"."sys_user"@"SEL$1" "idx_emp_id")
USE_DAS(@"SEL$E5CBD714" "sl_pos_authorization"."sys_user"@"SEL$1")
SIMPLIFY_SUBQUERY(@"SEL$1")
USE_CONCAT(@"SEL$4D615D57" 'sys_user.department_id = ? OR (T_OP_EXISTS, SQ(SEL$2))')
SIMPLIFY_LIMIT(@"SEL$EE16ACD1")
SIMPLIFY_SET(@"SET$EE16ACD1")
UNNEST(@"SEL$DE41DCE6_3")
SEMI_TO_INNER(@"SEL$5D1A6BF3" "VIEW2")
MERGE(@"SEL$DE41DCE6_3" < "SEL$E6DE60B0")
MERGE(@"SET$2CDEF8D5" < "SEL$E341498D")
OPTIMIZER_FEATURES_ENABLE('4.2.1.7')
END_OUTLINE_DATA
*/
Optimization Info:
-------------------------------------
sys_user:
table_rows:141263
physical_range_rows:3
logical_range_rows:3
index_back_rows:3
output_rows:3
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:0
sys_user_empl_rcd:
table_rows:37526
physical_range_rows:21
logical_range_rows:21
index_back_rows:21
output_rows:2
table_dop:1
dop_method:Table DOP
avaiable_index_name:[idx_create_time, idx_emp_id, di, sys_user_empl_rcd]
pruned_index_name:[idx_create_time]
unstable_index_name:[sys_user_empl_rcd]
stats version:1732112264337344
dynamic sampling level:0
sys_user:
table_rows:141263
physical_range_rows:1
logical_range_rows:1
index_back_rows:1
output_rows:0
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[idx_emp_id, idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name, idx_id_ti_ss_dept_empid, sys_user]
pruned_index_name:[idx_create_time, sys_user_phone_is_delete_index, idx_update_time, idx_user_no, idx_department_id, idx_login_name]
unstable_index_name:[sys_user]
stats version:1732198104553377
dynamic sampling level:1
Plan Type:
LOCAL
Note:
Degree of Parallelisim is 1 because of table property













CREATE OUTLINE fixplan_20241125 on "FC4E112D573065ACE470279DFEC004AA" using hint /*+ USE_CONCAT*/ ;







sl_pos_purchase_distribute:
select * from distribute_box_info a
where pushtype is null
and exists (select 1 from distribute_order do where do.is_deleted=0 and a.doc_no = do.tsf_no and do.mq_push_flag = 1)
order by creation_date desc limit 1000


sl_pos_goods:
select distinct
sku_code
from
gsc_product_region_property_relation
where
property_code = '30044'
and region_code = '100102'
and is_deleted = 0
and property_value_code = '1'

CREATE TABLE `gsc_product_region_property_relation` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`sku_code` varchar(100) NOT NULL COMMENT 'sku编码',
`region_code` varchar(100) NOT NULL COMMENT '营运区',
`property_code` varchar(100) NOT NULL COMMENT '属性编码',
`property_value_code` varchar(100) DEFAULT NULL COMMENT '属性值编码',
`text_value` varchar(600) DEFAULT NULL COMMENT '标签值',
`is_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除:0-否,1-是',
`create_by` varchar(20) NOT NULL COMMENT '创建人id',
`create_name` varchar(200) NOT NULL COMMENT '创建人名字',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(20) NOT NULL COMMENT '更新人id',
`update_name` varchar(200) NOT NULL COMMENT '更新人名字',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`, `region_code`),
KEY `gsc_product_region_property_relation_property_code_IDX` (`property_code`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_sku_code_region_code` (`sku_code`, `region_code`) BLOCK_SIZE 16384 LOCAL,
KEY `idx_create_time` (`create_time`) BLOCK_SIZE 16384 LOCAL,
KEY `region_property_relation_update_time_index` (`update_time`) BLOCK_SIZE 16384 LOCAL
) AUTO_INCREMENT = 2526742169 AUTO_INCREMENT_MODE = 'ORDER' DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = 'zstd_1.3.8' REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0 COMMENT = '商品区域标签'






sl_pos_goods:

SELECT id,tenant_id,goods_id,batch,supplier_id,goods_in_tax,batch_cost_price,fix_price,distribute_price,high_price,physical_warehouse,return_warehouse,distribute_order_no,batch_goods_qty,batch_source,batch_source_id,producing_batch_number_id,department_id,position_id,item_source,tsf_no,is_deleted AS deleted,create_user_id,create_time,update_user_id,update_time FROM goods_batch_info
WHERE is_deleted=0
AND (department_id = 270661859258044421
AND goods_id = 270788423486955522
AND producing_batch_number_id = 405744000484147201
AND physical_warehouse = '101'
AND position_id = 0
AND item_source = 'N')
ORDER BY create_time DESC

select a.id,a.is_deleted deleted,c.goods_id,b.goods_no,b.goods_name,c.approve_no,c.producing_area,c.specifications,b.is_ephedrine ephedrine,c.is_special_medicines special_medicines,b.rx_otc_type,b.dept_id,b.groups_id,b.class_id,b.sub_class_id,b.generic_name,
gc.group_type,c.near_term_days,b.inca_goods_id,d.department_id,c.factory_name,b.is_cold_storage coldStorage,c.medium_packaging_num,c.whole_packaging_num,c.goods_in_tax,c.dosage_forms_code,c.suggest_price,c.units,a.update_time
from gsc_product_location a
join goods b on a.sku_code = b.goods_no
join goods_expand c on b.id = c.goods_id
join sl_pos_base_system.sys_department_store d on a.location = d.long_store_no
join goods_class gc on b.groups_id = gc.id
where a.location_type = 1 and a.update_time = '2024-11-08 03:32:40' and a.id > 775081386
order by a.update_time, a.id
limit 10000



sl_pos_base_system:
SELECT b.dict_code,b.dict_msg,b.dict_type_name
FROM sys_dict_info a
JOIN sys_dict_info b ON b.dict_parent_id = a.id
WHERE a.dict_code = 'LEGAL_ATTRIBUTES_MEDICINE' AND a.is_deleted = 0 AND b.is_deleted = 0
AND b.tenant_id IN ( 0 , 1 )  

   


  

   

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论