Storing images/CLOB objects in vertica?

Moderator: NorbertKrupa

Post Reply
chethanm@hp.com
Newbie
Newbie
Posts: 5
Joined: Mon Nov 12, 2012 7:01 am

Storing images/CLOB objects in vertica?

Post by chethanm@hp.com » Wed Nov 21, 2012 3:16 pm

Hi,
Any one can explain us how we can store image objects in vertica.

Thanks in advance for your help.

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Storing images/CLOB objects in vertica?

Post by JimKnicely » Wed Nov 21, 2012 7:59 pm

Hello,

Vertica is an analytic database... In my opinion it doesn't make much sense to store image data in it. Preferably, you can store meta data about the image like type, size, files pointer, etc.

However, if you must, you can always store image data in a varchar column if your image is < the maximum size of a varchar which is 65,000 bytes. If your image is bigger than 65,000 bytes then you have to break the data into chunks that can fit into multiple varchar columns... You'll have to re-assemble the chunks when you query the data.

Keep in mind that if you are backing up tables containing a bunch of 65,000 byte columns your probably going to run into performance issues.

Hope this helps!
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “Vertica Database Development”