firemail

标题: Wild Duck database MongoDB [打印本页]

作者: java    时间: 2017-12-8 11:25
标题: Wild Duck database MongoDB
本帖最后由 java 于 2017-12-28 16:52 编辑

Wild Duck uses a distributed(分布式) database (sharded + replicated MongoDB) as a backend for storing all data, including emails.




数据库表初始化文件
/indexes.yaml

collections  3个
indexes 58个



Whenever a message is received Wild Duck parses it into a tree-like structure based on the MIME tree and stores this tree to MongoDB. Attachments are removed from the tree and stored separately in GridStore.


# Optional database name or connection url for GridFS if you do not want to
# use the main db for storing attachments. Useful if you want
# to use a different mount folder or storage engine
#gridfs="wildduck"
http://mongodb.github.io/node-mo ... ated/gridstore.html
http://www.runoob.com/mongodb/mongodb-gridfs.html


作者: java    时间: 2017-12-12 10:30
本帖最后由 java 于 2017-12-28 16:48 编辑

mongo -host 192.168.134.106 -port 27017

mongo
show dbs;
use wildduck
show collections
db.users.find();
db.users.remove({"username" : "hcj"})

db.messages.remove({"_id" : new ObjectId("5a2f49931f30c11d71052f89")});

db.messages.count()




欢迎光临 firemail (http://www.firemail.wang:8088/) Powered by Discuz! X3