Performance tip - $root.$prefs.$maxCacheClasses
Mike Matthews
omnis at lineal.co.uk
Mon Dec 22 03:45:11 EST 2014
As always, use cacheing with care. When Studio goes BOOM, and it does, I have lost changes to certain class types when this happens. So the more that are cached, the more chance there is of loosing the data as it is cached and may not be properly saved back to disk.
I often loose changes to Queries, even if I have closed the class window, these change are only saved HARD, i.e. back to disk when I quit Studio and restart.
We always provide RAID cards for our servers with a battery backup in case the power fails AND the UPS runs out. So don't get tricked into using caches too much.
Mike
Mike Matthews,
Managing Director, SQLWorks Software Ltd
SQLWorks replaces Sage, ACT!, Opera, Access, SAP
On 22 Dec 2014, at 04:06, Doug Easterbrook <doug at artsman.com> wrote:
> hi all:
>
> I was playing around with our Omnis Studio library on the weekend - which has some 3000+ classes in it. It performs really well, but I hit a small snag trying to make it perform well under the scenario where the library was not on the same drive as the application… There is a reason that I want the library on a server (macintish - network user situation)
>
> performance went down - dismally.
>
> and then I discovered my saviour — a preference that can be set at run time.
>
>
> $root.$prefs.$maxCacheClasses
>
>
> initally it was set to 300 (as it has been for years)…. and so I set it up at 5000 - just for giggles. After the initial load of my library by the omnis runtime, I got a bunch of performance back because more of the classes are being stored in ram.
>
> so if you are not aware of this setting — its worth knowing.
>
> you can also look at
> sys(190) - to see the number of classes loaded by the runtime and
> sys(191) - to see the number of classes discarded out of cache
>
>
> its really a lot faster if your app is not discarding classes out of the cache because $root.$prefs.$maxCacheClasses is set too low.
>
>
> thats my learning for the weekend. hope it helps somebody.
>
>
>
>
>
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug at artsman.com
> http://www.artsman.com
> Phone (403) 536-1205 Fax (403) 536-1210
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list