1、region热点:
开始会不断往一个region写,可以预划分region
在rowkey加哈希前缀 对region server数量取余
2、memstore提高写性能,blockcache提高读性能,看需求调整
3、使用bloomfilter,如果大多是scan顺序读,可将block设大些,默认块大小是64K,可以设为128
4、设计好rowkey
5、关闭major comp...
分类:
其他好文 时间:
2014-08-28 16:58:40
阅读次数:
176
Given a 2D board containing 'X' and 'O',
capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's
in that surrounded region.
For example,
X X X X
X O O X...
分类:
其他好文 时间:
2014-08-28 14:55:59
阅读次数:
209
导出试卷到WORD#region 创建word试卷(直接导出为word) /// /// 创建word试卷 /// /// public void CreateWordFile(string PathName) ...
分类:
其他好文 时间:
2014-08-27 21:56:18
阅读次数:
343
文章出自:http://www.oschina.net/code/snippet_1242747_23565#region DataTable 转换为Json字符串实例方法/// /// GetClassTypeJosn 的摘要说明/// public class GetClassTypeJosn ...
分类:
Web程序 时间:
2014-08-27 18:18:58
阅读次数:
177
#region 根据当前登录域账号 获取AD用户姓名和所在OU目录 /// /// 根据当前登录域账号 获取AD用户姓名和所在OU目录 返回域用户是否存在 /// /// 要搜索的当前用户名 /// out返回该用户所...
分类:
其他好文 时间:
2014-08-27 14:41:48
阅读次数:
422
public static void SearchResult(DataGrid dg,string condition) { #region string code = string.Empty; Da...
分类:
其他好文 时间:
2014-08-26 16:51:26
阅读次数:
377
1.修改密码不用建立模型,直接在UserControl.cs添加 ChangeInfo():#region 修改用户资料 [UserAuthorize] public ActionResult ChangeInfo() { userRs...
分类:
Web程序 时间:
2014-08-26 01:47:15
阅读次数:
461
事务具有原子性,要么不运行,要么全运行,一旦成功运行永久保存.而这些正是因为事务的原子性和对数据库的持久性形成的.下面是一个关于统一给数据库中的数据改动的批量操作,利用到事务.TODO:批量改动数据库中的数据CODE:#region ExtensionMethod /// ...
分类:
数据库 时间:
2014-08-25 14:45:34
阅读次数:
245
#region linq的标准查询运算符(即lambda方式) 注:C#不支持标准查询运算符中带有整形参数(索引)的重载 // 1、标准查询运算符之筛选方法——where //IQueryable stu1=db.Student.Where(s => s.Ssex == "男"); //GridV....
分类:
其他好文 时间:
2014-08-24 23:38:53
阅读次数:
436
LeetCode: Surrounded RegionsGiven a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's i...
分类:
其他好文 时间:
2014-08-24 20:41:13
阅读次数:
222