freifunk / vis.api.freifunk.net

Visualisation of Freifunk API data
GNU General Public License v3.0
3 stars 2 forks source link

Import JSON to MongoDB time series collection #18

Closed extua closed 2 months ago

extua commented 3 months ago

MongoDB scripts

https://www.mongodb.com/docs/mongodb-shell/write-scripts/

extua commented 3 months ago

Two different ways of going about this:

  1. Use an external client which processes all the JSON and writes to MongoDB object by object (in a huge loop?).
  2. Try to do it within MongoDB with mongoimport
extua commented 3 months ago
1. Use an external client which processes all the JSON and writes to MongoDB object by object (in a huge loop?).

Going with option 1 here, writing a client 3b82ee1cecbe07c6162e63ad9482f1d139bd1dbe