[openstreetmap/openstreetmap-website] Lazy loading relation members (PR #6326)
mmd
notifications at github.com
Mon Aug 18 10:37:43 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6326)
> So the issue is that the different models have different names for the tag association and if they were all the same then the normal methods would work?
The element tags still need to be fetched from 3 different tables current_{node,way,relation}_tags. I'm not sure if Rails is clever enough to split up a list of relation members by member type, and prefetch all tags in at most 3 queries, even if associations are all named the same across models.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6326#issuecomment-3196115092
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6326/c3196115092 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250818/ba70315e/attachment.htm>
More information about the rails-dev
mailing list