[Koha-bugs] [Bug 22407] OMNIBUS: Use DBIC relations to fetch related object rather than searching for the object

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 16 15:08:08 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22407

--- Comment #12 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Martin Renvoize from comment #11)
> We could also use 'skip_relationships' in our dbicdump script to prevent
> outputting superfluous relationships given we can't/won't use them until
> we've manually written code in the corresponding Koha::Object class.. this
> way we would end up being much more explicit about what relationships were
> building (and as such reduce the load time/run time memory use form building
> massive dbic object full of unreachable expensive relationship accessors.

I agree with this, but it would require  us first finish setting our custom
relationships. At least the ones we use.

> That.. or we could start using the dbic recommended way of doing db work and
> go from schema to database rather than the other way around 😉 and ditch the
> script entirely.

That's not gonna happen unless someone takes care of it, and it is not a simple
task, changing the community workflow and upgrade scripts.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list