mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 09:38:43 +03:00
chore: add indexes for foreign keys (#25925)
* chore: add indexes for foreign keys * update idx_asset_face_person_id index --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -455,6 +455,10 @@ typedef $$PersonEntityTableProcessedTableManager =
|
||||
i1.PersonEntityData,
|
||||
i0.PrefetchHooks Function({bool ownerId})
|
||||
>;
|
||||
i0.Index get idxPersonOwnerId => i0.Index(
|
||||
'idx_person_owner_id',
|
||||
'CREATE INDEX IF NOT EXISTS idx_person_owner_id ON person_entity (owner_id)',
|
||||
);
|
||||
|
||||
class $PersonEntityTable extends i2.PersonEntity
|
||||
with i0.TableInfo<$PersonEntityTable, i1.PersonEntityData> {
|
||||
|
||||
Reference in New Issue
Block a user