closure_tree
closure_tree copied to clipboard
Easily and efficiently make your ActiveRecord models support hierarchies
Hello! First of all, thank you for this great piece of software. I'm creating a website with threaded comments functionality - working kind of like reddit. There is a post,...
Hello! I'm looking at using closure_tree on a table with 4 million rows, I want to use a deterministic integer order but only where the record has a parent. Is...
Currently I'm getting null values inserted, then I assume updated afterwards, which gets rejected by postgres if there is a not null constraint. On removing the not-null constraint, I see...
When trying to load hash_tree as much effectively as can I came into an issue. In model I have set order option `act_as_tree order: 'name'` And then when trying to...
If you've got a hierarchy with a depth of around 500 you can't `rebuild!` the tree without it resulting in a SystemStackError: stack level too deep. Here's a test that...
When two nodes are added simultaneously to the closure tree table, this results in a deadlock and the query to acquire lock runs infinitely: ``` (0.7ms) SELECT GET_LOCK('b218f48596dc37d16bbcd16d1e18a116c', 0) AS...
Hey Team, This is probably more of a question than a definite issue, but it seems to me that the `self_and_descendants` association on a node is a bit misleading, in...
I'm using `hash_tree` so build a comment tree where each comment has more or less likes. I would like to sort the tree to put the comment with more like...
Hi, Is where an analogue of `has_closure_tree_root` for asscoiations to leaf nodes of tree? I have following structures and want to organize their with `closure_tree`: 1. Localities (like: country, region,...
It would appear that executing `rebuild!` on a scoped collection empties the whole table before rebuilding the few selected elements. In our case, the model is called BusinessUnit. When you...