Using batch loaders with the new virtual resolvers #3338
-
It seems that in v5 our fastJoin has been upgraded to virtual resolvers. However, I believe these are susceptible to the same performance issues we saw with fastJoin. ExampleI query 1000 documents with Previously we used batch loaders to cache common lookups in a single request and speed up our api / reduce overhead on our db/network. https://hooks-common.feathersjs.com/guides.html#using-batch-loaders Is there a new solution to address this problem in v5? Do we still use batch loaders? I'm curious what the latest greatest solution are for this. Another note, I'm not interested (necessarily) in running a full scale caching solution per service, but I like the idea of temporarily caching results during the life of a single request. I'm open to convincing that full scale service caching is the way though. Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The feathers-dataloader works well with resolvers and combine simultaneous requests into one. |
Beta Was this translation helpful? Give feedback.
The feathers-dataloader works well with resolvers and combine simultaneous requests into one.