Answer the question
In order to leave comments, you need to log in
What database to choose for the server on Node.js?
To an existing server (written in Node.js+Express.js) you need to add a new feature: a database.
Answer the question
In order to leave comments, you need to log in
Redis is an open source (BSD license) in-memory data structure store used as a database
Access to DB Read Only. Those. after the server is put into operation, the DB does not change.
Search for the desired entry by one ID.
SQLite.
Why?
You can keep the entire database even on disk in one file, even in memory (in-memory).
Instead of your bicycle, write a SQL query or compose it with query builder / ORM and get an answer.
For speed - to expose the necessary indexes on the table.
CSV is a somewhat hardcore solution despite advice from some. If you need to change some data / structure in the future, you will have to change the entire file. And so it can change the table with one request.
Unlike Redis, you can keep data on disk as well, if needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question