Skip to content

is it possible to only use deterministic order where parent_id is not null? #282

Open
@robguthrie

Description

@robguthrie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions