被查询的表有数十亿条记录,并且选择查询的 where 子句基于非索引列。因此,普通的选择查询会进行全表扫描,因此需要更多时间。我正在尝试使用并行功能来查看它是否有助于缩短时间。但是想知道,如果并行对使用非索引列上的 where 子句的单个表上的 Select 查询真的有帮助吗?
例子 :
Select /*parallel(customer_data,4)*/ customer_id,name from customer_data where time_create >= :<min_time> AND customer_status='P'