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
边栏推荐
- 4274. Suffix expression - binary expression tree
- AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)
- AcWing 1126. Minimum cost solution (shortest path Dijkstra)
- Data dimensionality reduction principal component analysis
- 第七章-类基础
- 2022.7.1-----leetcode. two hundred and forty-one
- xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
- MySQL function
- Function high order curry realization
- Educational codeforces round 129 (rated for Div. 2) supplementary problem solution
猜你喜欢

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

字典

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

《MongoDB入门教程》第03篇 MongoDB基本概念

AcWing 342. 道路与航线 题解 (最短路、拓扑排序)

定了,就是它!

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

Common problems and description of kt148a voice chip IC development

搭建主从模式集群redis

AcWing 1126. Minimum cost solution (shortest path Dijkstra)
随机推荐
Watchful pioneer world outlook Architecture - (how does a good game come from)
自動生成VGG圖像注釋文件
SQLite 3.39.0 发布,支持右外连接和全外连接
《代碼整潔之道》讀書筆記
开始练习书法
高并发下如何避免产生重复数据?
Refactoring: improving the design of existing code (Part 1)
NMF-matlab
Bubble sort array
Codeworks round 802 (Div. 2) pure supplementary questions
AcWing 1128. 信使 题解(最短路—Floyd)
KS004 基于SSH通讯录系统设计与实现
KT148A语音芯片ic的用户端自己更换语音的方法,上位机
《重构:改善既有代码的设计》读书笔记(上)
Py's interpret: a detailed introduction to interpret, installation, and case application
AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)
Set up sentinel mode. Reids and redis leave the sentinel cluster from the node
2022.7.1-----leetcode. two hundred and forty-one
AcWing 1126. 最小花费 题解(最短路—dijkstra)
Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
