mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
avoid always printing "vector reindexing complete"
This commit is contained in:
parent
a96026c821
commit
1691706666
@ -76,7 +76,7 @@ The easiest option is to have both extensions installed during the migration:
|
||||
2. [Install VectorChord][vchord-install]
|
||||
3. Add `shared_preload_libraries= 'vchord.so, vectors.so'` to your `postgresql.conf`, making sure to include _both_ `vchord.so` and `vectors.so`. You may include other libraries here as well if needed
|
||||
4. If Immich does not have superuser permissions, run the SQL command `CREATE EXTENSION vchord CASCADE;` using psql or your choice of database client
|
||||
5. Start Immich and wait for the log `Vector reindexing complete` to be output
|
||||
5. Start Immich and wait for the logs `Reindexed face_index` and `Reindexed clip_index` to be output
|
||||
6. Remove the `vectors.so` entry from the `shared_preload_libraries` setting
|
||||
7. Uninstall pgvecto.rs (e.g. `apt-get purge vectors-pg14` on Debian-based environments, replacing `pg14` as appropriate)
|
||||
|
||||
|
@ -222,7 +222,6 @@ export class DatabaseRepository {
|
||||
|
||||
if (promises.length > 0) {
|
||||
await Promise.all(promises);
|
||||
this.logger.log('Vector reindexing complete');
|
||||
}
|
||||
}
|
||||
|
||||
@ -255,6 +254,7 @@ export class DatabaseRepository {
|
||||
SET DATA TYPE ${sql.raw(schema)}vector(${sql.raw(String(dimSize))})`.execute(tx);
|
||||
await sql.raw(vectorIndexQuery({ vectorExtension, table, indexName, lists })).execute(tx);
|
||||
});
|
||||
this.logger.log(`Reindexed ${indexName}`);
|
||||
}
|
||||
|
||||
private async setSearchPath(tx: Transaction<DB>): Promise<void> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user