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 that possible?
Right now it seems to be trying to put a sequence over all the records in the table, which is taking too long.