Effect CommunityEC
Effect Community2y ago
99 replies
Patrick Roza

Issues with Batched Requests taking too long on slow machines

im having some "fun" with Batched Requests again, where on 500 items it tries to resolve the same user;
- on my fast machine, it waits 90ms, to then spend 10ms getting the record
- on slow machines this process can take like 8s

basically I fetch 500 records with a userId, then decode while my schema has batching enabled and uses a batched request resolver to resolve user ids to user records. It probably has something to do with schema and batching.
I hope to find some time soon to create a repro for that 😉
Screenshot_2024-05-17_at_10.26.08.png
Was this page helpful?