大型网站瓶颈及解决方案
摘要:大型网站面临的问题:海量数据处理大型网站每天的数据量可能上百万,甚至上千万或更多。如果存在设计不好的多对多关系,在前期可能没有任何问题,但是随着用户增长,数据量会以几何级数增加。此时,对于一个表的select和update(还不用说多表联合查询)的成本是非常高的。数据并发处理死锁在高并发情况下存在的...
阅读全文
posted @
2015-06-17 17:49
linbl
阅读(731)
推荐(0)
游标-遍历-查询-1
摘要:declare --类型定义 strsql string(500); type prizeinfo is record( prizecode VARCHAR2(200), prizetypeid number, prizenam...
阅读全文
posted @
2015-06-11 13:33
linbl
阅读(357)
推荐(0)
oracle 游标循环, 查询,异常捕获,继续执行
摘要:declare --类型定义 strsql string(500); v_ErrorCode NUMBER; -- Variable to hold the error message code v_ErrorText VARCHAR2(200); -- Variable to hold the ...
阅读全文
posted @
2015-06-10 12:56
linbl
阅读(927)
推荐(0)
oracle 循环插入
摘要:declareforInt number(18);seqnum number(18);begin for forInt in 1..20000 loop select seq_forum.nextval into seqnum from dual; insert into frm_answer (...
阅读全文
posted @
2015-06-10 11:24
linbl
阅读(392)
推荐(0)
oracle 游标循环中 捕获异常 继续执行
摘要:declare --类型定义 cursor c_eventstate is Select CampaignId,phonenumber,PolicyNumber from mkt_eventstate a where synstate =0 and packagestate = 2 and err...
阅读全文
posted @
2015-06-10 11:20
linbl
阅读(2366)
推荐(0)