Skip to content

Commit

Permalink
database.files_db:FilesDB - add index on original_uuid column in mast…
Browse files Browse the repository at this point in the history
…er, access, and statutory files tables
  • Loading branch information
MatteoCampinoti94 committed Oct 22, 2024
1 parent ffcd856 commit 6505990
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ def __init__(
MasterFile,
"files_master",
["relative_path"],
{"uuid": ["uuid"], "checksum": ["checksum"]},
{"uuid": ["uuid"], "checksum": ["checksum"], "original_uuid": ["original_uuid"]},
["root"],
)
self.access_files: Table[ConvertedFile] = Table(
self.connection,
ConvertedFile,
"files_access",
["relative_path"],
{"uuid": ["uuid"], "checksum": ["checksum"]},
{"uuid": ["uuid"], "checksum": ["checksum"], "original_uuid": ["original_uuid"]},
["root"],
)
self.statutory_files: Table[ConvertedFile] = Table(
self.connection,
ConvertedFile,
"files_statutory",
["relative_path"],
{"uuid": ["uuid"], "checksum": ["checksum"]},
{"uuid": ["uuid"], "checksum": ["checksum"], "original_uuid": ["original_uuid"]},
["root"],
)

Expand Down

0 comments on commit 6505990

Please sign in to comment.