Changed all queries (selects) to use lua scripts. This was to optimize eager-loading to use only one network request as opposed to multiple.
Changed Model.deserialize_partially to receive data either as a dict or as a flattened list of key-values. This was to handle responses returned from Redis.EVALSHA
Changed the NESTED_MODEL_LIST_FIELD_PREFIX to "_" and NESTED_MODEL_TUPLE_FIELD_PREFIX to "__". This was to avoid weird regex bug in lua string.gmatch as '%' and others are special characters.
What was Done
Model.deserialize_partially
to receive data either as a dict or as a flattened list of key-values. This was to handle responses returned from Redis.EVALSHANESTED_MODEL_LIST_FIELD_PREFIX
to "_" andNESTED_MODEL_TUPLE_FIELD_PREFIX
to "__". This was to avoid weird regex bug in lua string.gmatch as '%' and others are special characters.