logo       


Re: groups: msg#00122

Subject: Re: groups
2 stage group conversion:

1.  Use the element attributes to store the group
name.



--- Aaron Smuts <asmuts@xxxxxxxxx> wrote:
> The JCS hierarchical remove is more powerful than
> groups.  JCS grouping needs an overhaul.
> 
> The old JCS grouping was designed for fast removal
> and
> gets, faster than hierarchical removal.  We stored
> the
> keys for groups in a hashtable in the systemgroupid
> region.  This allowed for quick lookups of group
> keys
> and fast removal.  To get the keys for a group, the
> map for the group ids was retrieved and all the
> values
> were spit out.  This didn't require locking the
> entire
> map for a region to retrieve group keys.
> 
> There were some synchronization problems in the old
> group implementation, so it was changed.  Currently,
> the systemgroupid region is not used.  Groups are
> referenced by a special key.  When you want a list
> of
> the keys in a group, the cache iterates through all
> the keys in a region.  The current implementation
> does
> not allow grouped items to be retrieved by their key
> alone.  As a result, groups function as mini regions
> with slow removal times.  It would be better to use
> another region than the current groups. 
> Alternatively, the hierarchical removal can do most
> of
> what you need.
> 
> Ideally, none of the auxiliaries needs to know about
> groups.  The CompositeCache should be able to manage
> it all.
> 
> 
> The group functionality needs to be changed.  
> 
> Items in a group within a region should be able to
> be
> referenced by the key alone.  We can make this
> happen
> by putting an object, CacheKey, in the CacheElement
> and have it equal an object with a similar key in a
> GroupAttrName, but this adds some complexity.  
> 
> One alternative is to completely remove groups until
> we work out a way to bring back the group key map.
> 
> Another option, if we only want to support single
> groups, is to add a groupname or a list of group
> names
> to the ElementAttributes.  We could continue to
> iterate through the map for group reference.  We
> could
> allow for multiple groups this way, but it would
> have
> the same slowness problems.  It would allow grouped
> items to be retrieved by their common keys.  All in
> all, I think this is the best alternative for now.  
> 
> Let's scrap the GroupAttrName and just put the group
> information in the ElementAttributes until, or if,
> we
> decide to use the group key maps again.  This does
> still require the auxiliaries to be able to handle
> getGroupKeys requests.
> 
> 
> Aaron
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
>
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> turbine-jcs-dev-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> turbine-jcs-dev-help@xxxxxxxxxxxxxxxxxx
> 
> 



                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe