redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.11k stars 112 forks source link

Simplify model_key_prefix default #522

Open frozenBranch opened 1 year ago

frozenBranch commented 1 year ago

I'm proposing this change to make sure that the default value for model_key_prefix is useful for non-advanced users. Currently the model_key_prefix default value includes the modules path, which is inconvinient if the path of the model changes (could be the file name or some parent folder).

This change would make it a bit more similar to how traditional SQL ORM's handle table names, the index name by default would just be :ModelName: