You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As each counterpoint has (potentially) multiple measurements, if multiple checkpoints are to be returned from a function what would be the best way to return them.
Questions To Answer
How to return data of multiple Checkpoints
Options
Each measurement in each checkpoint are returned as one row, including checkpoint identification (grouping is done on app level)
Measurements are grouped by checkpoint and returned in a complex type (`ARRAY[JSON]' perhaps?)
No such possibility, there would be function to return checkpoints, and then each checkpoint would need to be queried separately
Something different?
Desired Outcome
The method of choice to return these data.
The content you are editing has changed. Please copy your edits and refresh the page.
After some impromptu conversation in the office we figured that the best slution, at least for now is:
OUT id_checkpoint UUID,
OUT checkpoint_name TEXT,
OUT measure_name TEXT,
OUT measure_columns TEXT[],
OUT measurement_value JSONB,
OUT checkpoint_time TIMESTAMP WITH TIME ZONE
always ordered by id_checkpoint first to ensure, that measurements from the same checkpoint are after each other.
Background
As each counterpoint has (potentially) multiple measurements, if multiple checkpoints are to be returned from a function what would be the best way to return them.
Questions To Answer
Options
Desired Outcome
The method of choice to return these data.
Tasks
Additional Info/Resources [Optional]
The text was updated successfully, but these errors were encountered: