# Bootstrap Table Pipelining
Use Plugin: [bootstrap-table-pipeline]
This plugin enables client side data caching for server side requests which will
eliminate the need to issue a new request every page change. This will allow
for a performance balance for a large data set between returning all data at once
(client side paging) and a new server side request (server side paging).
There are two new options:
- usePipeline: enables this feature
- pipelineSize: the size of each cache window
The size of the pipeline must be evenly divisible by the current page size. This is
assured by rounding up to the nearest evenly divisible value. For example, if
the pipeline size is 4990 and the current page size is 25, then pipeline size will
be dynamically set to 5000.
The cache windows are computed based on the pipeline size and the total number of rows
returned by the server side query. For example, with pipeline size 500 and total rows
1300, the cache windows will be:
[{'lower': 0, 'upper': 499}, {'lower': 500, 'upper': 999}, {'lower': 1000, 'upper': 1499}]
Using the limit (i.e. the pipelineSize) and offset parameters, the server side request
**MUST** return only the data in the requested cache window **AND** the total number of rows.
To wit, the server side code must use the offset and limit parameters to prepare the response
data.
On a page change, the new offset is checked if it is within the current cache window. If so,
the requested page data is returned from the cached data set. Otherwise, a new server side
request will be issued for the new cache window.
The current cached data is only invalidated on these events:
- sorting
- searching
- page size change
- page change moves into a new cache window
There are two new events:
- cached-data-hit.bs.table: issued when cached data is used on a page change
- cached-data-reset.bs.table: issued when the cached data is invalidated and new server side request is issued
## Features
* Created with Bootstrap 4
## Usage
```
# assumed import of bootstrap and bootstrap-table assets
<script src="/path/to/bootstrap-table-pipeline.js"></script>
...
<table id="pipeline_table"
class="table table-striped"
data-method='post'
data-use-pipeline="true"
data-pipeline-size="5000"
data-pagination="true"
data-side-pagination="server"
data-page-size="50">
<thead><tr>
<th data-field="type" data-sortable="true">Type</th>
<th data-field="value" data-sortable="true">Value</th>
<th data-field="date" data-sortable="true">Date</th>
</tr></thead>
</table>
```
## Options
### usePipeline
* type: Boolean
* description: Set true to enable pipelining
* default: `false`
## pipelineSize
* type: Integer
* description: Size of each cache window. Must be greater than 0
* default: `1000`
## Events
### onCachedDataHit(cached-data-hit.bs.table)
* Fires when paging was able to use the locally cached data.
### onCachedDataReset(cached-data-reset.bs.table)
* Fires when the locally cached data needed to be reset (i.e. on sorting, searching, page size change or paged out of current cache window)
没有合适的资源?快使用搜索试试~ 我知道了~
清轩聚合登录平台网站源码 PHP聚合登录源码

共302个文件
js:164个
css:34个
json:22个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 57 浏览量
2024-07-24
20:32:57
上传
评论
收藏 3.01MB ZIP 举报
温馨提示
清轩聚合登录平台网站源码,彩虹聚合登录系统二开,后台采用 Layuiadmin 改版,增加了前台界面、开发文档、SDK 文件,后台增加站点配置功能。 源码主要功能:可以实现中转 QQ、微信、支付宝、微博、百度等平台的快捷登录接口。 有多应用管理、域名限制、账号记录、登录记录功能。 搭建说明: 直接上传后访问即可安装,后台地址是/admin,创建应用之后即可使用 QQ 互联申请说明: 首先必须要有一个已备案的域名。QQ 互联申请地址:https://connect.qq.com/,申请的时候不要用本程序直接去申请,否则不可能通过。申请的时候回调地址填写:http://你的域名/return.php
资源推荐
资源详情
资源评论























收起资源包目录





































































































共 302 条
- 1
- 2
- 3
- 4
资源评论


破碎的天堂鸟
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- CE-SDS与SEC-HPLC比较ppt课件(1).ppt
- html元素设置焦点的方法-6.doc
- 互联网大数据对学术生产的影响研究.docx
- 2023年C语言二级考试基础练习.doc
- PHPExcel合并与拆分单元格的方法.doc
- 大数据背景下室内设计的发展现状及趋势.docx
- 《计算机网络》培训心得.docx
- Windows7教案(1).doc
- 自动化测试平台操作手册.doc
- 机车综合无线通信设备(CIR) PPT.ppt
- 基于农村财务信息化发展的调查研究.docx
- 生物信息学概论数据库搜索与两两比对公开课一等奖优质课大赛微课获奖课件.pptx
- 信用卡互联网推广方案.pptx
- windows server 2012r2 sql server 2012故障转移群集部署.docx
- 互联网+背景下会计教学改革与实践研究.docx
- cad第6讲椭圆、圆环、多义线及填充训练市公开课特等奖市赛课微课一等奖PPT课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
