[openstreetmap/openstreetmap-website] Create a rake task for populating the database (#282)

rkoeze notifications at github.com
Mon Jun 17 23:49:27 UTC 2024


@gravitystorm it seems like some combination of osmosis with the `clipIncompleteEntities=true` argument and then a bunch of `ALTER SEQUENCE changesets_id_seq RESTART WITH n;` sql commands might work here. Are you still interested in this rake task being written?

I suppose one disadvantage here is that it's just another thing to maintain (for example every time a new sequence is introduced this command will have to be updated). An alternative might be updating the the docs with general instructions for importing referentially complete entities but then let developers do the work themselves.

If you do still think this would be worthwhile I'd be happy to put up a draft PR for feedback. Thanks!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/282#issuecomment-2174639221
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/282/2174639221 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240617/e31b3bb6/attachment.htm>


More information about the rails-dev mailing list