[openstreetmap/openstreetmap-website] Preload element tags when showing changesets (PR #4569)

Tom Hughes notifications at github.com
Sun Mar 10 19:00:44 UTC 2024


So although that query does potentially select more records than it should it looks like rails discards the extra ones during the process of associating the tags with the parent records... An alternative is to use `eager_load` which does the preload using a join and avoids the over selection.

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

Message ID: <openstreetmap/openstreetmap-website/pull/4569/c1987332208 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240310/bf92c4cc/attachment.htm>


More information about the rails-dev mailing list