Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 19th, 2006, 04:51 PM
Registered User
Join Date: May 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Managing large amount of data at a time


I am building a report where for each user, I need to bring some of his data from database.Here typical scenario is,I have around 14K users records in the report, so for each user I need to connect to database and run a query and get his data.(I am using connetion pooling here)
This is making the report very slow ,instead i am planning if I could get the data of all users into memory once(may be into some java object) and get data for each user from this object.

Actually The data I get from database will be of the format

username rdate createdate
user 1 12//06/2006 11:24:46 12//07/2006 12:24:46
user 2 11//06/2006 09:24:46 12//07/2006 17:14:55

My initial plan was use scrollable result set,but that will not help me here as I do not the row number for this user,are there any search operations we can perform on the resultset object

My second approach was to put all the data into some global hash table
or hash map , fill it after you get data from database and use this for each user.But I doubt my records may even cross some times 100K.
Or which is the best data structure I can use.

Guys,I am trying to make the report as quick as possible,please suggest me some good ideas,



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
array data amount lolotboy Forum and Wrox.com Feedback 1 June 29th, 2008 11:53 AM
using autosuggest with very large amount of info jfern Javascript 1 November 2nd, 2006 07:00 AM
How display large amount of dynamic text relaytest49 ASP.NET 2.0 Professional 2 October 6th, 2006 02:19 PM
Help with large amount of text and page breaks rwodabek BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 May 12th, 2006 07:49 AM
Redirect after a certain amount of time? budman Classic ASP Basics 2 November 19th, 2003 05:15 PM

All times are GMT -4. The time now is 04:49 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.