Skip to content

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

Closed
@lastzero

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

bugSomething isn't workinghelp wantedHelp with this would be much appreciated!releasedAvailable in the stable release

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions