Skip to content

descendants_count counter cache? #586

@ptorrsmith

Description

@ptorrsmith

We're wanting to implement a good way to cache the descendants_count on nodes in a similar way that children_count is set and maintained.

Has anyone attempted extending Ancestry to do this?

Currently we're looking at a pragmatic approach of having an async background job get queued up to update the ancestors of any added/removed node, but thinking this seems like it would be a nice extension for Ancestry.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions