java - Saving big amount of data (words): Serialization or DB -
i need save permanently big vocabulary , associate each word information (and use search words efficiently). better store in db (in table , let dbms make work of structuring data based on key) or better create trie data structure , serialize file , deserialize once program started, or maybe instead of serialization use xml file?
edit: vocabulary in order of 5 thousend 10 thousend words in size, , each word metadata structured in array of 10 integer. access word frequent (this why thought trie data structure have search time ~o(1) instead of db use b-tree or search ~o(logn)).
p.s. using java. thanks!
using db better.
many companies merged db, erp divalto using serializations , merged db performance
you have many choices between dbms, if want see data in 1 file simple way use sqlite
. advantage not need server dbms running.
Comments
Post a Comment