I am looking for ideas to reduce loading times of a web application. It is a fairly big application and it takes a while for the WebApplication Administrator to make a new process (pool) available. I think I can reduce it quite a bit stopping the execution of OnConstrain events in the DataDictionaries. Most of them are user dependent so they will be rebuilt once an user logs in anyways. Is it safe to add the following code to every DataDictionary?
Code:
Procedure OnConstrain
Forward Send OnConstrain
If (not(IsLoggedIn(ghoWebSessionManager))) Begin
Procedure_Return
End
// Rest of the constrain logic for this event...
End_Procedure
Is there any other optimization which can be made appart from this?