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:
shenlong
2026-02-12 19:58:31 +05:30
committed by GitHub
parent ec4de54ea2
commit 78c8f1d5a9
22 changed files with 9002 additions and 1 deletions
@@ -441,6 +441,10 @@ typedef $$RemoteAlbumAssetEntityTableProcessedTableManager =
i1.RemoteAlbumAssetEntityData,
i0.PrefetchHooks Function({bool assetId, bool albumId})
>;
i0.Index get idxRemoteAlbumAssetAlbumAsset => i0.Index(
'idx_remote_album_asset_album_asset',
'CREATE INDEX IF NOT EXISTS idx_remote_album_asset_album_asset ON remote_album_asset_entity (album_id, asset_id)',
);
class $RemoteAlbumAssetEntityTable extends i2.RemoteAlbumAssetEntity
with