How to do "batch updates" in FROST-Server #1580
-
Hello all, We have an upstream system that sends many updates to our FROST-Server implementation. I'm noticing a high level of commits and cpu usage occurring in our database, and one of the suggested ways of alleviating the issue is to limit the number of commits by perhaps batching them instead. If curious, the use case I'm seeing is described in this doc: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/apg-waits.xactsync.html We currently launch a PATCH request against the SensorThings API for each changed Observation. Is it possible to launch a batched PATCH request against the SensorThings API such that a commit wouldn't take place until some number of Observations had been updated in the database? Thanks in advance for any tips! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Yes, using the Batch Processing extension you can do batch requests that all get committed to the database in one go: https://fraunhoferiosb.github.io/FROST-Server/extensions/JsonBatchRequest.html |
Beta Was this translation helpful? Give feedback.
-
Dear @hylkevds ,
Thanks |
Beta Was this translation helpful? Give feedback.
Yes, using the Batch Processing extension you can do batch requests that all get committed to the database in one go: https://fraunhoferiosb.github.io/FROST-Server/extensions/JsonBatchRequest.html
All requests with the same
atomicityGroup
will be in the same commit.