on 06-27-2021 2:58 PM
Hi,
I need to perform an aggregation of polygons (ST_UnionAggr). The calculation takes a few seconds so I need to store the results.
Here are some thoughts :
Right now, the only solution I came up to is to create a view with the group by, then put this view into a flowgraph to store the result, and sync. the FG with the transactions (1 batch per day).
Does anyone see a better way to do this ?
Regards,
Yann
Hej Miguel,
if you are loading new data once a day and you have the pipeline under control, I'd say running the ST_UNIONAGGR() aggregation as part of the ingestion pipeline and materializing the aggregated data in a separate table is a good option.
Conceptually, the "dynamic result cache" would be the right option, but it only supports standard aggregations like sum, min, max etc.
Regards, Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.