This repository was archived by the owner on Mar 3, 2024. It is now read-only.
Change json to jsonb type #6
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for the great plugin!
It seems to me that it doesn't make sense to use JSON type to store metainformation data. JSONB essentially has only one disadvantage over JSON, which is write speed. But with as much data as in Obsidian storage it shouldn't make any difference. But the speed and capabilities of the binary format is significantly better.
You can read some details for example here.
For users who already have databases created, you can probably add a line to the migrate function. But here I'm not sure, because this ALTER will be done for each insertion into the database