From bc02008d37ec4de87addbde0fb7559d92fe72820 Mon Sep 17 00:00:00 2001 From: taopeng-life <1127719959@qq.com> Date: Wed, 24 Jul 2019 12:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=89=8B=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/code-solve.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/code-solve.md b/docs/code-solve.md index ee63811..bf583cd 100644 --- a/docs/code-solve.md +++ b/docs/code-solve.md @@ -4,7 +4,7 @@ > 秒杀注意事项以及整体简略设计 #### [1.如何解决卖超问题]() - --在sql加上判断防止数据边为负数 + --在sql加上判断防止数据变为负数 --数据库加唯一索引防止用户重复购买 --redis预减库存减少数据库访问 内存标记减少redis访问 请求先入队列缓冲,异步下单,增强用户体验 @@ -175,4 +175,4 @@ │ └── miaosha-message-web │ └── miaosha-message-common │ - │ \ No newline at end of file + │