Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for adding page index in to traverseiterator RpcClient method. #750

Open
RawichK opened this issue Aug 24, 2022 · 1 comment
Open

Comments

@RawichK
Copy link

RawichK commented Aug 24, 2022

Summary or problem description
TraverseIterator method of RpcClient has a limitation when the frontend needs data in the middle or end of the Iterator.
Therefore, developers will need to traverse the very long list of an Iterator e.g. 1,000 or even 10,000 to get the information they want in case the session was cut.

Do you have any solution you want to propose?
I proposed to add pageIndex as an additional to sessionId, id, and count. To access data from where it left of.

Where in the software does this update applies to?

  • Plugins: RpcServer
@roman-khimov
Copy link
Contributor

in case the session was cut.

In this case you'll need to get a new iterator and you'll really get a new one, meaning the state it has can differ from the state of the previous one (unless you're using historic invocations implemented in NeoGo). This makes paging harmful, you can easily get duplicates or miss some elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants