[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] duplicate IUs

I can definitely live with using toSet() when a set is needed (for example by the UI).
I just find it odd that when querying IU's within a repository that duplicates would be eliminated. I suppose this is really just the result of using an index.

So it seems the most we can say is something like "there may be duplicates in the result, depending on the queryable and the query. Use toSet() to eliminate duplicates."
I can live with this.

susan

Inactive hide details for Thomas Hallgren ---03/31/2010 02:00:10 PM---On 03/31/2010 10:50 PM, Ian Bull wrote: On Wed, Mar 31, 2Thomas Hallgren ---03/31/2010 02:00:10 PM---On 03/31/2010 10:50 PM, Ian Bull wrote: On Wed, Mar 31, 2010 at 1:46 PM, Thomas Hallgren <



          Thomas Hallgren <thomas@xxxxxxx>
          Sent by: p2-dev-bounces@xxxxxxxxxxx

          03/31/2010 01:59 PM
          Please respond to P2 developer discussions



To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
cc:
Subject: Re: [p2-dev] duplicate IUs


On 03/31/2010 10:50 PM, Ian Bull wrote:
      On Wed, Mar 31, 2010 at 1:46 PM, Thomas Hallgren <thomas@xxxxxxx> wrote:
        Hi Ian and Susan,
        There are several ways to get a unique result. One is to use "unique() or latest()" in a query. Even if you just iterate over the result, it will be guaranteed to be unique.

      This is not consistent with what I saw. I queried a composite repo for ALL IUs, and IUs were duplicated between child repos. When I iterated over the result, I got duplicates.
Oops, my statement was ambigous. What I meant to say was:

When you iterate over a result that is obtained using unique() or latest(), the result will not contain duplicates.

Just iterating an arbitrary result might well give you duplicates.

- thomas
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev

GIF image

GIF image

GIF image