wood burning stoves*
The moose likes JDBC and the fly likes When return huge amount of data to java based application, What are the guild lines and strategy sho Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "When return huge amount of data to java based application, What are the guild lines and strategy sho" Watch "When return huge amount of data to java based application, What are the guild lines and strategy sho" New topic
Author

When return huge amount of data to java based application, What are the guild lines and strategy sho

sanjey asok
Ranch Hand

Joined: Jul 11, 2009
Posts: 39
When return huge amount of data to java based application,
What are the guild lines and strategy should be followed?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

A few ideas:
1) Don't return any columns you don't need.
2) Return the data in batches. (Also consider what you are doing with the data and why you need so much. Unless you are downloading a huge report, you may need less data than you first think.)
3) Test the performance early to see how it meets your expectations.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
sanjey asok
Ranch Hand

Joined: Jul 11, 2009
Posts: 39
Return the data in batches


Is very interesting please explain how it will be implemented
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

You have a primary key for your table/data. Suppose it is a number. You could add a clause to say you only want records 1-1000, 1000-2000, etc. That way your code controls what data is returned.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When return huge amount of data to java based application, What are the guild lines and strategy sho
 
Similar Threads
JavaCertificate.com - Thanks
java.lang.OutOfMemory error while fetching data from large tables
Generating XML feed for users.
Thread from Struts Action class/Servlet
Switch cases VS. Strategy Pattern