Skip to content

Overhead in put() due to debugging info #1034

@remko-bw

Description

@remko-bw

While profiling our NDB app, I noticed protobuf __repr__ calls appearing higher than expected in our total profile. According to the profile, These are called from within put() in _datastore_api.py.

As far as I can tell, the culprit seems to be this line, which serializes a text representation of the entire RPC put command into the info field. Could it be that this creates unnecessary overhead for large entities?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the googleapis/python-ndb API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions