Use subqueries to do the selection in one go in the database which also avoids 
to deduplicate in rails.

Also pushes all visibility filtering into the query.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use subqueries to find nested members more efficiently

-- File Changes --

    M app/controllers/api/nodes/relations_controller.rb (13)
    M app/controllers/api/nodes/ways_controller.rb (8)
    M app/controllers/api/relations/relations_controller.rb (13)
    M app/controllers/api/ways/relations_controller.rb (13)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to