How to implement/ deploy a TRIE made with Python?

For the company I work for, I developed a TRIE-based structure for a search algorithm, and each node in the TRIE holds information about the product it corresponds to. For instance, a node (when represented as a key value document) will seem as follows:

"Key" = "amu", "Value" = "product name" = "Amul", "Product Details" = "xyz"

Now, I've already tried flattening the TRIE to a document structure to insert it to MongoDB, but since we need to create all conceivable combinations from the product names for search and there are about 50,000 products in the catalogue with at least 5-word product names, it is getting quite heavy and difficult to finish the TRIE creation and store the updated TRIE in NoSQL. It

Is it possible to directly store the TRIE in an EC2 or another storage and then use an API to get the results as needed? Due to the constant changes in our product-related qualities, the TRIE must be updated frequently with the most recent data.


Python Course has been used exclusively, and I'm simply investigating possible deployment strategies.

At the moment, we have a mass insertion utilising Python script that uploads flattened TRIE to NoSQL and then we get the outcomes through an API.

0

Please sign in to leave a comment.