Fix Nebulex.Adapters.Multilevel.get_all/3
to call the same invoked function into the underlying levels
#139
Labels
Nebulex.Adapters.Multilevel.get_all/3
to call the same invoked function into the underlying levels
#139
Currently, when calling
Nebulex.Adapters.Multilevel.get_all/3
, it is translated into multipleget/3
operations underneath, instead of calling the same invoked function for all the levels. This causes a significant performance penalty, avoiding the underlying levels to resolve theget_all
themselves.For example, the Redis adapter is able to run the
get_all
in a single command because it supports theMGET
operation, but when using the multi-level adapter it is not being called since the adapter converts theget_all
into multipleget
s before calling the underlying adapters.The text was updated successfully, but these errors were encountered: