database - Which postgres data type should I use for large XML message come from network? -


i have incoming xml potentially big 5m , need store it postgres 9.1. data type should use ?

bytea  character varying text 

or else ?

btw xml contains binary data in base64 format, make difference when choosing data type in postgres ?

thank

you have 2 options:

  1. varchar or text. allow store , retrieve xml file db. nothing more.
  2. xml . allow store, retrieve, validate, edit, search ... xml files, may (or may not) involve overhead on storing files db.

there no reason store xml files bytea @ all. 5 mb size nothing special postgres. in last project worked strings 0.5 gb length in postgres.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -