Results 1 to 3 of 3
- 02-03-2013, 10:05 PM #1
Senior Member
- Join Date
- Oct 2011
- Location
- Sweden
- Posts
- 123
- Rep Power
- 0
Storing large amounts of data in a user application
Hello everyone, this is not a question regarding any code, but a question where I hope some of you more experienced developers can give me some tips on how to accomplish what I want.
I have previously coded an application in java that lets the user keep a record of their wine cellar. This works well, though I want to add more functionality and features to it so that it supports some other end users desires.
Basically, I need to figure out a way to store data in a good way. What would be nice is to work with an SQL-database, but of course, this is a serverless application so that is not an option. I've previously worked with MS Access and Java connections to it, and that would work. The thing with this is that every user would need the JDBC-driver installed to be able to let the program access the MS Access .accdb-file. Therefore, I do not really see this as an option.
In my previous version, I've stored all the data in an ArrayList that is serialized to a file. I get the feeling that this is a "clumsy" way of sorting things out, and that there is a more simple and straightforward solution for my task. I've looked into SQLite, for a standalone internal database, but it seem that it cannot support more than a few datatypes (String, short, int, float and double are supported. [Source]
The good thing with a database is that I would be able to write simple queries to fetch the data that I need to be displayed to the user. This way I do not need to read a special file containing the serialized ArrayList.
Any thoughts and hints on what I can use to achieve this would be helpful!
Thank you! =)
/Z
- 02-03-2013, 11:03 PM #2
Senior Member
- Join Date
- Feb 2012
- Posts
- 219
- Rep Power
- 2
Re: Storing large amounts of data in a user application
I believe that SQlite can store Binary data. Perhaps the wrapper you are looking at doesn't support it, but I am sure it can. Another option is to use SQL to store the location of a file. That way if you wanted to pull X user's data, you would look in the table for X user and it would have the directory or path of the file you need.
- 02-03-2013, 11:10 PM #3
Senior Member
- Join Date
- Oct 2011
- Location
- Sweden
- Posts
- 123
- Rep Power
- 0
Similar Threads
-
Searching Through Large Amounts of Data
By atomant in forum New To JavaReplies: 17Last Post: 06-11-2012, 11:28 AM -
Thoughts about how to bit shift large amounts of data
By whytheheckme in forum New To JavaReplies: 3Last Post: 07-08-2011, 12:48 AM -
How to save large amounts of similar objects?
By nieuwenhuizen-jk in forum New To JavaReplies: 12Last Post: 05-13-2011, 03:21 PM -
what's the fastest method of storing and retrieving large amounts of data in Java?
By 2potatocakes in forum New To JavaReplies: 1Last Post: 12-28-2008, 10:25 AM -
parsing/storing large text data
By hkansal in forum New To JavaReplies: 4Last Post: 10-19-2008, 06:34 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks