1 # include 2 # include 3 4 using namespace std; 5 6 # define MAX 100004 7 # define lid id mid ) 68 update(rid,l,r,val); 69 else...
分类:
其他好文 时间:
2015-08-06 00:05:50
阅读次数:
190
after work for almost two years, I have realize the truth notes can help a lot for us. avoiding my lazy life, I decide to sign something important up....
分类:
其他好文 时间:
2015-08-02 23:16:17
阅读次数:
111
方法就是设置lazy=true 其实整个项目在接手时已经搭建好框架,数据库采用的是MySQL。客户运行了一年多时间,速度越来越慢。加上最近新开发的功能,速度已经不能让人接受。 先解决了MySQL远程访问速度问题,效果有...
分类:
Web程序 时间:
2015-08-02 18:33:52
阅读次数:
264
为什么需要延迟加载? 因为会提高效率嘛,存在即合理,哈哈.一般设置延迟加载就是在对象关系映射上(在多的一方).如下图: 一个用户有多个消费纪录。 设置成lazy后,查询数据的时候只会取出消费记录(多的一方),不会查询...
分类:
Web程序 时间:
2015-07-31 18:47:46
阅读次数:
145
Pizza CuttingWhen someone calls Ivan lazy, he claims that it is his intelligence that helps him to be so. If hisintelligence allows him ...
分类:
其他好文 时间:
2015-07-31 17:50:39
阅读次数:
113
Hibernate中的字段映射中的Fetch有两种方式:EAGER和LAZYEager:全部抓取Lazy:延迟抓取如果在字段中声明为Eager,那么在取得当前Bean时,同时会抓取Bean中的关联Bean值。即数据库查询多次。反之Lazy则在之后抓取提交查询。比如,有如下声明为Eager的User ...
分类:
Web程序 时间:
2015-07-31 12:22:59
阅读次数:
175
1.下载quartz-all-1.7.3.jar包 a.在Spring配置和Quartz集成内容时,有两点需要注意 b.在中不能够设置default-lazy-init="true",否则定时任务不触发,如果不明确指明default-lazy-init的值,默认是false。 c.在中不能够设置de...
分类:
编程语言 时间:
2015-07-30 18:26:40
阅读次数:
155
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1698
好吧,这个题目我起初想试试我不用延迟更新能不能过,嘿嘿,我还是太天真了。。。2000ms毫不客气的超时了,果然延迟更新大法好;这里我就不再详细的介绍延迟更新了,不懂的可以看我前面的博文:http://blog.csdn.net/wlxsq/article/details/46910485
#...
分类:
其他好文 时间:
2015-07-30 09:34:20
阅读次数:
191
因为最后要求的是区间和,所以其实color不用存下来,这里将color当做lazy标记:color为-1表示已经pushdown或为初始状态;color为1、2、3时表示区间为相应颜色。 1 #include 2 #include 3 #include 4 using namespace st...
分类:
其他好文 时间:
2015-07-29 15:38:36
阅读次数:
97
lazy 懒加载 默认为proxy 继承映射 discriminant column="type" type="string" 集合映射 生成表的语句: public class DbCreate { public static void main(String[] args) { ...
分类:
Web程序 时间:
2015-07-28 10:26:54
阅读次数:
104