Skip to content

Updating models? #51

Closed Locked Answered by vexy
igr asked this question in Q&A
Oct 9, 2022 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

What happens when a model gets updated?

Unfortunately, Fridge fails to unfreeze a model that gets changed meanwhile. Reason for this unwanted behavior is internals of the freezing sub-system (file storage).

As this may lead to extra responsibility of the storage layer and increase complexity - which is tried to be avoided by "moving" these tasks to a upper layers - this is known limitation.

However, this may be sort of workaround solution:

  • drop original model
  • setup new (changed structure)
  • freeze it again

Eventually, this may be wrapped into standalone function, named eg. swap(..) ?

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@igr
Comment options

@vexy
Comment options

vexy Oct 11, 2022
Maintainer

Answer selected by vexy
Comment options

You must be logged in to vote
7 replies
@igr
Comment options

@igr
Comment options

@vexy
Comment options

vexy Oct 11, 2022
Maintainer

@igr
Comment options

@igr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Optimization ⚙️ Improvement or optimization proposal New feature 💡 New functionality or feature
2 participants
Converted from issue

This discussion was converted from issue #50 on October 10, 2022 22:42.