biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 16 forks source link

Remove separate vector database #720

Closed mzur closed 6 months ago

mzur commented 6 months ago

The default database is now used as vector database, too.

This partially undos #670.

References https://github.com/biigle/maia/pull/150

mzur commented 6 months ago

Migration guide:

  1. After step 4.1 of the updating instructions, do a vector database dump with the command:
    docker exec -i $(docker compose ps -q vector_database) \
        pg_dump --insert --on-conflict-do-nothing --data-only -U biigle -d biigle > biigle_vector_db.sql
  2. After step 6.1, run:
    cat biigle_vector_db.sql | docker exec -i $(docker compose ps -q database) \
        psql -U biigle biigle -
  3. Delete the vector_database Docker container and volume