Results 1 to 9 of 9
Thread: Saving data...?
- 03-17-2008, 11:41 AM #1
Member
- Join Date
- Mar 2008
- Posts
- 1
- Rep Power
- 0
- 03-17-2008, 11:58 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Use a database. It is the best option you have to deal with large amount of data.
- 03-17-2008, 07:39 PM #3
Member
- Join Date
- Nov 2007
- Posts
- 13
- Rep Power
- 0
What database software would you recommend is SQL a good choice? Does it work with java?
- 03-19-2008, 10:03 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes it's a good choice, and work fine with Java.
- 07-13-2008, 08:55 AM #5
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
use joafip library to save object in file
To avoid database administration you can use joafip.
This made you able to save your entire data model in file and to access to any entity without loading all in memory. This make able to manage more object that memory can contains
- 07-13-2008, 05:41 PM #6
Member
- Join Date
- Jul 2008
- Posts
- 33
- Rep Power
- 0
or you could use a map and save the object if you don't know how to connect and use a mysql db using the jconnector
:DMy community with sourcode and examples :D
Java remote image server/client working proof of concept: uitstekendeaccu.nl/tmp/
- 07-14-2008, 07:11 AM #7
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
Save and reload a map using serialization works fine, but the amount of memory is a limitation. Using joafip it is no more the case.
In following example the map is nether enterely loaded in memory.
adding value in the map
session.open();getting value from the map
map=(PTreeMap)session.getObject("myMap");
map.put(key,value);
session.closeAndWait(EnumFilePersistenceCloseActio n.SAVE);
session.open();
map=(PTreeMap)session.getObject("myMap");
value=map.get(key);
session.closeAndWait(EnumFilePersistenceCloseActio n.SAVE);
- 07-14-2008, 02:41 PM #8
the best way is to keep your data in Database say SQL using JDBC-ODBC driver
or you can save your data to a .dat or .csv file. using java.io.*;
try this out..Thanks & Regards
Subroto Bhattacharjee:)
- 07-15-2008, 03:14 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
More that the driver use in an application, DB use make more effect on the application. I mean Oracle, SQL and so on.
Similar Threads
-
Saving Blob through Hibernate
By Ed in forum JDBCReplies: 2Last Post: 01-05-2009, 05:03 AM -
Saving data in an XML file
By Thez in forum New To JavaReplies: 1Last Post: 12-08-2007, 09:24 PM -
Saving application settings
By mwildam in forum New To JavaReplies: 0Last Post: 11-16-2007, 02:30 PM -
Saving Variables
By Fish in forum New To JavaReplies: 6Last Post: 06-25-2007, 08:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks