Skip to content

Add entity changelog queries for bulk updating - #1183

Open
InfiniteStash wants to merge 2 commits into
stashapp:masterfrom
InfiniteStash:entity-changelogs
Open

Add entity changelog queries for bulk updating#1183
InfiniteStash wants to merge 2 commits into
stashapp:masterfrom
InfiniteStash:entity-changelogs

Conversation

@InfiniteStash

Copy link
Copy Markdown
Collaborator

Adds changelog queries for all entities which list all changed ids since a timestamp. The idea is stash can periodically pull all changed scenes/performers since the last check, reconcile with scenes in stash, and prompt for updating.

The advantage of this approach is it's dead simple on the stash-box side. Since we're basically only returning ids, the queries are very cheap. In theory they can be cached, but it's unlikely to be necessary.

It also means stash doesn't have to submit every single scene id in the database every time it checks for updates.

Drafted with claude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant