fix awful editor-is-so-slow-oh-my-god bug with graph
This commit is contained in:
parent
4ade6cfc1f
commit
4025278882
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ def get_level_geometries_result(request, level_id: int, update_cache_key: str, u
|
|||
|
||||
graphedges = request.changeset.wrap_model('GraphEdge').objects.all()
|
||||
graphedges = graphedges.filter(Q(from_node__in=graphnodes) | Q(to_node__in=graphnodes))
|
||||
graphedges = graphedges.select_related('waytype')
|
||||
graphedges = graphedges.select_related('waytype', 'from_node', 'to_node')
|
||||
|
||||
# this is faster because we only deserialize graphnode geometries once
|
||||
missing_graphnodes = graphnodes_qs.filter(pk__in=set(chain(*((edge.from_node_id, edge.to_node_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue