Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-111

Optimize checking for first bson document key starting with '$'

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None

      In order to correctly handle replace and update operations differently, we need to be able to check whether the first key in a document (interface{}) begins with '$'. Currently, we have to marshal the document into a byte slice and then unmarshal into a bson.D. This is very inefficient, so we should implement a more efficient method of doing this check.

            Assignee:
            Unassigned Unassigned
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: