Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Insert distinct ID error #526

Closed
yakkomajuri opened this issue Aug 13, 2021 · 1 comment
Closed

Insert distinct ID error #526

yakkomajuri opened this issue Aug 13, 2021 · 1 comment

Comments

@yakkomajuri
Copy link
Contributor

Seems we fail multiple times a second on Cloud to insert a distinct ID into Postgres.

This makes sense, given a user that triggers an event is likely to trigger multiple and we see a ton of new users (distinct IDs) every day, meaning it's quite likely two events for the same non-existent ID will end up on different threads at the same time.

We do handle this properly but:

a) we swallow errors
b) we're doing a lot of supposedly unnecessary queries and relying heavily on erroring as default behavior

I believe there should be ways to improve this. Have a couple ideas but mostly just documenting for now.

@yakkomajuri
Copy link
Contributor Author

Somewhat handled in #527

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

1 participant