alpha
Login
or
Join now
lemma.pub
/
lemma
Star
6
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Blogging platform with advanced tools for arts and sciences.
Star
6
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
lemma
/
infra
/
backfill
/
at
main
1 folder
3 files
lemma
Preserve GSI1SK across re-indexes to prevent duplicate timeline items
5w ago
894a15f1
src
Preserve GSI1SK across re-indexes to prevent duplicate timeline items When a post is re-indexed (e.g. after a publication rename or repeated backfill), upsertDocument was overwriting GSI1SK with a new Date.now()-clamped value. Because fanInExistingPosts uses GSI1SK as the timeline SK, two subscribes separated by a re-index would produce two differently-keyed timeline items for the same post rkey. Fix: read the existing GSI1SK before writing; only compute a new value if the record doesn't exist yet. This makes GSI1SK write-once and keeps fan-in idempotent across re-indexes.
1 month ago
package-lock.json
Preserve GSI1SK across re-indexes to prevent duplicate timeline items When a post is re-indexed (e.g. after a publication rename or repeated backfill), upsertDocument was overwriting GSI1SK with a new Date.now()-clamped value. Because fanInExistingPosts uses GSI1SK as the timeline SK, two subscribes separated by a re-index would produce two differently-keyed timeline items for the same post rkey. Fix: read the existing GSI1SK before writing; only compute a new value if the record doesn't exist yet. This makes GSI1SK write-once and keeps fan-in idempotent across re-indexes.
1 month ago
package.json
Upgrade dev dependency to fix alert: esbuild enables any website to send any requests to the development server and read the response
1 month ago
tsconfig.json
Initial commit
1 month ago