dcsimg
How-To: Effective serialization of large number (20K+) of objects
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Landon
Posted On:   Friday, August 30, 2002 09:13 AM


Any ideas on how to more efficiently serialize an object hierarchy of 20,000 - 30,000 objects? We already use compression. Takes quite a while... Can we use multiple threads to write the object?

Re: How-To: Effective serialization of large number (20K+) of objects

Posted By:   Samuel_Terrell  
Posted On:   Wednesday, September 4, 2002 10:31 PM

Have you considered storing them in a relational database?



I don't know much about your data, but in most cases of having to deal with large numbers of objects to persist, you can keep track of which are "dirty" or write them as you get them in.



If you are just dealing with 20-30K objects coming in constantly, you should really consider J2EE and Entity beans, or adding functions to the objects to have them persist themselves to a JDBC connection. If you can't spend money to do it, get a copy of MySQL or PostgreSQL or FireBird or SAPDB.



Also, compression will make it take longer to store.


-Sam
About | Sitemap | Contact