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: Paul Hoadley <email@hidden>
- Date: Fri, 13 May 2016 11:43:40 +0930
On 13 May 2016, at 10:18 am, David Aspinall <email@hidden> wrote:
> Nope, no aliens, and definitely not Drumpf!
Sorry David—I’d forgotten that “David A” wasn’t specific enough! I actually meant Avendasora.
> I’m not sure what you are optimizing for here.
Just elegance, really.
> 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.
Probably not—I just thought I might have overlooked a specific qualifier or ERXKey shortcut for this purpose.
--
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