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
边栏推荐
- Horizontal ultra vires and vertical ultra vires [easy to understand]
- Quanzhi A33 uses mainline u-boot
- AcWing 340. 通信线路 题解(二分+双端队列BFS求最短路)
- AcWing 1126. Minimum cost solution (shortest path Dijkstra)
- Istio部署:快速上手微服务,
- pxe装机「建议收藏」
- 《重构:改善既有代码的设计》读书笔记(下)
- zabbix5客户端安装和配置
- Refactoring: improving the design of existing code (Part 1)
- 4274. 后缀表达式-二叉表达式树
猜你喜欢

Educational codeforces round 129 (rated for Div. 2) supplementary problem solution

zabbix5客户端安装和配置
![[error record] problems related to the installation of the shuttle environment (follow-up error handling after executing the shuttle doctor command)](/img/c1/a00425f2e1824a50644c8fbb15fe38.jpg)
[error record] problems related to the installation of the shuttle environment (follow-up error handling after executing the shuttle doctor command)

Py's interpret: a detailed introduction to interpret, installation, and case application

Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出

程序猿入门攻略(十二)——数据的存储

《架构整洁之道》读书笔记(下)

Istio1.12:安装和快速入门

AcWing 340. 通信线路 题解(二分+双端队列BFS求最短路)

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
随机推荐
4274. Suffix expression - binary expression tree
450-深信服面经1
451-memcpy、memmove、memset的实现
Advanced performance test series "24. Execute SQL script through JDBC"
Infix expression is converted to suffix expression (C language code + detailed explanation)
452-strcpy、strcat、strcmp、strstr、strchr的实现
Istio1.12:安装和快速入门
从20s优化到500ms,我用了这三招
Dictionaries
PXE installation "recommended collection"
453-atoi函数的实现
Build a master-slave mode cluster redis
程序猿入门攻略(十二)——数据的存储
KS004 基于SSH通讯录系统设计与实现
Typescript 之 快速入门
《重构:改善既有代码的设计》读书笔记(上)
Notes de lecture sur le code propre
Embedded (PLD) series, epf10k50rc240-3n programmable logic device
4274. 后缀表达式-二叉表达式树
AcWing 342. Road and route problem solving (shortest path, topological sorting)
