If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Persisting serialized object

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-09, 10:13
Yadrif Yadrif is offline
Registered User
 
Join Date: Sep 2008
Posts: 7
Persisting serialized object

Hi Everyone.

I have a situation where I need to persist an object that will serialized to binary.

Is the best choice of data type a BLOB?

Also, since I need to specify a length is it okay to use something like 1 GB since the field is variable length? I can assume the size of the object will never be over 1 GB.

Are there any database settings taht would need checked or modified for using BLOB data? The table will be accessed via JDBC.

I'm have DB2 v9.1 on Linux.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-11-09, 10:32
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
A BLOB is pretty much like any other data type. The only difference comes with logging in DB2 itself.

Whether a BLOB is the best choice depends on your requirements.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On