最近考虑把订单历史数据从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
参考文档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
第三章 索引操作及性能测试索引在大数据下的重要性就不多说了下面测试中用到了mongodb的一个客户端工具Robomongo,大家可以在网上选择下载。插入 测试数据首先插入100万条测试数据for(var i=1;i<1000000;i++){ var person={Name:"jack"+i,Ag...
分类:
数据库 时间:
2014-10-21 17:40:40
阅读次数:
245
第二章 基本命令一、Mongodb命令说明:Mongodb命令是区分大小写的,使用的命名规则是驼峰命名法。 对于database和collection无需主动创建,在插入数据时,如果database和collection不存在则会自动创建。常用命令help命令通过此命令可以看到一些最基本的命令,如....
分类:
数据库 时间:
2014-10-21 16:56:55
阅读次数:
359