Best Practices for Dynamically Reconfiguring Index Patterns #137
-
In the Kupo documentation (https://cardanosolutions.github.io/kupo/#tag/Patterns), it is stated that dynamically managing the server's configuration is considered unsafe and may result in a loss of server data integrity. Does this mean that it's generally not advisable to reconfigure index patterns on-the-fly? Would it be better to stop and restart the server, possibly after clearing the database, whenever we need to match against a new pattern? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! The right answer is "it depends". The warnings in the documentation are meant to trigger questions. The thing with dynamic patterns is that they do not cause a re-indexing of the chain, or they do but only up until the rollback point that you provide. The entire indexer is also "optimized" for short rollbacks as they're the most common on-chain and in theory, rollbacks cannot be longer than a certain security parameter (2160 blocks on mainnet, which corresponds roughly to 18h). It also means that long rollbacks will take a few seconds if not minutes to proceed. This creates two possible sources of confusion:
If you're in a use case where you know that an output was created after a certain point or if you're only interested in the most recent outputs created then those drawbacks may not be a problem at all. |
Beta Was this translation helpful? Give feedback.
Hey! The right answer is "it depends".
The warnings in the documentation are meant to trigger questions. The thing with dynamic patterns is that they do not cause a re-indexing of the chain, or they do but only up until the rollback point that you provide. The entire indexer is also "optimized" for short rollbacks as they're the most common on-chain and in theory, rollbacks cannot be longer than a certain security parameter (2160 blocks on mainnet, which corresponds roughly to 18h). It also means that long rollbacks will take a few seconds if not minutes to proceed.
This creates two possible sources of confusion:
If there are outputs matching patterns and created before your rollback po…