BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Optimization

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General)
View previous topic :: View next topic  
Author Message
Dean Stow
Guest





PostPosted: Tue Nov 07, 2006 9:52 pm    Post subject: Optimization Reply with quote



I am currently loading all objects with a Bold List Handle that loads
all instances of the root class in order to speed things up. This
takes about 10 minutes. We are running with a propagator on a server.

I have a user that runs a HUGE report first thing every morning for
the simple reason that the program runs faster after it has been run.

I think that lazy evaluation - while good- is causing a problem here.


Is there a way to tell the Bold Engine to go ahead and calculate
everything that needs it in the background now, thus saving the lazy
evaluation for things that have changed rather than things that were
loaded at startup?

I expect I can build some code that looks at all of the derived
attributes and forces it that way, but I am hoping there is a better
way of doing it.

If I have to resort to 'brute force', what are the ramifications of
checking derived attributes during OnIdle.

Also, I saw something about FetchLinksWithObjects. The documentation
was sparse. Has anyone used this? If so, is it a call you make at
the beginning and it behaves that way for the rest of the run or do
you call it more often than that.

Any suggestions would be appreciated.

Dean
Back to top
Rolf Lampa [RIL]
Guest





PostPosted: Wed Nov 08, 2006 1:06 am    Post subject: Re: Optimization Reply with quote



Dean Stow wrote:
Quote:
Also, I saw something about FetchLinksWithObjects. The documentation
was sparse. Has anyone used this?

I once coded a method "PrefetchObjects" based on a hacked version of
this and a related method (PFetch I think it was) and related Unit.

Wasn't there a Prefetch version included in the BoldIntegrationSuite?
(at least it was some talk about it back in time).

Using smart Prefetch strategy once reduced server start time from 1hr
45min down to about 5-6 minutes for me.

Regards,

// Rolf Lampa
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.