I am using LokiJS in Node Express Web Application.
Use case is as follows
- For every request on Node JS, I will bring the data from SOLR and insert into LokiJS Database.
- Create some dynamic views in in-memory LokiJS DB
- Update records in dynamic views
- Perform count of records in dynamic views
This Node JS Web Application will be multi user application. And there could be multiple request from different users performing above Use Case in the application.
For this scenario, Creating a New In-memory DB for every request will have better performance or creating a new collection for every request will have better performance.
I do not need performance statistics, but only an idea to the correctness of approach.