提交 724518e5 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fulltext search: Data is no longer deleted and re-inserted if the indexed columns didn't change.

上级 da981679
......@@ -675,6 +675,14 @@ public class FullText {
}
}
/**
* Check if a the indexed columns of a row have changed.
*
* @param oldRow the old row
* @param newRow the new row
* @param indexColumns the indexed columns
* @return true if the indexed columns don't match
*/
static boolean hasChanged(Object[] oldRow, Object[] newRow, int[] indexColumns) {
for (int c : indexColumns) {
Object o = oldRow[c], n = newRow[c];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论