googleapis / python-bigtable

Apache License 2.0
68 stars 59 forks source link

chore(docs): use read_rows_stream in filter samples #1020

Closed daniel-sanche closed 1 month ago

daniel-sanche commented 2 months ago

replace read_rows with read_rows_stream, as it is more efficient

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes # 🦕

igorbernstein2 commented 2 months ago

what makes this more efficient?

daniel-sanche commented 2 months ago

what makes this more efficient?

context: b/347322404

read_rows buffers the entire output before returning the resulting list, read_rows_stream streams gives a generator for acting on the results as they arrive

daniel-sanche commented 1 month ago

After discussing this offline, I think we will leave as-is