随笔分类 - DataBase or Database technology(数据库、数据库技术)
摘要:查询mongoDB集合数据更新,数据有400w多。我一次用cursor(游标)取1w,处理更新。程序在某段时间运行中遍历游标时发生异常!DBCursor cursor = tabColl.find(queryObj).skip(startRow).limit(pageSize);完整异常信息:com...
阅读全文
posted @ 2014-11-07 11:19
程序员斯文
摘要:http://blog.haohtml.com/archives/10678MongoDB ObjectId的优化
阅读全文
posted @ 2014-11-07 11:19
程序员斯文
摘要:http://heipark.iteye.com/blog/1167948http://rjhym.iteye.com/blog/1224200http://blog.163.com/lgh_2002/blog/static/440175262012052116455/http://www.osch...
阅读全文
posted @ 2014-11-07 11:17
程序员斯文
摘要:网易blog -MongoDB GUI客户端工具大全oschina -MonjaDB 1.0.2 发布,MongoDB 的 GUI 客户端oschina创建人红薯对MonjaDB官方文档的中文翻译实践结果:不怕麻烦的话可以安装RockMongo,这个用起来爽点,就是需要搭建好apache、php环境...
阅读全文
posted @ 2014-11-07 11:16
程序员斯文
摘要:http://tuozixuan.iteye.com/blog/1321994实战代码:#mongo导出mongoexport --port 33001 -d bsdf_soe -c weibo -f '_id' -o 33001.bbs.ids#替换,将导出的文件内容替换成一个插入sql语句sed...
阅读全文
posted @ 2014-11-07 11:14
程序员斯文
摘要:http://blog.csdn.net/drifterj/article/details/7833883
阅读全文
posted @ 2014-11-07 11:13
程序员斯文
摘要:http://stackoverflow.com/questions/3338999/get-id-of-last-inserted-document-in-a-mongodb-w-java-drivermongoDB api就可以实现,请仔细查看集合insert方法的源代码a.文档插入后可以获取到...
阅读全文
posted @ 2014-11-07 11:11
程序员斯文
摘要:http://hancang2000.i.sohu.com/blog/view/235140698.htm$mod取模运算查询age取模10等于0的数据db.student.find( { age: { $mod : [ 10 , 1 ] } } )举例如下:C1表的数据如下:> db.c1.fin...
阅读全文
posted @ 2014-11-07 11:10
程序员斯文
摘要:#count collectiondb.news.count({"lpublishtime":{"$gte":1358697600000}});#mongo导出mongoexport -h 192.168.1.175 --port 33000 -d booaa_so -c weibo -f '_i...
阅读全文
posted @ 2014-11-07 11:07
程序员斯文
浙公网安备 33010602011771号