-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reponse time 5 times slower when normalizedCache is enabled #76
Comments
data returned is of size |
Aw yea, that's not great. We definitely need more benchmarks to investigate those. One thing you can try is write to the cache asynchronously (set Besides that, it'd be interesting to know whether it's something specific to your use case or a more general thing. In apollographql/apollo-kotlin#2413, the request time went down to 600ms again once the SQLite writes were wrapped in a transaction. So I'm guessing there's something more to it that could explain the 4000ms time |
After enabling And in memory cache seems to be working perfectly fine in all 3 cases(without responseFetcher, with responseFetcher & writeToCacheAsynchronously and with responseFetcher but without writeToCacheAsynchronously). I am getting 200ms when I call same query again without relaunching the app. |
@martinbonnin Any updates on this? I tested few more variations looks like As for fetch strategies, I am using |
Hi @dush1729 ! We're working hard on optimizing the SQL cache for 3.0 and preliminary results are encouraging. It's not quite ready yet and there are a lot of moving parts at the moment but if you want to take an early look, you can try the latest 3.x dev version ( |
Version
2.4.4
Question.
This is related to 2413. When I enable normalizedCache, reponse time increases from 800ms to 4000ms. Here's how my Apollo Client look.
And this is how I call my query
The text was updated successfully, but these errors were encountered: