[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: long delays first time in when calling business entity via DOH

Status
Not open for further replies.
P

Peter Judge

Guest
Darren, The DOH does read the .gen file on first request for that service and adds the info to its cache. There are other caches that are loaded on first contact that may also contribute to that slowness. You can preload those caches from the session startup procedure using code* similar to OpenEdge.Web.DataObject.ServiceRegistry:RegisterAllFromFolder( substitute ( '&1/openedge' , os-getenv ( 'CATALINA_BASE' ))). This method loads all .gen and .map files in the given folder. The ServiceRegistry class also has a RegisterFile() method if you want to load just a single mapping file. The ServiceRegistryLoader (which does the work) doesn't have any logging showing how long a file takes to load. I've added OCTA-18558: DataObjectHandler's ServiceRegistryLoader does not log how long files take to load for that. Please contact Tech Support if you'd like your name added to that issue. * since we don't ship a session startup procedure we can't automatically pre-load the caches. -- peter

Continue reading...
 
Status
Not open for further replies.
Top