Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-677

listIndexNames should extract names from Documents rather than decoding entire IndexModels

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-rc1
    • Component/s: None
    • Labels:

      Description

      Currently, listIndexNames is implemented by mapping over the models returned from listIndexes and extracting the name fields.
      This requires us to pay the overhead for each name of decoding the entire IndexModel.
      Instead we should take an approach similar to that in listCollectionNames where we create a cursor over Document s and just extract the name fields.

        Attachments

          Activity

            People

            Assignee:
            james.heppenstall James Heppenstall
            Reporter:
            kaitlin.mahar Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: