[openstreetmap/openstreetmap-website] Use activerecord-import for bulk importing tracepoint records (#2131)

Andy Allan 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...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190206/385b1d3b/attachment.html>

More information about the rails-dev mailing list