Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3109

Investigate the use of MessageSearch index for First UNSEEN Uid

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      After an expunge, or once all emails are read, Cassandra issues tubstone range warnings when trying to find first unseen UID of a mailbox reading `firstUnseen` table.

      Maybe using the MessageSearch index to get this information is better suited. (Directly reused in the Message mapper)

      Scenario:

      • inset 2000 messages in a mailbox
      • Mark them all as Read
      • Insert 10 messages
      • SELECT all unseen

      Regarding mailboxRecent, we also encounter threshold warnings, but I'm wondering if this can be treated using the search index as the full list of values is expected (but we can try)

      Furthermore relying on the search index will eventually solve coherence issue for these tables

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: