Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2018

Normalize JSON when storing/updating FragmentEntity

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • CPS-Core
    • None

      There are two issues surrounding JSON:

      • The first issue is that the JSON keys are not ordered, thus attribute string generated from a HashMap would produce different JSON than a LinkedHashMap (e.g. from ImmutableMapBuilder)
      • The second issue stems from the fact the Fragment attributes are stored in the DB using JSONB rather than text. Thus the formatting of the JSON string returned from the DB may not be the same as what was written.

      The issues affect performance of update operations, as identical data leaves can have different JSON representations when being written versus read from the database.

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: