Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8630

Comment on: "primer/query.txt" for Node

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • primer

    Description

      The examples are great, but all use cursor.each() to iterate over the results. With a huge table this might flood your application with loads of data, because you can't stop and resume the "stream" of docs.

      I would love to see an example on how to fetch docs by smaller quantities, to enable processing, e.g. to fetch docs in 100 pieces to batch insert them into Elastic. But still iterate over all results, not just limit the result to 100 docs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 36 weeks, 2 days ago