Title: `Client.insert_rows_json()`: add option to disable best-effort deduplication · Issue #720 · googleapis/python-bigquery · GitHub
Open Graph Title: `Client.insert_rows_json()`: add option to disable best-effort deduplication · Issue #720 · googleapis/python-bigquery
X Title: `Client.insert_rows_json()`: add option to disable best-effort deduplication · Issue #720 · googleapis/python-bigquery
Description: Currently, the Client.insert_rows_json() method for streaming inserts always inserts an insertId unique identifier for each row provided. This row identifier can be user-provided; if the user doesn't provide any identifiers, the library ...
Open Graph Description: Currently, the Client.insert_rows_json() method for streaming inserts always inserts an insertId unique identifier for each row provided. This row identifier can be user-provided; if the user doesn...
X Description: Currently, the Client.insert_rows_json() method for streaming inserts always inserts an insertId unique identifier for each row provided. This row identifier can be user-provided; if the user doesn...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/720
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Client.insert_rows_json()`: add option to disable best-effort deduplication","articleBody":"Currently, the `Client.insert_rows_json()` method for streaming inserts always inserts an `insertId` unique identifier for each row provided.\r\nThis row identifier can be user-provided; if the user doesn't provide any identifiers, the library automatically fills the row IDs by using UUID4.\r\n\r\nHere's the code:\r\n```python\r\n for index, row in enumerate(json_rows):\r\n info = {\"json\": row}\r\n if row_ids is not None:\r\n info[\"insertId\"] = row_ids[index]\r\n else:\r\n info[\"insertId\"] = str(uuid.uuid4())\r\n rows_info.append(info)\r\n```\r\n\r\nHowever, insert IDs are entirely optional, and there are actually valid use cases _not_ to use them. From the [BigQuery documentation](https://cloud.google.com/bigquery/streaming-data-into-bigquery#disabling_best_effort_de-duplication):\r\n\r\n\u003e You can disable best effort de-duplication by not populating the insertId field for each row inserted. When you do not populate insertId, you get higher streaming ingest quotas in certain regions. This is the recommended way to get higher streaming ingest quota limits.\r\n\r\nThe BigQuery Python client library provides no way of omitting the `insertId`s. it would be nice to have a parameter for that.","author":{"url":"https://github.com/pietrodn","@type":"Person","name":"pietrodn"},"datePublished":"2021-06-25T15:08:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/720/python-bigquery/issues/720"}
| 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:0b6a7fc1-6644-c6e0-4f2b-dfb305c83585 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEEA:3EE845:16FE11:208896:6A4E64C9 |
| html-safe-nonce | eec04f7f21a67bf2c25cfdeaf6df9cd4111f829d7c1942ad0985aa5360d16fe1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUVBOjNFRTg0NToxNkZFMTE6MjA4ODk2OjZBNEU2NEM5IiwidmlzaXRvcl9pZCI6IjY5NjgzOTAwOTIyNzMzNzg1MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17739ed46d9934d6991c35b6448d024f9a2876266e6503ebe146d37a3e06653f |
| hovercard-subject-tag | issue:930263390 |
| 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/python-bigquery/720/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71d8517b0db315fe4802a4c52de0c44e137a8b5d439ead46e408e6d9c3e21de2/googleapis/python-bigquery/issues/720 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71d8517b0db315fe4802a4c52de0c44e137a8b5d439ead46e408e6d9c3e21de2/googleapis/python-bigquery/issues/720 |
| og:image:alt | Currently, the Client.insert_rows_json() method for streaming inserts always inserts an insertId unique identifier for each row provided. This row identifier can be user-provided; if the user doesn... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pietrodn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width