Java - Store HashSet in mysql -


how go storing hashset unknown size in mysql table. know can loop through , store longtext field.

however when retrieve field , store string temporarily use memory store huge string of info.

is there easy way store hashset?

a sql table indexed columns hash set.

you shouldn't try store (persist) binary representation of hashset in table. should store (persist) data of hashset rows , columns , read data hashset on java side.

in other words, should using database store data directly rather saving serialized representation of java collection holds data. that's database meant do... store/persist data in structured, consistent manner. if need serialize hashset why bother database @ all?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -