zooniverse / zoo-stats-api-graphql

0 stars 2 forks source link

de-dup the incoming event payloads #128

Closed camallen closed 4 years ago

camallen commented 4 years ago

use the underlying composite primary key to dedupe the upserts

fixes: "PG::CardinalityViolation: ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time HINT: Ensure that no rows proposed for insertion within the same command have duplicate constrained values"

https://rollbar.com/Zooniverse/ZooStatsGraphql/items/40/