[openstreetmap/openstreetmap-website] Use activerecord-import for bulk importing tracepoint records (#2131)
notifications at github.com
Wed Feb 6 10:14:32 UTC 2019
One consideration here is around memory usage. The gpx.points yields tracepoints one at a time, which keeps memory usage low. But to insert them in bulk, we obviously need many tracepoints available at the same time, so we collect them up before bulk inserting.
Thoughts welcome! Do you think this will work as-is, or do we need to be more defensive about building the tracepoint array?
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev