- What do you mean by “better”?
- I would run a script that uses Logseq’s own API to:
- query the database for blocks that need updating
- perform the updating
- confirm the updating
- If you need to use Python, consider Edit and run python code inside Logseq itself