Editing Predicate Predicates (e.g. type) #129
-
How do I change the value of a predicate’s predicate e.g. predicate type? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you’re not running a production ledger I’d almost always advise to rebuild the schema from block 1, with the predicate changes. If you need to scale the ledger you already have and re-architect it from the beginning that is not an option. You could just update the old predicate to be deprecated: true, and make a new predicate with the desired changes. Be aware that you will need to transact the data from the deprecated predicate into the new predicate. Because Fluree treats historical data and time as a first-class citizen, you really can’t just tell a predicate to exist as a different data type, because index segments for that predicate and its values need to span not only current/future data but historical data as well. |
Beta Was this translation helpful? Give feedback.
If you’re not running a production ledger I’d almost always advise to rebuild the schema from block 1, with the predicate changes. If you need to scale the ledger you already have and re-architect it from the beginning that is not an option. You could just update the old predicate to be deprecated: true, and make a new predicate with the desired changes.
Be aware that you will need to transact the data from the deprecated predicate into the new predicate. Because Fluree treats historical data and time as a first-class citizen, you really can’t just tell a predicate to exist as a different data type, because index segments for that predicate and its values need to span not only current/fut…