benchmark
Joakim Schramm
joakim at astrocalc.com
Wed Dec 13 15:58:21 CST 2006
> -----Original Message-----
> From: valentina-bounces at lists.macserve.net
> [mailto:valentina-bounces at lists.macserve.net] On Behalf Of Ivan Smahin
> Sent: 13 December 2006 15:50
> To: Valentina Developers
> Subject: Re[2]: benchmark
>
> Hello Joakim,
>
> Wednesday, December 13, 2006, 4:10:38 PM, you wrote:
>
> > Oh 1 final question on this with links,
>
> > Is there any defference in performance between the 2 ways
> below, both
> > is ObjectPtr
>
> > This:
> > Dim lnk As VLink
>
> > Set lnk = mChartDB.Link(lnkGroupId)
> > Set ChartSet = lnk.FindLinked(GrpID, tGroups, tCharts)
>
> > Or this
>
> > Set ChartSet = fPtrGroup.FindValue(GrpID)
>
> The second way is faster.
> FindLinked is presented as part of I_Link interface.
>
Ok fine then and of course my head just popped up another question, they
just seem to come :-)
When I delete a record on the M side of a 1:M link, do I have to unset that
link or is Valentina taking care of this in a clean way? Any difference if
it's ObjectPtr or Binary?
Oh yes, half a question more... If I set a Balue to ObjectPtr field like
this ObjPtr.Value = nVar, does it automatically establishing the link or is
this "wrong" way and I should do it like this
nChartID = .AddRecord
Set lnk = mChartDB.Link(lnkGroupId)
lnk.LinkRecords nGroup, nChartID
Instead?
Ok now I "think" my mind is empty, but you never know :')
/Joakim
More information about the Valentina
mailing list