This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

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
 
It's not a secret anymore!