make sure all sqlite selects have indexes
Bearing in mind that these indexes are really uniqueness constraints that just happen to also make sqlite generate indexes. In Database.ContentIndentifier, the ContentIndentifiersKeyRemoteCidIndex is fine as a uniqueness constraint because it contains all rows from the table. The ContentIndentifiersCidRemoteIndex is also ok because there can only be one key for a given (cid, uuid) combination. In Database.Export, the new ExportTreeFileKeyIndex is the same pair as the old ExportTreeKeyFileIndex (previously ExportTreeIndex). And in Database.Keys.SQL, the new InodeCacheKeyIndex is the same pair as the old KeyInodeCacheIndex.
This commit is contained in:
parent
3732f27722
commit
9085a2cfec
5 changed files with 10 additions and 19 deletions
|
@ -53,6 +53,8 @@ ContentIdentifiers
|
|||
remote UUID
|
||||
cid ContentIdentifier
|
||||
key Key
|
||||
ContentIndentifiersKeyRemoteCidIndex key remote cid
|
||||
ContentIndentifiersCidRemoteIndex cid remote
|
||||
-- The last git-annex branch tree sha that was used to update
|
||||
-- ContentIdentifiers
|
||||
AnnexBranch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue