Skip to content

SQLite: Fix "too many SQL variables" error when updating the index #3742

Description

@lastzero

As a SQLite user, I want PhotoPrism not to throw a "too many SQL variables" error when optimizing the index during or after indexing.

This probably happens somewhere in the entity or query package when Db().Where("id IN (?)", photos) is expanded as part of a SQL query and photos is a slice with more than 999 values.

Related Discussion:

Metadata

Metadata

Labels

help wantedHelp with this would be much appreciated!releasedAvailable in a stable release

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions