Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29484

MongoDB Script to extract useful data for content volume computation

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.3, 2021.0
    • Component/s: Core MongoDB

      Description

      A MongoDB script that allows taking in input

      • a set of xpath expressions referencing the content fields to take into account by the script
      • a set of xpath expressions referencing the additional columns we want to add as columns.
      • a repository

      The script will create a new mongodb collection with as many lines as there are content references in the repository trhough one of the expressed xpath. It means versions will also have their own lines.

      The columns will include (but not only):

      • document id
      • the xpath of the content property considered
      • if it is a version
      • when a version, the "document" it is a version about
      • when a proxy, the source document
      • the path
      • the blob provider key
      • the size of the binary
      • date of creation of the document / version

      This task also includes an example of how to leverage that collection, that will sum the column "size of the binary" for the whole repository.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week
                  1w