-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Decoding step is terribly slow #1224
Copy link
Copy link
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/bigtable/hello/main.py
Did you change the file? If so, how?
I pointed the code to my custom bigtable instance containing time series data. The data ingested was much larger than that used in the sample.
Describe the issue
The decoding loop in the scan takes a long time in python
Up until partial_rows.consume_all() takes only 1 second. The following loop where the partial rows are decoded into a python data structure takes 2 seconds, tripling the total access time. I have tried condensing the data into into a single row to see if performance would improve, but it did not help much. Is there a faster way to get the decoded data out of the big table row structure and into another python data structure (such as a pandas dataframe or a numpy array of floats)?