Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Model chainloading #17

Open
beheh opened this issue May 1, 2014 · 1 comment
Open

Model chainloading #17

beheh opened this issue May 1, 2014 · 1 comment

Comments

@beheh
Copy link
Owner

beheh commented May 1, 2014

To prevent releases from the addon/game page to require a query to fetch the addon details every single time, the releases should offer the possibility of chainloading via a natural join - possibly even only instancing the actual addon model when required. Thus would greatly reduce the SQL query overhead.

@beheh beheh changed the title Implement model chainloading Model chainloading Nov 14, 2014
@beheh
Copy link
Owner Author

beheh commented Nov 17, 2014

The model class is now aware of fetches via fetch($model, $row) - chainloading should optionally be specified on presenter level, maybe via $model->chainloadAddon(), $calling this->chainload('Addon', 'addon')?

Then the last thing to do is to make the PersistenceService table-aware by prefixing, deserializing the chainloaded model and injecting it into the original model.

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

No branches or pull requests

1 participant