× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nathan Andelin skrev:
From: Bradley V. Stone
But again I'd guess in most cases that ID is stored in DB file(s) and
looked up on each request, not in memory.


I bet a lot of RPG-CGI programs use DB files to store session data, but I get the impression that Java objects are "serialized" to stream files, and typically larger - a developer may dump an SQL result set to a "collection" and store it in a "session", for example. Maybe it depends on the application.
Serialization in Java means that you flatten an arbitrary memory structure into a byte sequence (which can then be further manipulated like stored in a file or in a database table) after which the memory structure is often removed. It can then be reconstructed by deserializing the byte stream, resulting in a new memory structure equal to the old one (if all goes well).

The usual reason for developers saving whole database results in memory is to my knowledge that you need carefully crafted database specific SQL to retreive results page by page. This has become much easier with e.g. Hibernate and JPA which explicitly allow paging results and hide the database specific issues.
If you can store session data in a database you automatically take a performance hit as you need to restore the session data from the database for every request. This WILL take time and limit the amount of requests you can handle pr second. I'd like to hear actual numbers from what this takes on the AS/400, as database access can be very expensive on other platforms.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.