一个存储过程还有速度的问题,高手请进。
我的存储过程功能,从表sheet1取出符合条件的记录(加的条件太多了吗?)如下:
select * into #aaa from sheet1$ where 被访问网站 like '%chat%' or 被访问网站 like '%sex%' or 被访问网站 like '%game%' or 被访问网站 like '%women%' or 被访问网站 like '%club%' or 被访问网站 like '%job%' or 被访问网站 like '%chinahr%' or 被访问网站 like '%book%' or 被访问网站 like '%love%' or 被访问网站 like '%xxx%' or 被访问网站 like '%pic%' or 详细目录 like '%xxx%' or 详细目录 like '%pic%' order by ip地址,被访问网站,时间
select * into #bbb from #aaa a where (select count(*) from log where 被访问网站 = a.被访问网站 and ip地址=a.ip地址) > 15
drop table #aaa
select * from #bbb order by ip地址,被访问网站
现在表中只有6万条数据,就超时了,asp的超时时间设置是999秒,数据库的连接超时也改过(挺大的,多少忘记了),到底什么原因呢?内网白兆网卡,win2000 server加sql2000。