Email or username:

Password:

Forgot your password?
dansup

IG import presents an interesting problem with regards to assigning post ids.

The goal is to backdate ids of imported posts in a way that doesn’t break things.

We can’t backdate posts using snowflake ids because of the epoch, so instead we are using the id key space between auto incremented ids (which is less than 50k on pf.soc) and first snowflake ids.

This will allow for 1m users to import up to 10k posts without affecting existing ids or having to check if they are used. 😎

2 comments
tsadilas

@dansup Insta has an API that allows such a thing? 😮

SpaceLifeForm

@dansup

And it was always said that no two snowflakes are the same.

Go Up