[openstreetmap/openstreetmap-website] Preload parent objects for user comments (PR #5530)

Tom Hughes notifications at github.com
Tue Jan 21 19:08:57 UTC 2025


I noticed that the comment views were loading objects one by one and this should make it more efficient.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5530

-- Commit Summary --

  * Preload parent objects for user comments

-- File Changes --

    M app/controllers/users/changeset_comments_controller.rb (2)
    M app/controllers/users/diary_comments_controller.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5530.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5530.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/5530 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250121/6d89d82d/attachment.htm>


More information about the rails-dev mailing list