-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Postgresql-hstore (markdown)
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# Postgres Hstore Extension | ||
|
||
## Notes | ||
|
||
* All values stored a strings | ||
* Access is done like hashes `something[:fun]` | ||
|
||
### Requirements | ||
|
||
* These columns need to be indexed and can be done so in two ways: | ||
* GIN: indexes are three types faster to search, but they take more time to index. They also take more disk space. Use it when you have more than 100K unique terms. | ||
* GiST: indexes are slower than GIN indexes, but they’re faster to update. Use it when you have up to 100K unique terms | ||
* When using Rails you can just use the `add_index` syntax | ||
* ex: `add_index :users, :preferences, using: :gin` |