博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 12 下一页

2016年3月31日

摘要: 1、使用rownum一定要包含第一条记录,如果不包含第一条记录,则不会返回结果。因为rownum是伪列,是有结果集之后再加上的列。而且是从1开始排列的。 2、在使用rownum时,只有东order by的字段是主键时,查询结果才会先排序后再计算rownum,反之,如果排序字段不是主键,则会出现先有r 阅读全文

posted @ 2016-03-31 21:05 钟悍 阅读(550) 评论(0) 推荐(0) 编辑

2016年3月28日

摘要: 1、CPU速度与内存速度不再一个数量级上,不是每次都到主存上读取与写入变量。而是采用CPU高速缓存:程序在运行过程中,会将运算需要的数据从主存复制一份到CPU的高速缓存当中,那么CPU进行计算时就可以直接从它的高速缓存读取数据和向其中写入数据,当运算结束之后,再将高速缓存中的数据刷新到主存当中。 2 阅读全文

posted @ 2016-03-28 18:08 钟悍 阅读(239) 评论(0) 推荐(0) 编辑

摘要: DNS | LB4 4层负载均衡 tcp/udp层转发 lsv / haproxy | LB7 7层负载均衡 http层转发 haproxy / nigix | cache 缓存 | web 提供静态 | middleware 提供动态服务,也可以由缓存 | DB 数据库,也可以由缓存 | stor 阅读全文

posted @ 2016-03-28 17:18 钟悍 阅读(132) 评论(0) 推荐(0) 编辑

2016年3月9日

摘要: Architecture is like teenage sex, everybody talks about it, nobody really knows what is it. 架构师漫谈: 1、根据要解决的问题,使用一定的原则,对系统的边界进行合理的界定 2、认清楚概念是理解架构的基础 3、 阅读全文

posted @ 2016-03-09 09:33 钟悍 阅读(252) 评论(0) 推荐(0) 编辑

2016年3月2日

摘要: 索引类型: 1、普通索引 create index index_name on test_table(column_name(length)); 2、唯一索引,可以有空值 create unique index index_name on test_table(column_name(length) 阅读全文

posted @ 2016-03-02 10:26 钟悍 阅读(150) 评论(0) 推荐(0) 编辑

2016年2月28日

摘要: Jsonp: json padding 1、js中调用非同源的资源会被浏览器阻止掉; 2、非同源是指IP或者端口不同的资源URL 3、js中script标签中指定url熟悉,这种方式浏览器将不会存在非同源的限制。 4、script标签不受浏览器同源限制正是jsonp实现的基础。 总结: 1、客户端需 阅读全文

posted @ 2016-02-28 15:12 钟悍 阅读(163) 评论(0) 推荐(0) 编辑

2015年12月1日

摘要: When two or more threads are waiting for each other to release lock and get stuck for infinite time, situation is called deadlock . It will only happe... 阅读全文

posted @ 2015-12-01 16:03 钟悍 阅读(158) 评论(0) 推荐(0) 编辑

摘要: package com.karl.example;import java.util.concurrent.CountDownLatch;/** * Created by karl. */public class CountDownLatchExample { public static cla... 阅读全文

posted @ 2015-12-01 13:57 钟悍 阅读(162) 评论(0) 推荐(0) 编辑

摘要: package com.karl.concurrent.utils;import java.util.concurrent.BrokenBarrierException;import java.util.concurrent.CyclicBarrier;/** * Created by karl. ... 阅读全文

posted @ 2015-12-01 13:37 钟悍 阅读(199) 评论(0) 推荐(0) 编辑

2015年11月3日

摘要: public class ForwardProxyController extends AbstractController { private String sourceContextPath; private String targetContextHostUrl; @Over... 阅读全文

posted @ 2015-11-03 11:53 钟悍 阅读(1714) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 12 下一页