I have large maps that include nodes as entry values. I want to persist these maps in the DB for subsequent retrieval.

 

I believe the best/only strategy is:

 

  1. Construct a new map where each node in a value is replaced by its node-id() value.
  2. Serialize the map to JSON and store as a blob

 

To reconstitute it, do the reverse (parse JSON into map, replace node-ids() with nodes).

 

Is my analysis correct? Have I missed any detail or better approach?

 

Thanks,

 

Eliot

_____________________________________________

Eliot Kimber

Sr Staff Content Engineer

O: 512 554 9368

M: 512 554 9368

servicenow.com

LinkedIn | Twitter | YouTube | Facebook