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
边栏推荐
- R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线(indifference curve)
- 使用IDM下载百度网盘的文件(亲测有用)[通俗易懂]
- Pytorch版本、CUDA版本与显卡驱动版本的对应关系
- IDEA编辑器去掉sql语句背景颜色SQL语句警告No data sources are configured to run this SQL...和SQL Dialect is Not Config
- AcWing 1134. Shortest circuit counting problem solution (shortest circuit)
- Introduction of Ethernet PHY layer chip lan8720a
- pxe装机「建议收藏」
- 数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
- Digital scroll strip animation
- JS如何取整数
猜你喜欢

Chic Lang: completely solve the problem of markdown pictures - no need to upload pictures - no need to network - there is no lack of pictures forwarded to others

字典

Zabbix5 client installation and configuration

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

Data dimensionality reduction principal component analysis

嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件

xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机

Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3

JASMINER X4 1U深度拆解,揭开高效省电背后的秘密

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
随机推荐
Educational Codeforces Round 129 (Rated for Div. 2) 补题题解
AcWing 342. 道路与航线 题解 (最短路、拓扑排序)
Digital scroll strip animation
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线(indifference curve)
Common problems and description of kt148a voice chip IC development
AcWing 903. Expensive bride price solution (the shortest path - building map, Dijkstra)
Use cheat engine to modify money, life and stars in Kingdom rush
安装单机redis详细教程
Zabbix5 client installation and configuration
Function high order curry realization
450-深信服面经1
中缀表达式转换为后缀表达式(C语言代码+详解)
多端小程序开发有什么好处?覆盖百度小程序抖音小程序微信小程序开发,抢占多平台流量红利
《重构:改善既有代码的设计》读书笔记(上)
How to avoid duplicate data in gaobingfa?
Yes, that's it!
程序猿入门攻略(十二)——数据的存储
高并发下如何避免产生重复数据?
Golang concurrent programming goroutine, channel, sync
Think about the huge changes caused by variables
