• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Local Cacheing of data from database and using it

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am new to java and writing my first spring, ibatis, blazeDS, flex 4 application.
In a Remote Object service method I am firing a query returning a large dataset and collecting it into a arraylist.
Then I am iterating through that list and refering other data from database over and over again. This is giving me
a performance hit since for every query there is connection and data retrieval overhead. Since the referred data is small
is it possible to store it in local in memory database and retrieve it by using multiple fields ?

Earlier when I was coding in delphi we used to use in memory tables with many fields and in the beginning of large
processing we used to query RDBMS for those table and save data in memory tables then fire main query
which was returning large dataset and the we were iterating through that dataset and whenever reference data was
needed we used seek memory tables with required fields and get the reference record for further manipulation.
this technique was giving us lot of performance improvement.

I would like to do same in java how can I do that ?

Thanks and best regards

Raja
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raja,
You can use Spring to set up caching with EH Cache. See spring caching for articles and examples.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic