- Use a transaction or batch inserts for better performance. - Wrap the `IPFS upload` and `metadata` insertion in a `transaction` to ensure consistency.