We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在OCEANBASE下,自增ID跳变会导致这里的数据量巨大,自增跳变10000000,导致数据库崩溃;请问有什么优化方案吗?
private void recordMissingReleaseMessageIds(List messages, long startId) { for (ReleaseMessage message : messages) { long currentId = message.getId(); if (currentId - startId > 1) { for (long i = startId + 1; i < currentId; i++) { missingReleaseMessages.putIfAbsent(i, 1); } } startId = currentId; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在OCEANBASE下,自增ID跳变会导致这里的数据量巨大,自增跳变10000000,导致数据库崩溃;请问有什么优化方案吗?
private void recordMissingReleaseMessageIds(List messages, long startId) {
for (ReleaseMessage message : messages) {
long currentId = message.getId();
if (currentId - startId > 1) {
for (long i = startId + 1; i < currentId; i++) {
missingReleaseMessages.putIfAbsent(i, 1);
}
}
startId = currentId;
}
}
The text was updated successfully, but these errors were encountered: