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

Possibility to

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.8.3
    • None
    • None

    Description

      It's not possible to cancel executing query. The problem relates to both MongoQueryable and MongoCollection methods. Based on assumption that 3rd party tools can "kill" connection and corresponding query, it would be nice to have methods like Close on MongoCursor, for example.

      The use case is the following:
      Incoming HTTP request is processed and query is executed. But, for example, query takes long time and user closes or refreshes browser. But unfortunately the query still executes and consumes resources. There is no way to reach underlying connection, on which query executes, and close it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dnaumov Dmitry Naumov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: