开发者

Email cache database design

开发者 https://www.devze.com 2023-01-22 04:36 出处:网络
Can you advice how to store email MessagePart hierarchy into database (SQLite)? Parts can be of开发者_运维知识库 different MIME type (text, image, etc). Also they can be multipart.

Can you advice how to store email MessagePart hierarchy into database (SQLite)?

Parts can be of开发者_运维知识库 different MIME type (text, image, etc). Also they can be multipart.

The only way I see is to store all parts in single MessageParts table with content_bytes field and mime_type field + parent_id for multipart

Is it ok? Is there some better way?

Thanks!


Look up "generalization specialization relational modeling" and you will find some excellent articles on the web. This is well understood, but often overlooked.

0

精彩评论

暂无评论...
验证码 换一张
取 消