Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

购物车实现 #28

Open
zengweishi opened this issue Sep 6, 2019 · 1 comment
Open

购物车实现 #28

zengweishi opened this issue Sep 6, 2019 · 1 comment

Comments

@zengweishi
Copy link

请问你的购物车商品数据是直接放在redis而没有持久化到mysql吗?如果是这样的话是否合理呢?

@Exrick
Copy link
Owner

Exrick commented Sep 6, 2019

如果在未登录状态下,或者对购车访问量大的时候,高速的读写数据库会对数据库的压力比较大。如果商品数据发生变化时,打开购物车页面取出数据需要去校验商品的状态,更新Redis数据,这在本项目中还有待完善!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants