Hi,
Another way is to have a service manage the list. We have a reference
data list (list of streets) in our application that has >100k elements
that is stored in memory and we have a service hold one instance that is
shared between all accessors (typically the autocomplete search fields)
of the data.
The list is built when the application starts up and has defined refresh
points and then all users can just access the data through the service.
e.g.
public List<StreetData> referenceDataService.find(String streetNamePrefix);
Since we use spring and inject the service using @SpringBean it is
wrapped in a proxy that prevents the 100k element list from being
serialized with the page.
Regards,
Mike
I have One Array-list(with over 10000 objects in it) what is the best
practice for caching it so I don't have to load it over and over again in
each request?
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]