Cache on Server

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Cache on Server

Post by dominique »

Hi everyone

Does anyone know how to cache data on a web server/application server? We like to use a cache for mostly static data to get the "best" performance.

Thank you in advance
dominique
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Cache on Server

Post by Stewart Marshall »

Hi Dominique

When running a VL WebPage, the best technique is to store static data in memory on the client. All you need do is look up an entry in a collection or working list, depending on your preference. This avoids unnecessary calls to the webserver, making your application even more efficient.

Depending on the volume of static data, it may be worth simply downloading it all when the application starts. If you have the typical code table files with a few hundred records, you may find that it's really only a few Kb of data. Alternatively, you can load on demand the first time you try to access the table.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply