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
-- Set number of shard | |
ALTER DATABASE citus SET citus.shard_count = 64; | |
-- distribute the table | |
SELECT create_distributed_table('github_events', 'repo_id'); | |
-- undo that and make it local again | |
SELECT undistribute_table('github_events'); | |
-- change distribution column |