上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 注:java spring data redis内置了几种redis序列化机制。JdkSerializationRedisSerializer最高效。有关序列化更详细的介绍-http://www.myexception.cn/software-architecture-design/1299607. 阅读全文
posted @ 2016-11-21 20:45 無限大 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 参考http://jinnianshilongnian.iteye.com/blog/2312284。 关于系统的拆分 系统维度:功能/业务拆分。 购物车,结算等。 功能维度:功能维度还能继续拆分。 读写维度:读比较多,可以考虑全量缓存。写太多,需要考虑分库分表。一些比较复杂的页面,例如首页,详情页 阅读全文
posted @ 2016-11-20 20:36 無限大 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 原因:mongodb每一个文档默认只有16M。聚合的结果是一个BSON文档,当超过16M大小时,就会报内存不够错误。 exceeded memory limit for $group.but didn't allow external sort. 可以采用打开使用磁盘来解决大小问题。例如 db.fl 阅读全文
posted @ 2016-11-04 16:06 無限大 阅读(6137) 评论(1) 推荐(2) 编辑
摘要: 在包含url的test库中运行test.js mongo url:port/test test.js 阅读全文
posted @ 2016-11-03 11:09 無限大 阅读(517) 评论(0) 推荐(0) 编辑
摘要: iphone同步铃声 1.下载itunes 2.打开itunes。文件-》将文件添加到资料库。。。选择一首歌曲加进去 3.右击新加的歌曲,显示简介-》选项。调整结束开始时间。不得超过40秒。不然后面无法加入手机铃声。 4.选择歌曲,文件-》转化-》创建aac。创建该歌曲的m4a文件,将此后缀改为m4 阅读全文
posted @ 2016-11-01 00:12 無限大 阅读(213) 评论(0) 推荐(0) 编辑
摘要: set global time_zone = '+2:00'; ##修改mysql全局时区 set time_zone = '+2:00'; ##修改当前会话时区 flush privileges; #立即生效 -- select now(); 阅读全文
posted @ 2016-10-28 10:19 無限大 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: 模式匹配 as模式 guard bmiTell weight height | weight / height ^ 2 <= 18.5 = "you are thin." | weight / height ^ 2 <= 25 = "you are nomal." | weight / height 阅读全文
posted @ 2016-10-20 15:58 無限大 阅读(139) 评论(0) 推荐(0) 编辑
摘要: haskell platform下载:https://www.haskell.org/platform/ 进入haskell控制台,终端输入 编译文件 数组操作 集合 元祖tuple 型别 阅读全文
posted @ 2016-10-19 14:27 無限大 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 先安装python pip。一种python包管理工具。 下面这篇文章讲的很详细。亲测可行。 https://ruter.github.io/2015/12/03/Update-python/ github的mtool安装方法 https://github.com/rueckstiess/mtool 阅读全文
posted @ 2016-10-08 13:44 無限大 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: benchrun mongostat mongo bin中自带的一个工具。 db.serverStatus() mongo推荐使用xfs文件系统会对性能有很大提升。(ext4自带loc,并发性能会下降。有时候会导致系统时快时慢) mongo最好能够有独立硬盘。 阅读全文
posted @ 2016-09-23 09:21 無限大 阅读(506) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页