Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1575

Better way to create indexes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2.2
    • API

    Description

      Hi, I just upgraded from 1.9 to 2.2 and i think the new changes are great. Said this, I think there's room for improvement in the process of create indexes.

      This is my wrapper of indexes.CreateOne(). As you can see, there's no general way to tell a to the method if an index key is ascending or descending.

      So, what do you think about this kind of implementation?
      As you can see, using something like keys.Add() method it's MUCH easier to set the directions of multiple keys, specially when you have many of them. Thank you for your time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Zeioth Zeioth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: