Tuesday, 2 May 2017

Nodejs upload file in memory and search (with regex?) for speed

Cache and Search: Does anyone have a sample nodejs code on how to read a file (around 30M) in nodejs memory and then search it based on a user search pattern? This pattern could be anything for different users. I currently have nodejs connected to a store where I run a query based on the pattern but it is not fast enough. I am looking for a fast response instead of going to backend every time. I am thinking regex can be used for search on nodejs memory but I am open for easier ideas or implementations.

OS: Linux Nodejs Version: v7 File: JSON format



via Mitch

No comments:

Post a Comment