Spring Batch使用几个序列表,在MySQL的情况下使用MyISAM存储引擎。我面临的问题是,我正在使用亚马逊网络服务(AWS)RDS数据库,他们的“时间点”数据库恢复功能与包含MyISAM表的数据库不兼容。
我正在寻找解决方案,让我可以将这些Spring Batch MyISAM序列表替换为InnoDB表,从而实现启用AWS RDS“时间点”数据库恢复功能。
编辑:
根据@Michael的回答,这里有一个从Java类MySQLMaxValueIncrementer
读取序列的注释:
The sequence is kept in a table; there should be one sequence table per
table that needs an auto-generated key. The table type of the sequence table
should be MyISAM so the sequences are allocated without regard to any
transactions that might be in progress.
我的具体问题是“最简单的方法是什么,可以删除MyISAM序列表并保持Spring Batch运行?”