helium / router

router combines a LoRaWAN Network Server with an API for console, and provides a proxy to the Helium blockchain
Apache License 2.0
69 stars 32 forks source link

add a configurable delay while sending large batches of updates #949

Closed michaeldjeffrey closed 1 year ago

michaeldjeffrey commented 1 year ago

If too many items are sent to the config service, it will get stuck reading everything from the network before it will continue doing any db operations, this can be very slow (think minutes). If we added a few strategic pauses to our streaming up of items, the config service can keep up and hopefully not fall behind, making the request seem to take only as long as it takes to send everything up.

macpie commented 1 year ago

maybe add a quick eunit for this?