syncjournaldb: index e2eMangledName column in metadata
authorJan Schmidt <jan@centricular.com>
Thu, 3 Sep 2020 12:51:58 +0000 (22:51 +1000)
committerJan Schmidt <jan@centricular.com>
Thu, 3 Sep 2020 12:56:14 +0000 (22:56 +1000)
commit3077a1378b5575cf24651bf70cfdffa6b6ce13b4
tree8fa6d1678c9f2dfa0bde301cede29d5124bc6d8b
parentfd29a0ae57a162e0d4f1fa165533d6494f2ba54e
syncjournaldb: index e2eMangledName column in metadata

Add an index on the e2eMangledName column in the metadata table
to speed up file sync by orders of magnitude on directories with
a large number of files.

Signed-off-by: Jan Schmidt <jan@centricular.com>
src/common/syncjournaldb.cpp