Transforms the new format into the legacy app format.
$ make linux
$ go run cmd/proxy/main.go --new-url=http://localhost/test.json --old-url=http://localhost/old.json
$ DB_DSN=postgres://tspcompat:tspcompat@localhost:5450/tspcompat?sslmode=disable\&timezone=Europe/Stockholm go run cmd/api/main.go --load-from=http://localhost/test.json
For even faster results, use a materialized view with --use-view
:
$ DB_DSN=postgres://tspcompat:tspcompat@localhost:5450/tspcompat?sslmode=disable\&timezone=Europe/Stockholm go run cmd/api/main.go --load-from=http://localhost/test.json --use-view