GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BigQuery: complex repeated schema fields are slow · Issue #6 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

BigQuery: complex repeated schema fields are slow #6

Copy link
Copy link
Closed
#2097
#26
Closed
BigQuery: complex repeated schema fields are slow#6
#2097
#26
Copy link
Assignees
tswast
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@grooveygr
grooveygr
opened on Jan 15, 2020
Issue body actions

When converting rows to JSON, repeated schema fields are deepcopied causing noticeable slowdowns in complex schemas.
Since conversion is performed recursively, complex schemas containing multiple levels of repeated fields (e.g. repeated list of structs each containing multiple fields of repeated structs) are copied multiple times when converting a single row - causing even further slowdown due to redundant copying.

I've created a proposal for removing the deepcopy operation. Will reference relevant PR.

Reacted by danysirota

Activity

  1. grooveygr commented on Jan 21, 2020

    @grooveygr
    grooveygr
    on Jan 21, 2020
    ContributorAuthor
    More actions

    Just to demonstrate the issue, these are the sort of profiling results one may expect when inserting a row into a complex-schema table:
    image

  2. plamut
    transferred this issue fromgoogleapis/google-cloud-pythonon Feb 4, 2020
  3. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Feb 4, 2020
  4. plamut
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Feb 4, 2020
  5. tswast
    closed this as completedin #26on Oct 7, 2020
  6. JustinBeckwith
    assigned
    tswast
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tswast
    tswast

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.