Title: Question: How to optimize load_data-Operation · Issue #2960 · googleapis/google-cloud-python · GitHub
Open Graph Title: Question: How to optimize load_data-Operation · Issue #2960 · googleapis/google-cloud-python
X Title: Question: How to optimize load_data-Operation · Issue #2960 · googleapis/google-cloud-python
Description: I want to copy my MySQL data (>200 Mio. rows) to BigQuery. Therefore I created a python script, which uses this library. At the moment it streams 1000 rows with one request and it generates about 1,1 requests/second. This is not really f...
Open Graph Description: I want to copy my MySQL data (>200 Mio. rows) to BigQuery. Therefore I created a python script, which uses this library. At the moment it streams 1000 rows with one request and it generates about 1...
X Description: I want to copy my MySQL data (>200 Mio. rows) to BigQuery. Therefore I created a python script, which uses this library. At the moment it streams 1000 rows with one request and it generates abou...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/2960
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: How to optimize load_data-Operation","articleBody":"I want to copy my MySQL data (\u003e200 Mio. rows) to BigQuery. Therefore I created a python script, which uses this library. At the moment it streams 1000 rows with one request and it generates about 1,1 requests/second. This is not really fast and it would take me days to transfer the whole dataset. I am sure that this can be optimized, but I don't know how. Would you have some suggestions? You can find my source code [here](https://github.com/inkrement/MySQLbq/blob/e8f484a5aac93dc77f687457424995a72ad4460b/run.py)\r\n\r\nI thought about the following points:\r\n\r\n * Each request contains 1000 rows, should I choose a bigger number?\r\n * Does this library use gzip per default?","author":{"url":"https://github.com/inkrement","@type":"Person","name":"inkrement"},"datePublished":"2017-01-23T21:51:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/2960/google-cloud-python/issues/2960"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17a4debd-78d6-7b2e-e879-d66420ae58e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5C2:275A80:FD689:15659D:6A4D2FB0 |
| html-safe-nonce | 4c769dcfac3b9c061d87d30e2a84020f0f2922a464076fdfcdf417edd57c3eee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUMyOjI3NUE4MDpGRDY4OToxNTY1OUQ6NkE0RDJGQjAiLCJ2aXNpdG9yX2lkIjoiMjQ4NjY0Nzk3MDA4Mzk3NTA4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 943db0438a23bc23a6f52aeba588e650ba3efd7d8ee769b1cb8712c845f14872 |
| hovercard-subject-tag | issue:202661279 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/2960/issue_layout |
| twitter:image | https://opengraph.githubassets.com/195bf8463429144f8891eb5551dc81875f4a0b8cade605497a5607e428ff85ea/googleapis/google-cloud-python/issues/2960 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/195bf8463429144f8891eb5551dc81875f4a0b8cade605497a5607e428ff85ea/googleapis/google-cloud-python/issues/2960 |
| og:image:alt | I want to copy my MySQL data (>200 Mio. rows) to BigQuery. Therefore I created a python script, which uses this library. At the moment it streams 1000 rows with one request and it generates about 1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | inkrement |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width