Re: Objektmonster auftrennen?

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Jens W. Klein wrote:
> Am Dienstag, den 07.06.2011, 16:41 +0200 schrieb Peter Zechmeister:
>> Hallo Liste,
>>
>> ich schreibe ein Zope2 Produkt und da habe ich folgende Problematik:
>>
>> self._tree ist ein Dict mit ziemlich gigantischen Ausmaßen (Bildet die
>> gesamte Hierarchie unserer sehr großen Site ab).
>>
>> Ein commit() dauert rund 2s, wenn ich self._tree vorher leere jedoch nur
>> (0.1s)
>>
>> Mein Eindruck ist (ist auch irgendwie logisch), dass ein commit() immer
>> das ganze Objekt mit allen seinen Attributen speichert, also auch mit
>> dem self._tree. Das ist ungünstig, wenn sich self._tree nur selten
>> ändert, die anderen Objektattribute aber häufig.
>>
>> Was wäre eine elegante Variante, so ein Problem zu umgehen? Kann man
>> einzelne Attribute irgendwie vom Rest abtrennen?
> 
> Wenn das ein PersistentDict ist sollte das nach meinem Verständnis ein 
> eigenes Objekt in der ZODB sein. 

Oder einen OOBTree

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJN7kNRAAoJEADcfz7u4AZjBIALwIvTN2r+DYWE6VocEf8Bcb42
FyUkPV/XEzPaqMFeK6UX/ZloIZ5kf2WH351KEwwIEpKIMBqfGrlsDj7T2TC5SfaO
9SOY3/q5s/AYes4I08zFHK9VfvAv9o93sTRljCqny5yRN0NzNf/ExOnLhH0hddC9
+8ucQYGCRisHtLTgE2P9RnPpuE8hemsuJQ3Si/2ZI0i8MmEVVcNupGqjepTYhH/Y
vt+ls0yxcBx0bR9apCnaRYp7jIerGcBmloOHYnDkMuA9N4xNnbhQEzl1bo7XOHqp
+7bqeKOaDLODTuy+g9s9NjzM+/YaOnPjAyDYKJGHuG1MfpxbczX10HSw59oLqcoT
zztQypJ0DfRXiajgJnPUiffGl1qj8AcojZQQ0qNUEkQxuUE0xs68ywpTJWnVG6/6
dkPf2igIquiuCO/GkWR8Cb+apL9mZxk95GNVwR+/6tv9pwZlOMYwLPJBMgcp5YZy
chU5BjbcmWh4owHp2WtwE/65o9f4pvg=
=cVM4
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.