Bigtable node client: How to set read offset for pagination?

前端 未结 1 1913
悲&欢浪女
悲&欢浪女 2021-01-24 18:20

I\'m using createReadStream to read rows from Bigtable. I want to do some pagination with the results so limit and offset are necessary. There\'s a limit option so that\'s great

相关标签:
1条回答
  • 2021-01-24 19:07

    Using https://cloud.google.com/nodejs/docs/reference/bigtable/0.13.x/Table#createReadStream start is an option. As you retrieve the first page. you can use the last row key to set the start for the next page (will need to exclude the first result for all page counts > 1)

    0 讨论(0)
提交回复
热议问题