-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Custom Store (For Storing big data )
PostPosted: Tue Sep 25, 2007 2:13 pm 
Newbie

Joined: Tue Sep 25, 2007 2:05 pm
Posts: 1
Location: San Diego
Hi,

I want to use hibernate to store a big data, which may be between 15,000 to 60,000 characters. currently I am using DAO to store in in chunks of 2000 characters. So if the data is 15000 the data is divided in 2000 chunks and store into database with multiple rows.

I will appreciate if anyone can provide their suggestion to use hibernate in this scenario.

Regards
Hitesh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 11:22 am 
Beginner
Beginner

Joined: Tue Jan 18, 2005 9:37 am
Posts: 29
Location: The Netherlands
Hi Hitesh,

The best thing to do is use a text field, this datatype can hold unlimited data.
If you generate the database with Hibernate you will get this automatically then the length is specified and very big. for example:

@Column(length=50000)

I must say, that i've never worked with such big fields, but it should work.
If you have a legacy problem(i.e. you cannot change your database layout), you should work something out with Collections, but that's probably not really easy...)

Regards,
Bas


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.