Skip to content
Discussion options

You must be logged in to vote

Suppose you have two events on 2025-08-22 that both use the same effect to fetch the price data for that day. Will the 2nd run of the effect load the data from the cache?

From cache. If they are in the same processing batch, the call will be deduplicated using an in-memory cache. If they are in different batches, we'll try to load the cache from the DB first and if there's no data, execute the effect function.

The TSV file is only for populating initial cache, the actual source of truth is the database.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PaulRBerg
Comment options

Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants