如何处理sapui5 oTable中的海量数据(> 1000万)? [英] How to handle the huge data(>10 million) in sapui5 oTable?
问题描述
我正在使用sap ui5 oTable来显示来自hana db的巨大数据.当加载大量数据时,浏览器将崩溃.因此我要从db中获取100条记录并显示每页20条记录,因此我们可以使用一个手动下一个按钮进行5个分页(5 * 20 = 100).如果我单击下一个手动按钮,我应该获得下100条记录,并且分页应该是6,7,8,9,10.但是我无法更改分页号.
I am using sap ui5 oTable for showing the huge data from hana db. While loading the huge data, the browser is going to crash.So I am fetching 100 records from db and showing the 20 records per page.So we can have 5 pagination(5*20=100) with one manual next button. If I click next manual button, I should get next 100 records and pagination should be 6,7,8,9,10.but i could not change the pagination no.
- 如何更改oTable中的默认分页号?
- 如何在oTable中实现延迟加载的概念?
- 通常如何在oTable中实现海量数据处理?
推荐答案
您的问题有点神秘
问:如果您要问,为什么odata调用一次只返回100行?
Q: If you are asking, why does the odata call only return 100 rows at a time?
填充表的ODataListBinding使用模型大小限制,默认情况下为100,然后在OData查询中使用该数字填充$ top和$ skip查询选项
The ODataListBinding which populates the table uses the model size limit, which by default is 100, this number is then used in the OData Query populating the $top and $skip query options
eg $top=100 $skip=0
仅返回前100行
问:如何更改大小限制以恢复100条以上的记录
Q: How do i change the size limit to bring back more than 100 records
oModel.setSizeLimit(999999)
这篇关于如何处理sapui5 oTable中的海量数据(> 1000万)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!