artsy / metaphysics

Artsy's GraphQL API
MIT License
360 stars 89 forks source link

chore: misc batched loader updates #6003

Closed mzikherman closed 1 month ago

mzikherman commented 1 month ago

In staging, was seeing that we were sometimes batching in sizes less than 20, and also when we were over-fetching.

Both of these had the same underlying cause: the loader was being invoked multiple times for the same arguments - need to dedupe those in order to guarantee we're batching at 20 (and not over-fetching).