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

Store depth in the model #5

Open
kanle485 opened this issue Nov 3, 2012 · 5 comments
Open

Store depth in the model #5

kanle485 opened this issue Nov 3, 2012 · 5 comments

Comments

@kanle485
Copy link

kanle485 commented Nov 3, 2012

I think it would be better to store each node's level as a field in the model, so that we can generate the json representation of the tree easier and more efficiently. In large trees, it's not feasible to get level of each node. That's too many db calls.

@smebberson
Copy link

I agree. Would a PR help see this make its way into the source?

@timoxley
Copy link
Collaborator

@smebberson prs always help

@dzcpy
Copy link

dzcpy commented Dec 18, 2014

+1

@shahadat-dev
Copy link

shahadat-dev commented Jun 11, 2016

It's a good idea. We are facing same problem here. This issue was created about 3.5 years ago. But no response yet :(

@atoumbre
Copy link
Contributor

Hello
See PR : #19

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

6 participants