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

Populate all ancestors recursively. #30

Closed
dimitri-yatsenko opened this issue Apr 14, 2014 · 2 comments
Closed

Populate all ancestors recursively. #30

dimitri-yatsenko opened this issue Apr 14, 2014 · 2 comments

Comments

@dimitri-yatsenko
Copy link
Member

In rev. 2.7.4, dj.AutoPopulate/populate and dj.AutoPopulate/parpopulate will have the option to populate all ancestors (referenced tables) recursively.

For example, if computed table 'C' has a foreign key reference to computed table B and table B in turn refers to table A, then the statement

populate(C,restriction)

will be equivalent to

populate(A,restriction)
populate(B,restriction)
populate(C,restriction)

The feature is activated by setting the flag populateAncestors to true:

dj.set('populateAncestors',true)

By default, populateAncestor is set to false to avoid the overhead associated with populating the ancestors.

Note that the restriction, if any, must be then applicable to all the ancestors.

@dimitri-yatsenko
Copy link
Member Author

Both populate and parpopulate can now populate the ancestor tables recursively. When populateAncestors is set to true, then populate cannot have output arguments.

@dimitri-yatsenko
Copy link
Member Author

Fixed in 04e1f61

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

No branches or pull requests

1 participant