Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1475|回复: 1
打印 上一主题 下一主题

Wild Duck database MongoDB

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
跳转到指定楼层
楼主
发表于 2017-12-8 11:25:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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

回复

使用道具 举报

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
沙发
 楼主| 发表于 2017-12-12 10:30:55 | 只看该作者
本帖最后由 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()
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-5-3 03:01 , Processed in 0.056692 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表