diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-09 13:51:54 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-09 13:51:56 -0700 |
commit | 2732c2e3ba50f28c4c8a3b244783bc70d04806fa (patch) | |
tree | f55c357663d9467fd5648850a04b5b54d42fadfe /golang | |
parent | 51f2dcada8588de2f8cde2f874b955fefbd01e97 (diff) | |
download | fatcat-2732c2e3ba50f28c4c8a3b244783bc70d04806fa.tar.gz fatcat-2732c2e3ba50f28c4c8a3b244783bc70d04806fa.zip |
changelog ID as a sequence
As noted elsewhere, auto-increment sequences in postgres, mysql, and
cockroach can have gaps: when transactions that increment a number are
rolled back, a "gap" is left.
I didn't realize this, and it's problematic for the external changelog
API. I'll need to re-write the changelog inserter to query for the
current highest number when inserting, which is unfortunate and might
slow down bulk imports.
Diffstat (limited to 'golang')
0 files changed, 0 insertions, 0 deletions