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

Better way to create indexes

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.2
    • Component/s: API

      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.

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

              Created:
              Updated:
              Resolved: