[ZWeb] ratings redux
Sun, 10 Mar 2002 14:11:23 -0800 (PST)
--- Paul Everitt <email@example.com> wrote:
> Does the IIBTree, along with hashing by username,
> make this better
> optimized for conflict errors and ZEO use?
it can help with write conflicts, be benefiting from
the resolution already in the btree code and the
separation into buckets. ZEO usage in general tends to
magnify hotspots. Compared to the alternatives this
technique seems best suited for scaling if the storage
is the zodb.
> suppose it also makes ZODB
> bloat less of a problem, because a smaller
> structure is being written to.
yes, the internal storage of the IIBTree is smaller
than a corresponding python version. although, if you
add in consideration of mounted nonundoable storages
and compare to the size bloat from multiple revisions
in a undoable storage, things become less clear. this
existing implementation is not well suited to that,
since ratings are stored local to content. but i had a
requirement that ratings would not be lost from object
movement, which without a general object linking
service would have been problematic for a centralized
storage using path references to content.
> How related is this implementation strategy to one
> for hit counters?
> The username as the key obviously would help much
a different approach for counters would be taken, i
assume you mean download counters. in such a case a
BTrees Length object could be used directly as a hit
counter, as it supports write and read conflict
resolution, and its state is saved as just an integer
and a class ref.
> Kapil Thangavelu wrote:
> > i've upload a new version of the ratings product,
> > now includes a cmf tool.
> > a word of warning, the tool hasn't gotten much
> > testing.
> > cheers
> > kapil
> > __________________________________________________
> > Do You Yahoo!?
> > Try FREE Yahoo! Mail - the world's greatest free
> > http://mail.yahoo.com/
> > _______________________________________________
> > Zope-web maillist - Zopefirstname.lastname@example.org
> > http://lists.zope.org/mailman/listinfo/zope-web
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!