2014-09-25 BaoXinjian一、摘要客户端Arraysize的设置实际上可以理解为设置数组的大小来保存sql调用的返回值。设置适当的arraysize有几个好处:1.减少读data block的次数,也就是consistent gets的次数。假设一个block有n行,如果每次取一行,...
分类:
数据库 时间:
2014-09-25 17:25:07
阅读次数:
321
80年代中国人结婚四大件:手表、自行车、缝纫机、收音机(三转一响)。要把事务娶回家需要四大件,所以事务很刻薄(ACID),四大件清单:原子性(Atom)、一致性(Consistent)、隔离性(Isolate)、持久性(Durable)。ACID就是数据库事务正确执行的四个基本要素的缩写。原子性:要...
分类:
数据库 时间:
2014-09-24 19:18:37
阅读次数:
355
参考资料:Learning Globally-Consistent Local Distance Functions for Shape-Based Image Retrieval and Classification,Andrea Frome etc.昨晚总结完就睡着了,今天不知道为什么手欠给拉到...
分类:
其他好文 时间:
2014-09-24 01:30:35
阅读次数:
278
UNDO三大作用1.一致性读(consistent read)2.事务回滚(Rollback Transaction)3.实例恢复(Instance Recovery)一致性读当会话发出一条SQL查询,将当前时间的SCN号记录下来,当进程扫描到表T的数据块,再与该块头部的ITL槽(事务槽)的SCN号...
分类:
其他好文 时间:
2014-09-04 16:43:09
阅读次数:
293
摘要本文将会从实际应用场景出发,介绍一致性哈希算法(Consistent Hashing)及其在分布式系统中的应用。首先本文会描述一个在日常开发中经常会遇到的问题场景,借此介绍一致性哈希算法以及这个算法如何解决此问题;接下来会对这个算法进行相对详细的描述,并讨论一些如虚拟节点等与此算法应用相关的话题...
分类:
其他好文 时间:
2014-09-02 00:18:33
阅读次数:
225
一朋友使用autotrace查看数据库执行计划发现结果如下,Statistics中很多信息为0,这个肯定是不正常现象,什么都可以为0,consistent gets也不可能为0.SQL> set autot onSQL> select count(*) from RACV_DATA.PARTY_DU...
分类:
其他好文 时间:
2014-09-01 19:25:13
阅读次数:
204
5 life lessons you will learn the hard way1.It takes consistent time and effort to be an expert in any area.无论想成为哪个领域的专家,都需要持之以恒地付出时间和努力。This is the f...
分类:
其他好文 时间:
2014-08-26 11:29:55
阅读次数:
255
5 life lessons you will learn the hard way1.It takes consistent time and effort to be an expert in any area.无论想成为哪个领域的专家,都需要持之以恒地付出时间和努力。This is the f...
分类:
其他好文 时间:
2014-08-26 09:44:45
阅读次数:
346
一个简单的consistent hashing的样例,非常easy理解。首先有一个设备类,定义了机器名和ip:public class Cache{ public String name; public String ipAddress;}然后是基本的实现:public class Shard { ...
分类:
其他好文 时间:
2014-08-22 16:03:18
阅读次数:
291
Here is a class for binary trees that directly implements the recursive definition. By extending the AbstractCollectionclass, it remains consistent with the Java Collections Framework....
分类:
其他好文 时间:
2014-08-20 00:04:26
阅读次数:
307