Skip to content

Commit 207c71b

Browse files
TODO
1 parent 16c8053 commit 207c71b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteIndexManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public void addFieldIndex(FieldIndex index) {
9696
db.query("SELECT MAX(index_id) FROM index_configuration")
9797
.firstValue(input -> input.isNull(0) ? 0 : input.getInt(0));
9898

99+
// TODO(indexing): Properly dedupe indices to avoid duplicate index entries (by comparing
100+
// collection_group+index_proto)
99101
db.execute(
100102
"INSERT OR IGNORE INTO index_configuration ("
101103
+ "index_id, "

0 commit comments

Comments
 (0)