回复 12# leo 王大师您好,非常感谢一直的跟进
按照您的建议,在测试环境重建了当前测试环境,目前Q2(rm_license),Q3(rm_license_apply)索引信息如下:
tab unqiue columns
-------------------- ---------- --------------------------------------------------
RM_LICENSE P +LICENSE_CODE+REGIE_ID
RM_LICENSE D +CUST_ID+LICENSE_CODE
-------------------- ---------- --------------------------------------------------
RM_LICENSE_APPLY D +REGIE_ID
RM_LICENSE_APPLY P +APPLY_ID
RM_LICENSE_APPLY D +CUST_ID+LICENSE_CODE
$ db2 "runstats on table db2instt.rm_license_apply on all columns with distribution on all columns and sampled detailed indexes all "
$ db2 "runstats on table db2instt.rm_license on all columns with distribution on all columns and sampled detailed indexes all "
访问计划还是一样