mvolsM
Convex Community10mo ago
2 replies
mvols

Anyone have experience using the `Action

Anyone have experience using the Action Cache component? Im running into some pretty big slow downs when incorporating it when i hit an external api.

Its about 6x slower on initial fetch (with no cache hit) when querying the external api with the action cache component - compared to before with no action cache.

here are some logs showcasing the 6x latency:

[CONVEX A(actions/index:getPricing)] [LOG] 'Cached total duration: 12706ms [12.706secs]' // first call, no cache (12 seconds is dreadfully slow)
[CONVEX A(actions/index:getPricing)] [LOG] 'Cached total duration: 340ms [0.34secs]' // second call, cache (blazingly fast)

// same action call client side - without the action cache component being utilized
[CONVEX A(PokeData/actions:getPricing)] [LOG] 'Non Cached total duration: 2115ms [2.115secs]' // first call, straight action w/ no action cache
[CONVEX A(PokeData/actions:getPricing)] [LOG] 'Non Cached total duration: 2237ms [2.237secs]' // second call
Was this page helpful?