mongodb
db.serverStatus().connections 查看当前连接数
sudo lsof -i -n -P | grep TCP | grep mongo 具体连接进程
深入理解连接池:
http://blog.mlab.com/2013/11/deep-dive-into-connection-pooling/
mongdb存储图片:
http://*.com/questions/11915770/saving-picture-to-mongodb
# 类似于sql中的in或者or操作 mulites field query: db.cool.find({$or:[{field1:’val’},{‘field2’:’val’}…]})
# 类似于sql中的like操作 db.coo.find(‘name’: /m/) == sql like pymongo 使用 {‘field’:{$regex: keyword}} http://*.com/questions/3305561/how-do-i-query-mongodb-with-like?rq=1
db.serverStatus().connections 查看当前连接数
sudo lsof -i -n -P | grep TCP | grep mongo 具体连接进程
深入理解连接池:
http://blog.mlab.com/2013/11/deep-dive-into-connection-pooling/
mongdb存储图片:
http://*.com/questions/11915770/saving-picture-to-mongodb