On 1 October 2012 15:15, Andreas Jung <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> data defined through a schema in Dexterity seems to be stored
> directly as attribute on the persistent context object. Why
> is this the case? Wasn't it consider bad practice in the AT world
> doing this? A simple change to one attribute causes the complete
> persistent object to be written to disk. Why doesn't Dexterity make
> use of annotations or a btree here?

Because it's not bad practice. ;-)

Most of the time, you read and write the object in its entirety, i.e.
rendering a view or saving an edit form. In this case, loading one
object (and taking up one slot in the object cache) is much better
than each being its own bucket (or something similar with BTrees).

Martin


> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJQaaWZAAoJEADcfz7u4AZjgbkLwJRko0FaaaxW6LEpfiD4kMO0
> M3z6dYf4iHxP5KIqGQ1H1SikRe0vyQqhgoidUOYph3eS7h3OVqzy7YSFPnoqGF0R
> xOFm+rBg05pAttkB77ZQvTVK/b8stPfUlrLlXGF3vcSqmHF/vWqbU2qvtF91lMgq
> QdA8/rpvK+I28HrraejgpsVNqTuHQ7Ashz29MRj547OAxsxzbGqBrkVrJEItjvsk
> 16wuZZ4ZntS7Z4+F4oFqQ8mE31aGsWVGsHsjT4ndb2SrEZZASdj4pErYixaPq6o2
> EAlin+c2Bs+D5k4mPy7JkjFfSPwsBAZtXD5ua16iWc66Obnm9pL40LXPNiS28Ol/
> 97qFI1KC1YrI02L+xEKqh9X3nmPXGg8Rh0A6lmuCTOb1zWU6QH7FOO0KNS0twys1
> VFof1ai5z+j4D8HqMO4yWaFjjil95ceVydDUxCkPzSbSHf1Y4zAJ0XkW9NJ7ov04
> 1bn9BZW/CEV32BXDzVVjUTODDbtyLRU=
> =g+ca
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to