Problem with migration during app downgrade
Problematic behavior detected when downgrading a program. High cpu load and memory leak after while without any console.log message.
Dexie function calls
I noticed that rx-migration-state-meta is constantly being recreated on deletion and updated. And there is definitely some problem in this.
All workplaces migration was just 1: (oldData) => oldData
Timestamps are constantly updated.
When deleting the IndexedDb the problem is solved. But the problem is that such behavior is hidden and it may not be noticed right away, which will lead to a problems in case of mass program downgrade.
Hi, can you create a test case to reproduce this behavior?
@pubkey Hello reproduce this in https://github.com/Elendiar/rxdb-issue-test-case
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. Please update it or it may be closed to keep our repository organized. The best way is to add some more information or make a pull request with a test case. Also you might get help in fixing it at the RxDB Community Chat If you know you will continue working on this, just write any message to the issue (like "ping") to remove the stale tag.
@Elendiar are you increasing the schema version and then redeploy it with a downgraded version number? Because this is not supported, the migration only works in one direction.
@pubkey Yes, but is it possible to handle this somehow to avoid implicit use of resources?
Not sure, I do not see any reason for downgrading a schema version at any point.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. Please update it or it may be closed to keep our repository organized. The best way is to add some more information or make a pull request with a test case. Also you might get help in fixing it at the RxDB Community Chat If you know you will continue working on this, just write any message to the issue (like "ping") to remove the stale tag.
Issues are autoclosed after some time. If you still have a problem, make a PR with a test case or to prove that you have tried to fix the problem.