| [news.eclipse.newcomer] Re: Do virtual Tables cache data? |
Chris,
Hello,
I recently tried out virtual tables and they work fine, but I've got one question: is it possible that they cache their data automatically? Because you populate the table by handling the SWT.SetData event, and this only occurs in the beginning. As soon as I've scrolled through the whole table, the event listener won't get called anymore (but the data is still displayed correctly), so I guess the table keeps its data somewhere.
Is that correct?
The reason why I'm asking is because I tried to use Ehcache for caching data (because the data is partially received over a remote database layer) so that if the amount of data is huge, Ehcache can handle reloading and so on. But since it seems to me that the table already keeps all its data, my Ehcache mechanism wouldn't be of any use of course. But I actually WANT to use it, because otherwise, memory usage will just grow and grow, and if the table has lots of data, this might be very bad.
Nice greetings Chris