[openstreetmap/openstreetmap-website] Add date indexes on gpx_files and notes tables (PR #5747)

Emin Kocan notifications at github.com
Fri Mar 7 03:10:00 UTC 2025


@kcne commented on this pull request.



> @@ -0,0 +1,7 @@
+class AddGpxFilesUserIdTimestampIndex < ActiveRecord::Migration[7.2]
+  disable_ddl_transaction!
+
+  def change
+    add_index :gpx_files, [:user_id, :timestamp], :algorithm => :concurrently

Very smart work around to be honest, would never thought of this myself. Fixed, thank you.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5747#discussion_r1984381050
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5747/review/2666136705 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250306/d00d668a/attachment.htm>


More information about the rails-dev mailing list