Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18209

Add QUERY option to limit ARRAY size

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Please add an option to limit the size of ANY array in the document.

      Motivation:
      Relted to SERVER-18207

      Motivation:

      Our application parses data from MongoDB repositories that are populated by other application. Documents can have potentially large arrays objects at arbirary locations. The application retrieve the data, present the user with "summary" (e.g., showing data from the first few entries, followed by "NNN more").

      The full entry is expanded once the user choose a specific document, and part of the document.

      The above change will reduce the amount of data that need to be fetched on the original calls. Currently, 100X data has transferred from Mongo, since there is no way to cap the size of the ARRAY.

      When working with documents that can contain arbitrary data sets, the application is forced to read

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            yair.lenga@gmail.com Yair Lenga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: