高并发库存秒杀场景,阿里巴巴数据库是这样应对的

复制begin; insert into inventory_detail(inventory_id,高并user_id) values(1,1); update /*+ ccl_queue_value(1) commit_on_success rollback_on_fail target_affect_row(1) */ inventory set inventory_count=inventory_count+1 where inventory_id=1 1.2.3.
本文地址:http://www.bzve.cn/news/15e2699958.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。