immich/server
Thomas 3ce353393a
chore(server): don't insert embeddings if the model has changed (#17885)
* chore(server): don't insert embeddings if the model has changed

We're moving away from the heuristic of waiting for queues to complete. The job
which inserts embeddings can simply check if the model has changed before
inserting, rather than attempting to lock the queue.

* more robust dim size update

* use check constraint

* index command cleanup

* add create statement

* update medium test, create appropriate extension

* new line

* set dimension size when running on all assets

* why does it want braces smh

* take 2

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
2025-04-29 14:23:01 -04:00
..
bin feat(server): add Bash healthcheck script (#14704) 2024-12-16 15:19:18 +00:00
patches fix: patch-package install in docker build and better postgres patch (#17523) 2025-04-10 12:43:35 -04:00
resources feat: use immich hosted map tiles (#11332) 2024-07-26 15:41:09 +01:00
src chore(server): don't insert embeddings if the model has changed (#17885) 2025-04-29 14:23:01 -04:00
test chore(server): don't insert embeddings if the model has changed (#17885) 2025-04-29 14:23:01 -04:00
.gitignore feat(web): re-add open graph tags for public share links (#5635) 2023-12-11 13:37:47 -06:00
.nvmrc chore(deps): update node.js to v22.14.0 (#16132) 2025-02-15 21:29:33 -06:00
.prettierignore refactor: migrate map repository to kysely (#15348) 2025-01-17 09:14:42 -06:00
.prettierrc fix(server): lint import order (#3974) 2023-09-04 21:45:59 +02:00
Dockerfile chore(deps): update node.js to v22.15.0 (#17956) 2025-04-29 12:08:32 +02:00
eslint.config.mjs chore: finish migrating eslint config files; bump unicorn (#17200) 2025-03-31 12:18:25 +01:00
nest-cli.json chore(server): enable swagger to take class validator rules into account (#9022) 2024-04-22 18:13:44 -04:00
package-lock.json fix(deps): update typescript-projects (#17961) 2025-04-29 13:00:37 +02:00
package.json feat: api response compression (#17878) 2025-04-28 08:54:11 -05:00
start.sh fix(server): add ld_library_path in start.sh (#13686) 2024-10-22 18:41:59 -04:00
tsconfig.build.json fix: exclude e2e format (#3250) 2023-07-13 21:41:16 -05:00
tsconfig.json refactor(server): use kysely (#12857) 2025-01-09 11:15:41 -05:00