gnue-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnue-dev] geasInstance.py: When are methods loaded?


From: Reinhard Mueller
Subject: Re: [Gnue-dev] geasInstance.py: When are methods loaded?
Date: 11 May 2002 09:48:35 +0200

Am Fre, 2002-05-10 um 02.02 schrieb Jens Müller:
> When will the methods be loaded and the method table created? In
> __init__ or when a method is called?

I see 3 possibilities actually:
1. at application server startup
2. at creation of a business object instance
3. whenever it is called

1 means that you have to restart the server every time a method is
changed. This can be a big problem in a live system.

2 probably means a high performance impact, especially because all
available methods of an object are loaded even though most of them will
not be used at all

IMHO the best way to go would be 3 with some caching of already loaded
mehtods, defining a means for _very_fast_ access to the method code (for
example storing the code in the database), rereading the method (or a
checksum) from the database every time it is called and only
reloading/recompiling it when it has changed since the last time.

> How are triggers implemented? As methods?

Yes. Triggers are methods that are called automatically.

Thanks,
-- 
Reinhard Mueller
GNU Enterprise project
http://www.gnue.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]