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

Write first-draft of the bson.Array type

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      The bson.Array type sits on top of the bson.Document type. Since almost nothing stores this type directly, the methods of the bson.Array type must leave the underlying bson.Document in a writeable state after each method call. This means that the Prepend and Delete methods will be especially expensive since they might have to touch every element. The Lookup and ElementAt methods are essentially the same method.

      When any of the methods are provided with an element, they need to rewrite that element's key to be the proper index into the array.

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

              Created:
              Updated:
              Resolved: