A quick update on the API v0, regarding the slow requests: the database is having a hard time querying for the packages (even though there's only 20 million records in there yet), so we did some quick optimisations:
- API is split off from the main website (so they won't affect each other any more)
- Caching is enabled as the REST API is meant for semi-real-time updates only (use MQTT for real-time updates): 10s for specific node/gateway views, 60s for listing of all nodes/gateways. So no use in querying every second any more
- Queries are optimised a bit, more indexes have been created.
Let me know if I broke something!