-
How big is too big for arrays?
Hi there,
I'm new to large databases.
I would like to make a jagged array of size [50000][about 15][10]
Is this too big? I also want to make an ArrayList that will have about 50000 values in it.
Any advice appreciated
-
If arrays and arraylists aren't suitable for storing this much data, any ideas on better ways? Hash tables maybe??
Note: I've just worked out I would need to return to the database hundreds-of-millions of times if I worked with smaller arrays (I'm doing iterations with the data) so thats not really an option.
Cheers
-
Arrays and Arraylists use integer indices, so Integer.MAX_VALUE would be as big as you could make it.
Of course, you're limited by available memory.
Also, if you're doing database things, you should probably use a database.
-
Thanks very much masher, this makes sense
-
Arrays/Lists are great for storing things while you are processing them but not great for search and retrieval. Hash tables, binary trees, maps, and other such structures are better for databases which implies (to me) that you want to search and retrieve more than process.
If your needs are for many records and long term use with meaningful relational use, then MySQL and other database packages are easily incorporated into your project.
Similar Threads
-
By Freelancer.Internet.com in forum Careers
Replies: 0
Last Post: 06-09-2009, 11:50 AM
-
By wakeup in forum Database
Replies: 0
Last Post: 05-23-2006, 04:33 AM
-
By Shivani Arora in forum Careers
Replies: 0
Last Post: 06-04-2003, 10:43 PM
-
By CProgrammer in forum Careers
Replies: 2
Last Post: 06-07-2001, 10:49 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks