closure_tree
closure_tree copied to clipboard
Reference ancestor_hierarchies in depth instead of ancestors
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
Sounds good, can you add a changelog entry ?
@seuros long delay here :) but I added to changelog. Can we could get this pr merged?