limpyd / redis-limpyd

Provide an easy way to store python objects in Redis, without losing the power and the control of the Redis API
https://redis-limpyd.readthedocs.org/
Do What The F*ck You Want To Public License
72 stars 11 forks source link

New feature: rebuild index(es) #99

Closed twidi closed 6 years ago

twidi commented 7 years ago

If we update a field to be indexable there is no simple way to actually rebuild the index. Idem when removing the index, no way to delete stale data that would stay forever.

We could add these methods on fields:

The rebuild should only work in there is an index defined on the field The trash should only work if there is no index anymore

(Fields are accessible from the model via the get_field method)

And on the model:

Or maybe instead of rebuild/trash, only one that would manage both cases (cannot find a name right now)