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

Add strongly typed explain method

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.3
    • None
    • None
    • .NET
    • Fully Compatible

    Description

      To explain a query presently we pass in a type but we receive a BsonDocument. That works, but it would be so much better to return a strongly typed object that matches the data returned from explain.

      Today:
      public static BsonDocument Explain<T>(this IQueryable<T> source)

      Tomorrow:
      public static QueryPlan Explain<T>(this IQueryable<T> source)

      QueryPlan is a class that (AFAIK) is yet to be defined. I have a working version which returns a static type (which has properties you might expect like CursorType, etc).

      I would like to submit this back to the driver. What GitHub branch would be best to start from and to issue a pull request back to?

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkennedy66996693 Michael Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: