Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial procedure to migrate large data sets to hypertable #20

Merged
merged 9 commits into from
Mar 3, 2022

Conversation

davidkohn88
Copy link
Contributor

Co-authored-by: Ryan Booz [email protected]

@davidkohn88
Copy link
Contributor Author

Fixes #19

@jonatas
Copy link

jonatas commented May 20, 2021

This is very cool! I remember the first time I was testing timescale this was the first thing I did. Try to hyper_move all the columns, but not in batches!

Maybe it can become a function available in timescaledb boosting the extra parameters of create_hypertable:

SELECT create_hypertable('sensor_data', 'time', 
  chunk_time_interval=>'1 hour'::interval, 
  migrating_from => 'sensor_data_copy',
  in_batches => 10000)

migrate.sql Outdated Show resolved Hide resolved
migrate.sql Outdated Show resolved Hide resolved
Ryan Booz and others added 6 commits May 26, 2021 17:23
@ryanbooz ryanbooz merged commit d243727 into master Mar 3, 2022
@jonatas jonatas deleted the add-migrate-proc branch March 10, 2022 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants