Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1358

Clean up the cursor code in mongodb-core

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Core
    • Labels:
      None

      The cursor code here could be refactored to read better.

      To clarify, I am eyeing a few areas:

      • The size of functions: Currently, we have functions bordering on over 300 lines. It would be nice to refactor those into smaller functions
      • The way we track state of the cursor: there are lots of flags being tracked. It would be nice to maybe encapsulate all the cursor state inside a nice state layer.

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: