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
边栏推荐
- 数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
- Codeforces Round #802 (Div. 2) 纯补题
- Golang:[]byte to string
- Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
- Data dimensionality reduction factor analysis
- Istio1.12:安装和快速入门
- Usage of ieda refactor
- mysql函数
- NMF-matlab
- Detailed tutorial on installing stand-alone redis
猜你喜欢
KS004 基于SSH通讯录系统设计与实现
xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
Quanzhi A33 uses mainline u-boot
《重构:改善既有代码的设计》读书笔记(上)
End to end object detection with transformers (Detr) paper reading and understanding
Common problems and description of kt148a voice chip IC development
AcWing 903. Expensive bride price solution (the shortest path - building map, Dijkstra)
Data dimensionality reduction factor analysis
Educational Codeforces Round 129 (Rated for Div. 2) 补题题解
450-深信服面经1
随机推荐
Implementation of 452 strcpy, strcat, StrCmp, strstr, strchr
Kt148a voice chip IC user end self replacement voice method, upper computer
思考变量引起的巨大变化
Implementation of 453 ATOI function
451 implementation of memcpy, memmove and memset
From 20s to 500ms, I used these three methods
Zabbix5 client installation and configuration
450 Shenxin Mianjing 1
How to avoid duplicate data in gaobingfa?
Notes de lecture sur le code propre
多态的理解以及作用
450-深信服面经1
KT148A语音芯片ic的软件参考代码C语言,一线串口
Correspondence between pytoch version, CUDA version and graphics card driver version
Use cheat engine to modify money, life and stars in Kingdom rush
Reading notes of "the way to clean structure" (Part 2)
Embedded (PLD) series, epf10k50rc240-3n programmable logic device
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
注解开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
蓝牙芯片ble是什么,以及该如何选型,后续技术发展的路径是什么