Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-27266

Switch serialized Dimensions config to JSON inside database

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Team:
      Architecture
    • Urgent?:
      No

      Description

      In DM-26407 we store the dimensions YAML configuration in the database table. In general for use cases like this where the YAML is not human visible, the preference is to switch to JSON form.

      JSON support was added to Config in DM-27256.

        Attachments

          Issue Links

            Activity

            Hide
            tjenness Tim Jenness added a comment -

            Trivial change.

            I did a quick benchmark and JSON is about 200 times faster at serializing a DimensionConfig when compared to YAML and about 4 times faster parsing it.

            The resultant serialized string is 10% smaller in JSON.

            Show
            tjenness Tim Jenness added a comment - Trivial change. I did a quick benchmark and JSON is about 200 times faster at serializing a DimensionConfig when compared to YAML and about 4 times faster parsing it. The resultant serialized string is 10% smaller in JSON.
            Hide
            salnikov Andy Salnikov added a comment -

            Looks good.

            Show
            salnikov Andy Salnikov added a comment - Looks good.

              People

              Assignee:
              tjenness Tim Jenness
              Reporter:
              tjenness Tim Jenness
              Reviewers:
              Andy Salnikov
              Watchers:
              Andy Salnikov, Kian-Tat Lim, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.