“ System.Data.SqlClient.SqlException ”类型的未经处理的异常在System.Data.dll中发生。其他信息:将截断字符串或二进制数据...
分类:
数据库 时间:
2014-06-22 19:03:00
阅读次数:
239
According to the order of data structure book, Arrays should be introduced in the frist time. When reviewing the some information related to arrays, I feel shocked that many useful classes and methods...
分类:
编程语言 时间:
2014-06-22 18:13:18
阅读次数:
316
在编写SQL语句时,如果要实现一张表有而另外一张表没有的数据时, 通常第一直觉的写法是:
select * from table1 where table1.id not in(select id from table2)
这种写法虽然看起来很直观,但是执行的效率会非常低下,在数据量很大的时候效果尤其明显,我们推荐使用not exists或左连接来代替。
select a.* from ta...
分类:
数据库 时间:
2014-06-22 16:36:50
阅读次数:
244
备份与恢复数据对于管理任何数据存储系统来说都是非常重要的。1、冷备份与恢复——创建数据文件的副本(前提是要停止MongoDB服务器),也就是直接copyMongoDB将所有数据都存储在数据目录下,默认是/data/db/(Windows下是C:\data\db\),启动MongoDB时也可以用--d...
分类:
数据库 时间:
2014-06-22 13:44:12
阅读次数:
220
There are two types of Standby databases:
1, Physical standby database
block-for-block basis
the physically identical with the primary database
user recovery technology
2, Logical standby databa...
分类:
其他好文 时间:
2014-06-22 08:35:53
阅读次数:
355
题目:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find...
分类:
其他好文 时间:
2014-06-22 08:30:24
阅读次数:
236
在此发现一个oracle漏动,eg:
DELETE JEW_LOG WHERE C_ID IN (SELECT C_ID FROM BAS_BATCHNO WHERE C_WARID='028' AND C_BATCHNOTYPE='P')
在这个DELETE 语句中子查询是报错的因为没有C_ID这个字段、所以JEW_LOG这张表就糟殃了数据98292条记录直接被删除、幸亏一直以来养成的好...
分类:
其他好文 时间:
2014-06-22 07:56:10
阅读次数:
400
周四,Facebook Engineering blog 发表了一篇名为《Improving Facebook on Android》博文。博文从四个方面(Performance,Data Efficiency,
Networking,Application Size)讲述了Facebook是如何优化app保证其在不同国家不同类型Android设备上都能表现出良好性能的。由于原文内容比较
容易理解,这里就直接给出原文,以使上边链接打不开的同学也能看到。《菜鸟成长史:http://blog.csdn.net/...
分类:
移动开发 时间:
2014-06-22 06:59:15
阅读次数:
232
nginx使用了间接回调机制,结合upstream机制的使用来说明一下,首先明确几个事实:
1)其实ngxin和下游客户端的连接使用的是ngx_http_connection_t,每个连接对应着一个读事件、一个写事件,epoll监听队列监听的是事件(ngx_event_t),但是事件的data字段对应于这个事件所属的连接(ngx-connection_t)。但是nginx和上游服务器之间的连接使...
分类:
其他好文 时间:
2014-06-22 06:25:18
阅读次数:
206
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215