Skip to content

Added metadata for loaded relations through 'with_objects'#12

Open
VictorPhilipp wants to merge 1 commit intosiracusa:mainfrom
VictorPhilipp:master
Open

Added metadata for loaded relations through 'with_objects'#12
VictorPhilipp wants to merge 1 commit intosiracusa:mainfrom
VictorPhilipp:master

Conversation

@VictorPhilipp
Copy link
Copy Markdown

@VictorPhilipp VictorPhilipp commented Aug 17, 2016

Relations that are loaded with "with_objects" are not being fetched multiple times from the database if they are undefined. All relations that are passed to the Manager class through the with_objects argument are being remembered in the Object's metadata '__xrdbopriv_loaded_relations'. The Generic method-maker checks for presence of this metadata and skips trying to load the relation again if a relation is marked as loaded.

Note: I did not run all of your tests.

…"with_objects" are not being fetched multiple times if they are undefined.
@siracusa
Copy link
Copy Markdown
Owner

Without tests, I can't tell what behavior you're trying to change. Can you give me an example of the expected and actual behavior using the released version of the code?

@VictorPhilipp
Copy link
Copy Markdown
Author

Sure, I will do that tomorrow.

Base automatically changed from master to main January 21, 2021 14:54
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

Successfully merging this pull request may close these issues.

2 participants