Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

max value for rev_id in the revision table #10

Open
dmcmilla opened this issue Aug 5, 2021 · 1 comment
Open

max value for rev_id in the revision table #10

dmcmilla opened this issue Aug 5, 2021 · 1 comment

Comments

@dmcmilla
Copy link

dmcmilla commented Aug 5, 2021

The method to get the next rev_id doesn't always match the next value that will be inserted in the revision table. The revision table uses a sequence to insert the next row. In the case where a record was deleted, max +1 would not equal the next sequence # of the rev_id. It's probably not an issue on a fresh system or one where no deletes have been performed.

@shigapov
Copy link
Collaborator

shigapov commented Aug 5, 2021

Right! The main focus was indeed on a fresh Wikibase instance, without deleted entities in mind.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants