Skip to content

Messages deduplication #2

@millenium-codebug

Description

@millenium-codebug

Hi I'm using your project since many months and I think that it's better to split the _messages table to reduce the growing speed. In our company we get email with many of us in To,CC or BCC, all user that recive the email generate an entry with the same data in the _messages table, generating thousand of useless rows.
I thought that the following scheme can be helpful:

  • _messages with all message data (from, to, cc, bcc, hash, etc...)
  • _messages_account with all account related data like (flagged,smownerid,folder,seen,etc...)

This will help to keep the _messages lighter (there is less data to save and can be deduplicated by hash or messageid) and allow faster synchronization of messages since if a message already exist you have only to insert in relation table or sync flag/seen and not perform a insert bigger with the same data multiple times.
This will also impact _messages_attach table in the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions