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

Improve data loading for pgbench tests #122

Open
onderkalaci opened this issue Oct 30, 2019 · 0 comments
Open

Improve data loading for pgbench tests #122

onderkalaci opened this issue Oct 30, 2019 · 0 comments

Comments

@onderkalaci
Copy link
Member

We currently do the following:

  • Create a local table & indexes
  • Load data
  • create distributed table

The third step is slow because we're actually loading the data on the shards again, with indexes already created. This is especially becoming slow if the data size relatively high.

Instead, we can use the functions here, which skips (a) loading the data on the local table (b) creating the indexes after the data load on the distributed tables

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

No branches or pull requests

1 participant