用户表 - redis 或 postgres

发布于 2024-12-25 06:07:21 字数 90 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘逸的'云 2025-01-01 06:07:21

如果您的数据需要关系,并且出于性能原因不需要缓存它,那么 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文