Also note that bags can be more efficient for adding items to the list.
 Since a bag can have duplicates, adding an item to the list always
succeeds, even if the collection is lazy and not initialized yet.
In the case of a lazy Set, the entire collection must be loaded to make sure
that you aren't adding a duplicate.

Bags are not horrible, you just have to understand the semantics.

On Thu, Feb 12, 2009 at 12:04 PM, antoschka <[email protected]> wrote:

>
> Hi, ofcourse I do not name the properties like that. I use well
> defined naming conventions with self speaking names.
>
> 1. Well, i just thought a missing index (which is the case for bags)
> would influence searching for items
> 2, I read some of it and found sentences like:
> "Bags are the worst case. Since a bag permits duplicate element values
> and has no index column, no primary key may be defined." - thats why I
> asked later they mentined in an other context: "Just before you ditch
> bags forever, there is a particular case in which bags (and also
> lists) are much more performant than sets. For a collection with
> inverse="true"  (the standard bidirectional one-to-many relationship
> idiom, for example) we can add elements to a bag or list without
> needing to initialize (fetch) the bag elements!"
>
> 4. ok I will reduce it!
> 5. the thing is I really love to use the stuff preseneted here:
> blogs.msdn.com/devdev/archive/2006/06/30/652802.aspx
> They are ideal for working with large lists and very performant. At
> the moment I have to convert them all the time. That's why I was
> asking
>
> Thanks for feedback
>
> antoschka
>
>
> On 12 Feb., 18:53, Fabio Maulo <[email protected]> wrote:
> > 2009/2/12 antoschka <[email protected]>
> >
> >
> >
> > > The Performance is a desaster!
> >
> > Your property-naming and composite-poid too.
> > 1. That is not the problem. The real problem, probably, is the amount of
> > data you uploading.
> > 2. The reference is a good place where starthttp://
> nhforge.org/doc/nh/en/index.html#performance
> > 3. see solution of point 2
> > 4. Yes! you should reduce it to one _no_ business meaning value.
> > 5. No. Collections are proxy; BTW "Program to an interface and not to an
> > implementation" (by GOF)
> >
> > --
> > Fabio Maulo
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to