When doing a Model.select() call, any nested models in the model will mean that package does extra network calls to eagerly load the nested models.
orredis sidesteps this altogether by using lua scripts that are run on the redis server itself such that a single request is made, and any nested models are eagerly loaded on the redis server itself before the results are returned.
When doing a Model.select() call, any nested models in the model will mean that package does extra network calls to eagerly load the nested models.
orredis sidesteps this altogether by using lua scripts that are run on the redis server itself such that a single request is made, and any nested models are eagerly loaded on the redis server itself before the results are returned.
See example code It is in rust though.