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:
varcharortext. allow store , retrieve xml file db. nothing more.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
Post a Comment