[Koha-devel] Koha and DBIC

Robin Sheat robin at catalyst.net.nz
Thu Sep 11 00:41:41 CEST 2014


Kyle Hall schreef op di 09-09-2014 om 13:21 [-0400]:
> 1) Allow find and simple searches in pl.

IMO, this is not a good idea. You're coupling database schema with code
that's closer to display.

All access should be via an API into the C4:: or Koha:: namespace, and
the modules there are the only ones that know/care how the database is
actually laid out. This means that if we want to change how things are
stored[0], only one module needs to know about the change, and it can
still present the same interface to code.

The moment that you have more than one place talking to a fairly
low-level system like the database, you are going to have problems (e.g.
the issues in the current system where so many modules touch the account
code that refactoring it is a huge nightmare.)

[0] from fixing badly named columns/tables, to adding caching, to
refactoring the schema to make it more efficient, to not using the
database at all for some reason.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20140911/c899b35b/attachment.pgp>


More information about the Koha-devel mailing list