Open woh-dev opened 5 years ago
I'm having the exact same problem. I'm wrapping composeWithDataLoader()
around my composeWithMongoose()
(composeWithDataLoader(composeWithMongoose(HumanAssignment))
) and it considerably slows down my request
Hello, is there any update here? Thanks!
I also encountered this problem
Are there any setup mistakes that I could be making that would result in Dataloader causing a massive performance hit for queries?
For the below query I am seeing average response times of
350ms
without Dataloader and a huge increase to5.9s
-11s
with Dataloader:I am setting up Dataloader by wrapping each TC
composeWithDataLoader()
and I'm not setting any options forcacheExpiration
orremoveProjection
.When I enable debug I see the following for the above query
Any thoughts on what I might be doing wrong here or where to continue debugging?
I would expect that this kind of query would represent HUGE performance gains via dataloader given that we are loading the same
user
records over and over for each chat message.