closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Reference ancestor_hierarchies in depth instead of ancestors

Open weilandia opened this issue 3 years ago • 1 comments

This is helpful because we can more easily eager load ancestor_hierarchies than we can ancestors to avoid n + 1 queries.

tag = Tag.includes(:ancestor_hierarchies).first
tag.depth

weilandia avatar Jun 02 '22 22:06 weilandia

Sounds good, can you add a changelog entry ?

seuros avatar Jul 31 '22 14:07 seuros

@seuros long delay here :) but I added to changelog. Can we could get this pr merged?

weilandia avatar Apr 11 '23 17:04 weilandia