Discover Packages
github.com/weisiduan/pgranger
example
userprofile
command
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Mar 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Prerequisites:
First install golang-migrate CLI.
https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
Also install docker.
Steps:
cd ~/pgranger/example/userprofile
make dockerup
make migrateup
go run main.go --configpath=$(pwd)/config.json
make migratedown
make dockerdown
Expand ▾
Collapse ▴
Documentation
¶
In this example, we have a user profile application which has its sharding key user_id spreaded over 4 ranges on 2
host shards. We then perform point data access and fan out on the shards.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.