我在表格中有6列。一列是BLOB列。如果我在select中使用BLOB列,则我的查询不使用索引。
select *
from ACT_GE_BYTEARRAY
where DEPLOYMENT_ID_ =1234
order by NAME_ asc
你能帮忙吗?
如果不使用在BLOB列上创建域索引的Oracle Text概念,有没有办法改进?
这是查询的计划:
SELECT STATEMENT ALL_ROWSCost: 564 Bytes: 57,247 Cardinality: 23
2 SORT ORDER BY Cost: 564 Bytes: 57,247 Cardinality: 23
1 TABLE ACCESS FULL TABLE ACTIVITI.ACT_GE_BYTEARRAY_TEST Cost: 563 Bytes: 57,247 Cardinality: 23
是deplyment_id_有索引。
SELECT STATEMENT ALL_ROWSCost: 242 Bytes: 595 Cardinality: 5
3 SORT ORDER BY Cost: 242 Bytes: 595 Cardinality: 5
2 TABLE ACCESS BY INDEX ROWID TABLE ACTIVITI.ACT_GE_BYTEARRAY Cost: 241 Bytes: 595 Cardinality: 5
1 INDEX FULL SCAN INDEX ACTIVITI.IDX_COMP_ACGEBYTEARAY Cost: 223 Cardinality: 58