最近考虑把订单历史数据从Oracle数据库迁移到Nosql数据库做历史数据查询和分析,一天千万级数据,打算使用mongodb数据库,使用nodejs做查询和统计API,对并发请求量要求低,不知道有没有前辈这样玩过,我们现在只用mongodo存储日志数据,做应用故障分析用。如果有前辈做个类似的历史库查询和数据分析,可以交流下,你们选择的Nosql库和上层开发语言。
1.mongod...
分类:
数据库 时间:
2014-10-22 10:06:19
阅读次数:
231
In mongoDB, there are two general way to connect with two tables. Manual Connection and use DBRef
1. Basically manual connection
Firstly init the data which was saved in the different collections....
分类:
数据库 时间:
2014-10-22 06:28:15
阅读次数:
197
In the past four blogs, we attached importance to the index, including description and comparison with usage of index. Now in this blog, we will mainly focus on the basic operation of index. such quer...
分类:
数据库 时间:
2014-10-22 01:05:29
阅读次数:
270
介绍安装的文档很多,可以参考这篇: http://www.mkyong.com/mongodb/how-to-install-mongodb-on-mac-os-x/安装完后你可能会碰到的2个问题。1.让mongod在后台运行启动mongo的命令mongod有一个参数--fork可以使mongo在后...
分类:
数据库 时间:
2014-10-21 23:11:38
阅读次数:
238
杀掉多个进程 ps -ef | grep tornado_service | grep -v grep | cut -c 9-15 | xargs kill -s 9 清空内存缓存 echo 3 > /proc/sys/vm/drop_caches 查找大文件或目录 du -s * | sort -...
分类:
系统相关 时间:
2014-10-21 21:05:20
阅读次数:
224
参考文档http://api.mongodb.org/python/current/tutorial.html?_ga=1.58141740.722641156.1410499072
分类:
数据库 时间:
2014-10-21 19:54:10
阅读次数:
163
随着web2.0的时代到来,关系型数据库在越来越多的场景下暴漏出许多问题,为了解决这类问题,NoSql数据库应用而生,今天就来说说当下比较主流的NoSql数据库mongodb。 1. 基本数据类型 mongodb类似于json,在概念上javaScript类似。json是数据的一种简单表示方法,.....
分类:
数据库 时间:
2014-10-21 19:15:06
阅读次数:
160
package com.x.mongodb;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bson.types.ObjectId;
import com.m...
分类:
数据库 时间:
2014-10-21 17:57:57
阅读次数:
250