oracle 索引问题!求解!求帮助!!
table1(id,type,info) id字段:是guid 字符串 type字段:字符串类型 如 '010000' info字段: varchar2(2000)
aaaaq 010000 阿萨德212饿阿萨德asd。。。。。
bbbas 030000 阿斯发达省份adf23。。。。
table2(id,name)id字段:是guid 字符串 name字段:varchar2(100)
aaaaq 阿斯达岁的
bbbas 阿萨德
每个表的数据在400万以上
问题 1
select * from table1 where type='010000' and info like '%阿斯%' 这个查询执行很慢
我找资料说用全文索引 然后
select * from table1 where contains(info, '阿斯')>0 很快 但加上 and type='010000' 速度又慢了
我给 type加个索引 还是很慢 请问怎么办??
问题2
select t.type,d.name FROM table1 t,table2 d where t.id=d.id and contains(t.info ,'人民')>0
这样连接查询超级慢
怎么办?
求助。。。。求大家给点解决办法 小弟在此谢过了。