OS2iot / OS2iot-backend

This repository contains the backend to the project OS2iot.
Mozilla Public License 2.0
10 stars 7 forks source link

Optimize bulk import and the load on chirpstack #140

Closed AramAlsabti closed 2 years ago

AramAlsabti commented 2 years ago

When importing a .csv file with a large number of IoT devices, timeouts are very likely to occur. The main suspect is the chirpstack API which cannot keep up as numerous calls are made to the API just for a single LoRaWAN device.

This PR refactors this flow:

Ideally, the backend would process the CSV file. However, that would mean the user doesn't get "live" updates

Related frontend PR

Fixes #130