Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Jul 29, 2025

This changes the way we are getting node members of relations. We now always get the locations of those nodes directly in the middle code instead of only getting the nodes themselves and adding the locations through an extra call from the output.

This also fixes a problem where node locations for untagged nodes were not retrieved from the RAM middle. The node_get() code does that correctly, while the old code didn't.

This changes the way we are getting node members of relations. We now
always get the locations of those nodes directly in the middle code
instead of only getting the nodes themselves and adding the locations
through an extra call from the output.

This also fixes a problem where node locations for untagged nodes were
not retrieved from the RAM middle. The node_get() code does that
correctly, while the old code didn't.
@lonvia
Copy link
Collaborator

lonvia commented Jul 30, 2025

This will make the code quite a bit slower when "store nodes" is enabled together with flatnode stiore. Before the change it would just go to the flatnode store to load the locations, now it will send a separate DB query for every single node.

@joto
Copy link
Collaborator Author

joto commented Jul 30, 2025

Closing in favour of #2367

@joto joto closed this Jul 30, 2025
@joto joto deleted the refactor-middle-rel-members branch August 4, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants