aspose file tools
The moose likes Java in General and the fly likes Processing large Set of SQL Data and MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Processing large Set of SQL Data and MVC" Watch "Processing large Set of SQL Data and MVC" New topic
Author

Processing large Set of SQL Data and MVC

Tim Jones
Greenhorn

Joined: Apr 06, 2008
Posts: 28
What is the best way to retrieve large sets of data from a database? One option I tried was to create a Method within the Model Class (MVC) and store the raw data within a Map and pass it to the Controller Class to process it, but this quickly results in OutOfMemory Exception. Another option, is to process the raw data without storing it within a Collection. The problem here is that the processing has to take place within the Controller Class, this requires opening a connection to the database and retrieving the data but this is breaking MVC Rules as it is the job of the Model to communicate with database, Controller sits in the middle and passes data from model to view and vice versa. Some suggestions will be appreciated.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Processing large Set of SQL Data and MVC
 
Similar Threads
using Turbine & its benefits
Need of Model in mvc
about MVC and connection
different approaches to MVC
CachedRowSet?