FindLinked( inMaxCount as integer) Re: FindLinkedSingle ?

Ed Kleban Ed at Kleban.com
Mon Dec 12 13:46:20 CST 2005


Double Gack!

There is no " inMaxCount as integer " argument to FindLinked either.

Any reason why not?


On 12/12/05 8:24 AM, "Ed Kleban" <Ed at Kleban.com> wrote:

> 
> 
> 
> On 12/12/05 2:47 AM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:
> 
>> On 12/12/05 7:19 AM, "Ed Kleban" <Ed at Kleban.com> wrote:
>> 
>>> There's no FindLinkedSingle call in the API.
>>> 
>>> Any reason why not?
>> 
>> How you can be sure ?
>> 
>> Aha, sure is only if you move in director to : 1
>> 
> 
> Yes.
> 
> You can be sure if you've already done a lookup to determine count -- a
> function which V2 DOES offer.
> 
> You can be sure if you're keeping a separate count so you already know if
> there is a link and how many links, but just not which link -- which I often
> do so that I don't incur the overhead for a needless lookup.
> 
> And you can be sure if the relation ship is 1:1 or M:1, as you point out.
> 
> And the benefits are:
> 
>     1) Cleaner syntax
> 
>     2) Less call and return processing overhead
> 
>     3) You immediately stop searching as soon as you find one.
> 
> ... and leads to a whole separate question about BinaryLink Lookup and
> Management efficiency that came up while sleeping last night and which I'll
> include in a separate email later.
> 
>  




More information about the Valentina mailing list