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
Post a Comment