Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on MongoDB

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

{"\(and": [{"tags": {"\)regex": "idea"}}, {"tags": {"$regex": "idea"}}]}

{"\(and": [{"tags": {"\)regex": "idea"}}, {"tags": {"$regex": "mob"}}]}

mongoimport -d notes -c note notes.json

mongodb: dbpath, centos: /data/db by default

Comments