上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 57 下一页
摘要: // JavaScript source code db.runCommand({ mapreduce: "page", map: function Map() { emit( this.title, // how to group { name: this.name } // associated da... 阅读全文
posted @ 2017-02-16 10:56 iDEAAM 阅读(311) 评论(0) 推荐(0) 编辑
摘要: input { file { path => "c:\aa.json" start_position => "beginning" #sincedb_path => "NUL" codec => json { charset => "UTF-8" } ... 阅读全文
posted @ 2017-02-16 10:50 iDEAAM 阅读(653) 评论(0) 推荐(0) 编辑
摘要: GET usertag/usertag/_search { "query": { "match": { "tagname": "春节" } }, "size": 0, "aggs": { "myname1": { "terms": { "... 阅读全文
posted @ 2017-02-10 18:32 iDEAAM 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 其中 /fieldFile d:\\fieldFile.txt 是要导出的字段。 fieldFile.txt的内容如下: 阅读全文
posted @ 2017-01-18 16:53 iDEAAM 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: 1. 登陆mysql 2. use testdb 3. 执行导入语句 出现乱码的解决办法: 阅读全文
posted @ 2017-01-17 20:09 iDEAAM 阅读(4540) 评论(0) 推荐(0) 编辑
摘要: 在Heyzap 和 Bugsnag 我已经使用MongoDB超过一年了,我发现它是一个非常强大的数据库。和其他的数据库一样,它有一些缺陷,但是这里有一些东西我希望有人可以早一点告诉我的。 即使建立索引选择性计数还是很缓慢 举个例子,当对用户feed进行分页时,你可能会看到类似的东西, 在MongoD 阅读全文
posted @ 2017-01-17 14:46 iDEAAM 阅读(1603) 评论(0) 推荐(0) 编辑
摘要: 错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的 阅读全文
posted @ 2017-01-15 15:24 iDEAAM 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 索引类型 虽然MongoDB的索引在存储结构上都是一样的,但是根据不同的应用层需求,还是分成了唯一索引(unique)、稀疏索引(sparse)、多值索引(multikey)等几种类型。 唯一索引 唯一索引在创建时加上unique:true 的选项即可,创建命令如下: 上面的唯一索引创建后,如果in 阅读全文
posted @ 2017-01-13 16:52 iDEAAM 阅读(172) 评论(0) 推荐(0) 编辑
摘要: db.User.find().forEach( function(item){ db.User.update({"_id":item._id},{"$set":{"LastUpdate":item.CreateAt}},false,true) } ) 阅读全文
posted @ 2017-01-11 14:45 iDEAAM 阅读(7893) 评论(0) 推荐(0) 编辑
摘要: 增加一个 Thread.Sleep(10);即可解决。 以后遇到无线循环的时候,需要加Sleep 阅读全文
posted @ 2017-01-09 17:22 iDEAAM 阅读(3511) 评论(1) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 57 下一页