This adds some additional preloading of object tags and members for improved 
performance.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use a common association name for node/way/relation models
  * Preload tags for relation members
  * Preload tags and members for API index and show operations

-- File Changes --

    M app/controllers/api/maps_controller.rb (10)
    M app/controllers/api/nodes_controller.rb (4)
    M app/controllers/api/old_nodes_controller.rb (9)
    M app/controllers/api/old_relations_controller.rb (9)
    M app/controllers/api/old_ways_controller.rb (9)
    M app/controllers/api/relations_controller.rb (10)
    M app/controllers/api/ways_controller.rb (5)
    M app/controllers/nodes_controller.rb (2)
    M app/controllers/old_nodes_controller.rb (2)
    M app/controllers/old_relation_members_controller.rb (2)
    M app/controllers/old_relations_controller.rb (2)
    M app/controllers/old_ways_controller.rb (6)
    M app/controllers/relation_members_controller.rb (2)
    M app/controllers/relations_controller.rb (2)
    M app/controllers/ways_controller.rb (2)
    M app/models/node.rb (4)
    M app/models/relation.rb (6)
    M app/models/way.rb (4)
    M test/models/node_test.rb (4)
    M test/models/relation_test.rb (4)
    M test/models/way_test.rb (4)
    M test/test_helper.rb (6)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to