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
Cache on Server
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Cache on Server
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
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