Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43059

Make read and write versions for KeyString

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Storage Execution

      KeyStrings used for read(query) and write(index insertion) are quite different in its internal format: read KeyStrings always have discriminator at the end while write KeyStrings most of the time have RecordId in it. There is no easy way to quickly tell whether a KeyString is used for read or write. And people could misuse the encode/decode methods.

      We should define better contracts or have different versions for KeyStrings.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: