[GODRIVER-2153] page iterator support Created: 14/Sep/21 Updated: 30/Mar/22 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | du liu | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | post-1.8.0 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Would driver can implement the `page iterator`? It may faster than `iterator`. I tried the `BatchSize` param in `cursor`, but it does not seem to be applicable in this scenario. |
| Comments |
| Comment by Kevin Albertson [ 27/Sep/21 ] | |||||||||||||||||||||
|
Hello mrliuxiansen8023@gmail.com, thank you for your patience. We will come back to this investigation after we completed urgent work for an upcoming release. | |||||||||||||||||||||
| Comment by du liu [ 15/Sep/21 ] | |||||||||||||||||||||
|
Hi Kevin, Thanks for your replay. I get this idea by reading `iterator` of `google api`.I want to specify a `page` like
Then I can get a `slice response` of items which I search.It sounds like `query page`. But it seems like easyer than `query page`. Because I don't need to cover `skip` and `limit`.
This is url: iterator package - google.golang.org/api/iterator - pkg.go.dev And here is wiki: Iterator Guidelines · googleapis/google-cloud-go Wiki (github.com)
Best Wishes, 刘笃
| |||||||||||||||||||||
| Comment by Kevin Albertson [ 14/Sep/21 ] | |||||||||||||||||||||
|
Hi mrliuxiansen8023@gmail.com, thank you for the request! Can you clarify what you mean by "page iterator" and "iterator"? If possible, please include a code snippet for how the desired feature would behave. Sincerely, Kevin |