用户表 - redis 或 postgres
Redis 通过一个称为哈希集的强大功能来保存数据并处理键值存储。
Redis 应该用于存储“客户、用户、产品、订单”等信息,还是关系数据库的工作?
Redis persists data and works on key value stores with a great feature called Hashsets.
Should redis be used to store information like 'customer, user, product, order' or is this the job of a relational database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的数据需要关系,并且出于性能原因不需要缓存它,那么 PostgreSQL 可能更适合您。 Redis 主要用于其速度能力和对高级(主要是基于键值)数据结构的支持,但像 Postgres 这样的 RDBMS 更适合用于具有关系和 ACID 要求的场景。
If your data requires relations and you don't need to cache it for performance reasons then PostgreSQL will probably suite you more. Redis is mostly used for it's speed capabilities and support for advanced (mostly key-value based) data structures, but RDBMS like Postgres are better to use for scenarios with relationships and ACID requirements.