Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason for the parent_id? #31

Open
attilahorvath opened this issue Mar 4, 2020 · 1 comment
Open

Reason for the parent_id? #31

attilahorvath opened this issue Mar 4, 2020 · 1 comment

Comments

@attilahorvath
Copy link

Hi,

I've been evaluating this gem for a project I'm working on and I'm a bit confused about the reliance on a parent_id here. The parent is always obvious by looking at the path and the ltree extension provides all the DB functions needed to work with this so I'm not sure about why it's necessary.

Is this being used to speed up the query performance? Would that be necessary even if I use a GiST index over the ltree?

There is another very similar gem that works fine without this parent ID and I'm trying to decide between these two solutions so I though I'd ask.

Thanks!

@tambakoo
Copy link

@attilahorvath did you go ahead with this gem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants