加载中
mongodb 中 获取指定数据库中所有collection(表)的记录数,表的大小

lists = db.getCollectionNames(); for(i in lists){print(lists[i]+" --- "+db[lists[i]].stats().count+" ... "+db[lists[i]].stats().size)}...

2015/04/15 22:41
357
redis notes

brew install redis redis-server select 0/1/2/3 set name 'name' set user:1 'name' string set get append keyname appendvalue getrange keyname rangestart rangeend setrange keyname ...

2015/09/03 23:37
119
vim 快捷键

nnoremap ca :execute 'normal! ggVG"*yG' nnoremap cp :execute 'normal! "*pG' nnoremap ev :vsplit $MYVIMRC nnoremap sv :source $MYVIMRC...

2015/05/21 22:40
167
git提交时使用唐词,宋词或者中文谚语做注释

需要用到一个叫fortune的命令行工具,介绍以及安装步骤参见: http://www.ruanyifeng.com/blog/2015/04/fortune.html 安装完毕以后,根据你使用的shell类型找到相关的配置文件(我用的是zsh,所...

2015/04/27 01:48
129
mongo 正则取反

db.LOG_ACCESS.find({HTTP_USER_AGENT:{$not:/(android|ios|mozilla|apache)/i}},{HTTP_USER_AGENT:1})...

2015/04/22 22:25
61
mongo 创建全文索引

db.collection.ensureIndex({index-key:"text"}) //text表明是全文索引

2015/04/22 22:23
6
Introduction to MongoDB

Introduction to MongoDB The Big Picture MongoDB != RDBMS Setting up the server Manipulating data Indexing Miscellaneous MongoDB != RDBMS Impedance Mismatch Scalability - MongoDB...

2014/07/01 02:21
24
Understanding NoSQL

Understanding NoSQL 1.What is NoSQL Agenda Common Traits(特点) Consistency Indexing Queries MapReduce Sharding NoSQL Common Traits Non-relational Non-schematized/schema-free Ev...

2014/06/29 13:17
10
NoSQL Big Picture

Cloud Microsoft Azure Tables Hadoop on Azure/HBase Amazon SimpleDB DynamoDB Elastic MapReduce DB-specific NoSQL Hoster E.g,MongoHQ for MongoDB CouchDB Cloudant DIY on infrastruc...

2014/06/28 21:39
23
nettuts mongo

install on mac brew install mongodb sudo chown `id -u` /data/db sudo mongod tools mongo MongoDB client as a javascript shell mongoimport importing JSON,CSV,or TSV data mongoimpo...

2014/06/27 01:43
14
### LinuxCBT Basic Security Edition ###

### LinuxCBT Basic Security Edition ### BIOS 1.Disable all unnecessary boot media 2.set a setup password 3.set a system password front besel chassis information DELL PowerEdge 2...

2014/05/18 23:13
90
### LinuxCBT Key Files Edition ###

### LinuxCBT Key Files Edition ### Features: 1.Key files && directories that are present across-the-board on Linux systems 2.Pertains to security due to sensitive nature of file...

2014/05/06 23:25
121
Lua note

Where Lua is Used Apache HTTP Server MysqlWorkbench Redis VLC Media Player Wireshark Lots and lots of games! Types 8 basic types nil boolean number string [[ this is a multi lin...

2014/05/03 23:01
14
### Linuxcbt PostgreSQL Edition ###

### Linuxcbt PostgreSQL Edition ### Features: 1.Object-relational Database Management System(ORDBMS) a.Objects cna be related in a hierarchy:parent-Child 2.Transactional RDBMS: ...

2014/04/24 00:07
134
### LinuxCBT VBOX Edition ###

### LinuxCBT VBOX Edition ### Features: 1.Tier-2 Hypervisor(虚拟层) a.runs on existing OS instead of Tier-1(VMware ESXI) - which runs on bare-metal 2.Container (Hypervisor) for ...

2014/04/15 00:01
73

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部