lsbardel / python-stdnet

Object-data mapper and advanced query manager for non relational databases
http://lsbardel.github.com/python-stdnet/
BSD 3-Clause "New" or "Revised" License
120 stars 20 forks source link

Recover from data losing? #45

Closed kuno closed 12 years ago

kuno commented 12 years ago

For some strange reasons, I lost some data yesterday.

Fortunately, I have some old redis dump files. I has dumped the dump file into json format, and I saw some patterns in the names keys, such: 'stdnet.xxx.xxx:obj', 'stdnet.xxx.xxx:id', 'stdnet.xxx.xxx:idx'.

Can you explain these low level patters for me? And I wandering Is there a way I can find back some lost data by merge the current dump file with old dump files?

thanks --kuno

kuno commented 12 years ago

Also, I fount out that if one particular object was lost, the other objects that associated to it with a Foreignkey relationship will also lost silently. Can I change this behavior?

lsbardel commented 12 years ago

Some information are provided here.

http://lsbardel.github.com/python-stdnet/backends/redis.html#redis-server

I'll try to improve the docs.

http://lsbardel.github.com/python-stdnet/model/models.html#data-server-metaclass