[storm] Cache for nonexistent result
Free Ekanayaka
free at 64studio.com
Fri Jan 16 07:03:23 UTC 2015
Hi Ivan
On Thu, Jan 15, 2015 at 10:23 PM, Ivan Zakrevskyi <
ivan.zakrevskyi at rebelmouse.com> wrote:
> Hi all.
>
> Storm has excellent caching behavior, but stores in Store._alive only
> existent objects. If object does not exists for some key, storm makes
> DB-query again and again.
>
> Are you planning add caching for keys of nonexistent objects to prevent
> DB-query?
>
If an object doesn't exist in the cache it meas that either it was not yet
loaded at all, or it was loaded but it's now mark as "invalidated" (for
example the transaction in which it was loaded fresh has terminated).
So I'm note sure what you mean in you question, but I don't think anything
more that could be cached (in terms of key->object values).
Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/storm/attachments/20150116/b435a23b/attachment.html>
More information about the storm
mailing list