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

请教下hugegraph的分页机制原理 #253

hklmuaqmn opened this issue Dec 1, 2018 · 2 comments


Copy link

@hklmuaqmn hklmuaqmn commented Dec 1, 2018

我们现在查询顶点用的是hugegraph提供的一个分页查询接口, 每次下一页的pageid需要从上一页的response中获取, 请问, 这个pageid是依据什么原则产生的? 现在由于顶点个数较多,按2000/页总共有2W页, 顺序获取pageid 太麻烦了, 请问这个pageid 每次获取都是不一样的么? 比如我今天获取了2w个pageid, 明天我可以不顺序获取pageid了, 直接拿今天的pageid可以直接进行查询么? 期待解惑,谢谢!!!


This comment has been minimized.

Copy link

@Linary Linary commented Dec 5, 2018

pageid 的生成规则是将下一页的第一条记录的 id 进行 base64 编码。比如分页大小为100,那取完第一页顺带的 pageid 就是第 101 条的 id 的 base64 编码值,下一个就是第 201 条的编码值。

如果你的数据没有变,且每次都以相同的页面大小获取,那每一页的 pageid 都是固定的。


This comment has been minimized.

Copy link

@hklmuaqmn hklmuaqmn commented Dec 7, 2018


@hklmuaqmn hklmuaqmn closed this Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.