Database: Add an index on the parent path
authorOlivier Goffart <ogoffart@woboq.com>
Sat, 20 Oct 2018 11:24:31 +0000 (13:24 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:13 +0000 (10:58 +0100)
commit58eaf9940a90e5dfcf3282af078c83a6be1c38b1
treeddabadd8afccb1ba6b760bcdd7554035114e1606
parente45e57982d1439ca1177c4ee39b9793b1e6b11ee
Database: Add an index on the parent path

So we can quickly query the items in a parent directory

This uses a custom slite3 function, which means that when downgrading the client,
or using another tool to add entries in the database, any insertion in the metadata
table will produce an error: "unknown function: parent_hash()"
(This will crash the client 2.5)
src/common/syncjournaldb.cpp
src/common/syncjournaldb.h
src/libsync/discovery.cpp