Re: Qualifier to match on content of two to-many relationships
Re: Qualifier to match on content of two to-many relationships
- Subject: Re: Qualifier to match on content of two to-many relationships
- From: David Holt <email@hidden>
- Date: Thu, 12 May 2016 18:14:21 -0700
Bah. Never too many.
> On May 12, 2016, at 5:52 PM, Chuck Hill <email@hidden> wrote:
>
> I thought he meant Avendasora not Aspinall. We still have too many Davids!
>
>> On 2016-05-12, 5:48 PM, "David Aspinall" <email@hidden> wrote:
>>
>> Nope, no aliens, and definitely not Drumpf!
>>
>> I’m not sure what you are optimizing for here. Is this a slow running query? I can’t imagine you have more that a handful of roles in the db total. Would it be easier to just do something like
>>
>> NSArray<Notice> notices = user.roles().valueForKey(“notices”);
>>
>> you might have to remove duplicates but that’s easy.
>>
>> Maybe I misunderstood the problem.
>> David
>>
>>
>>> On May 12, 2016, at 5:33 PM, Chuck Hill <email@hidden> wrote:
>>>
>>> Best guess is that Dave A has been abducted by aliens for a comprehensive battery of probes. Or he is running Trump’s election strategy.
>>>
>>> Have you looked at Pierre Bernard’s qualifiers? There might be something in there:
>>> https://github.com/gloubibou/houdah-webobjects-frameworks/tree/master/HoudahEOControl/src/com/houdah/eocontrol/qualifiers
>>>
>>> Chuck
>>>
>>>
>>>
>>>
>>> From: <webobjects-dev-bounces+chill=email@hidden> on behalf of Paul Hoadley <email@hidden>
>>> Date: Thursday, May 12, 2016 at 4:29 PM
>>> To: WebObjects-Dev <email@hidden>
>>> Subject: Re: Qualifier to match on content of two to-many relationships
>>>
>>> On 11 May 2016, at 7:52 am, Paul Hoadley <email@hidden> wrote:
>>>
>>> While this works, it seems awkward. Is there a way to create this qualifier (which is essentially looking for any match between User.roles and Notice.roles) in one step?
>>>
>>> Obviously there’s a lot going on right now, but can anyone wade in on this? I’m looking at you Dave A. (Actually, no I’m not—where are you?) Aaron?
>>>
>>>
>>> --
>>> Paul Hoadley
>>> http://logicsquad.net/
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden