Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-1520

Use subselect for row_to_json so we don't have to rename keys

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 3.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      PuppetDB 2015-05-20

      Description

      As described in http://hashrocket.com/blog/posts/faster-json-generation-with-postgresql we can (and probably should) use subselects to generate responses via the row_to_json in the query-recs in the query-engine which have proper key name so that we don't need to rename keys in clojure code, e.g. `f1` -> `hash`.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            andrew.roetker AJ Roetker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support