Running environment :
idea、jdk8、
Dependent version springboot-2.3.0、ShardingSphere-JDBC5.1.2、mybatis-spring-boot-starter-2.1.4、tk.mybatis-2.1.5
The project is roughly divided into two pieces of data storage , Task main table and task details , The task details are divided into tables , The main table is not processed by the table splitting strategy ,
But the main table insert When ( Add is to use tk The frame is encapsulated insert Method ), There is still the problem of routing errors , Tried many times SELECT LAST_INSERT_ID() Will be obtained from different data sources , The result is always to get new id by 0
【ps: And make complaints about it ShardingSphere There are too many dependent packages , A stack of pages full 】
当前位置:网站首页>Shardingsphere jdbc5.1.2 about select last_ INSERT_ ID () I found that there was still a routing problem
Shardingsphere jdbc5.1.2 about select last_ INSERT_ ID () I found that there was still a routing problem
2022-07-02 19:41:00 【Fulfill my dream】
Take the answer 1:
It's all divided into databases and tables , Or use the snowflake algorithm to generate unique ID Well
边栏推荐
猜你喜欢

KT148A语音芯片ic的用户端自己更换语音的方法,上位机

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode

KT148A语音芯片ic的软件参考代码C语言,一线串口

Build a master-slave mode cluster redis

Py之interpret:interpret的简介、安装、案例应用之详细攻略

Data dimensionality reduction factor analysis

Kt148a voice chip IC user end self replacement voice method, upper computer

Kt148a voice chip IC software reference code c language, first-line serial port

Génération automatique de fichiers d'annotation d'images vgg

搭建哨兵模式reids、redis从节点脱离哨兵集群
随机推荐
Infix expression is converted to suffix expression (C language code + detailed explanation)
Embedded (PLD) series, epf10k50rc240-3n programmable logic device
安装单机redis详细教程
AcWing 1131. 拯救大兵瑞恩 题解(最短路)
Usage of ieda refactor
《重构:改善既有代码的设计》读书笔记(上)
KT148A语音芯片ic的软件参考代码C语言,一线串口
JS如何取整数
453-atoi函数的实现
450-深信服面经1
KT148A语音芯片使用说明、硬件、以及协议、以及常见问题,和参考代码
《重构:改善既有代码的设计》读书笔记(下)
Which video recording software is better for the computer
AcWing 1125. Cattle travel problem solution (shortest path, diameter)
编写完10万行代码,我发了篇长文吐槽Rust
SQLite 3.39.0 发布,支持右外连接和全外连接
AcWing 1134. 最短路计数 题解(最短路)
Horizontal ultra vires and vertical ultra vires [easy to understand]
Codeforces Round #802 (Div. 2) 纯补题
AcWing 181. Turnaround game solution (search ida* search)
