You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some transforms require computations that can be cached to increase performance and decrease the number of database requests. An idea would be to cache these results in the directory. We'd need to handle invalidation, since the computations are not perpetually valid.
The text was updated successfully, but these errors were encountered:
Use diskcache instead! Much better, handles everything you need out of the box, has a FIFO queue for storage size handling, invalidates everything at a given time, and serializes into pickles. And serializes at both object and function level using decorators. BTW, os.makedirs has an exist_ok flag so you don't need that custom method.
Although it seems a bit overkill maybe? If we have time to learn it, I'm sure it'd be worth the investment, but this is a pretty simple file-caching case, so we don't need a lot of bells and whistles.
Some transforms require computations that can be cached to increase performance and decrease the number of database requests. An idea would be to cache these results in the directory. We'd need to handle invalidation, since the computations are not perpetually valid.
The text was updated successfully, but these errors were encountered: