Re: [Zope-dev] Reg. updating catalog indexes in bluebream
Joshua Immanuel <[email protected]>
| Newsgroups | gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel |
|---|---|
| Organization | HiPro IT Solutions Private Limited |
| Message-ID | <1308845974.2427.55.camel@jimman> |
Hello all, Thanks for replying. On Thu, 2011-06-23 at 17:19 +0200, Charlie Clark wrote: > The indices do have to be updated every time you add, delete or modify > an object. This is one of the reasons for the event system you were > asking about the other week. As the size of sm['intids'] were getting incremented as and when new objects were added, without me doing anything explicitly about it. I was of the notion that I don't need to explicitly update the indexes. If I subscribe for 'IContainerModifiedEvent' for the container of 'Client' object and update the indexes, then I think I'll miss out if just the attributes of 'Client' object is modified. So, I think along with this I should subscribe for 'IObjectModifiedEvent' of 'Client' object. Will this be sufficient? Is there any other better way of doing this? -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk4DZ48ACgkQWw85XwuSFMJcCQCeP6f74o88ikrbr6YGQe+FWo7Q CsoAniDlwGosm1EBcd9gnp64n9WBNPBS =xV4r -----END PGP SIGNATURE-----