Can this package be used in replacement of redis ? #466
-
Versions
package: mongo-memory-server What is your question?I have to process large set of arrays coming from MongoDb atlas. I use json files to store temporary results of my processing. I would like to know if I could use mongo-memory-server instead of redis to store my temporary results |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
this package here ( its like manually starting an local instance of |
Beta Was this translation helpful? Give feedback.
-
It's a terrible idea. Redis is an entirely different database paradigm. MongoDB documents will always be slower than a key/pair database lookup table, especially one as optimized as redis. Understand that they are fundamentally different in database design, and not just in the fact that redis runs direct from memory. If you wan't to learn about this general idea look at this video, I saw it earlier today: |
Beta Was this translation helpful? Give feedback.
It's a terrible idea. Redis is an entirely different database paradigm. MongoDB documents will always be slower than a key/pair database lookup table, especially one as optimized as redis. Understand that they are fundamentally different in database design, and not just in the fact that redis runs direct from memory.
If you wan't to learn about this general idea look at this video, I saw it earlier today:
https://www.youtube.com/watch?v=W2Z7fbCLSTw&t=4s