Skip to content

Manage Location filters too broad #21715

Description

@p4xel

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When opening "Utilities -> Manage location" there is a filter, but it triggers right when I select the year, and it takes really long to load as there are way too many photos without location in the year. It would be better to allow first select the required criteria and then a button to apply filter.

The OS that Immich Server is running on

Synology DS920+ (NVMe storage, 20GB RAM)

Version of Immich Server

v1.141.1

Version of Immich Mobile App

v1.141.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Windows 11, Firefox 142.0.1

Your docker-compose.yml content

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    #extends:
    #  file: hwaccel.transcoding.yml
    #  service: quicksync
    env_file:
      - .env
    devices:
      - /dev/dri
    group_add:
      - "video"
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      # Following are optional, you can enable and edit them in .env file
      - ${IMMICH_THUMBS}:/usr/src/app/upload/thumbs
      - ${IMMICH_ENCODED_VIDEO}:/usr/src/app/upload/encoded-video
      - ${IMMICH_MEDIA_LIBRARY}:/usr/src/app/upload/library
      # Do not edit
      - /etc/localtime:/etc/localtime:ro
    ports:
      - ${IMMICH_SERVER_PORT}:2283
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: true
    labels:
      com.centurylinklabs.watchtower.enable: true
    networks:
      custom_net:
        ipv4_address: 172.18.32.5

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    labels:
      com.centurylinklabs.watchtower.enable: true
    healthcheck:
      disable: true
    networks:
      custom_net:
        ipv4_address: 172.18.32.6


  redis:
    container_name: immich_redis
    env_file:
      - .env
    image: ${REDIS_IMAGE_LINK}:${REDIS_IMAGE_TAG}
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    labels:
      com.centurylinklabs.watchtower.enable: false
    networks:
      custom_net:
        ipv4_address: 172.18.32.7


  database:
    container_name: immich_postgres
    env_file:
      - .env
    image: ${DB_IMAGE_LINK}:${DB_IMAGE_TAG}
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    restart: always
    labels:
      com.centurylinklabs.watchtower.enable: false
    networks:
      custom_net:
        ipv4_address: 172.18.32.8

volumes:
  model-cache:

networks:
  custom_net:
    driver: bridge
    ipam:
      config:
        - subnet: 172.18.32.0/24
          gateway: 172.18.32.1

Your .env content

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
#IMMICH_VERSION=release
IMMICH_VERSION="v1.141.1"

# Postgress database docker image
DB_IMAGE_LINK=ghcr.io/immich-app/postgres
DB_IMAGE_TAG=14-vectorchord0.4.3-pgvectors0.2.0

# Redis docker image
REDIS_IMAGE_LINK=docker.io/valkey/valkey
REDIS_IMAGE_TAG=8-bookworm

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
IMMICH_SERVER_PORT=2283

# The location where immich configuration will be stored
UPLOAD_LOCATION=./data
# The location of thumbnails
IMMICH_THUMBS=./data/thumbs
# The location of transcoded video previews
IMMICH_ENCODED_VIDEO=./data/encoded-video
# The location of you media library
IMMICH_MEDIA_LIBRARY=/volume1/photo

# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Etc/UTC

Reproduction steps

  1. Open Web UI
  2. Go to Utilities -> Mange Location
  3. Select Year
    ...

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions