mongodb

10gen工程师谈MongoDB组合索引的优化

一、mongodb的基本概念
1.文档:类似于关系型数据库中的行,文档键值有序,区分类型和大小写。文档不能有重复的键。
2.集合:类似于无模式的表。
3.数据库:文件系统中的文件。 4.配置

dbpath=/home/sosop/mongodb3/db
logpath=/home/sosop/mongodb3/log/log.m
logappend=true
journal=true
storageEngine=wiredTiger
wiredTigerCacheSizeGB=2

5.shell操作
好用的help
6.当属性和集合同名: db.getCollection(“collection name”)
7.数据类型
null: {“x”: null}
bool: {“x”: true}
浮点数、字符串、对象ID、日期、正则、代码、数组、内嵌文档

sosop hou 27 February 2015
blog comments powered by Disqus