How to store the Trie data structure created in a database and implement to large system in production?

Viewed 358

Let's assume I have written code for creating the Trie data structure, but now I want to store the data structure in some sort of database so, if I rerun my application don't have to create a whole data structure again and storing data structure in memory for large data set is quite expensive. How can we store Trie in databases like elastic and directly fetch it from there?

0 Answers
Related