# 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)
没有合适的资源?快使用搜索试试~ 我知道了~
2023最新网站服务器CC压力测试系统源码 前后端全开源
共336个文件
js:175个
css:34个
php:27个
2 下载量 134 浏览量
2023-04-26
12:17:43
上传
评论
收藏 14.94MB ZIP 举报
温馨提示
简介: 2023最新网站服务器CC压力测试系统源码 前后端全开源 一款可测压的系统,但不提供接口。 内容介绍 http://t.csdn.cn/yv41g
资源推荐
资源详情
资源评论
收起资源包目录
2023最新网站服务器CC压力测试系统源码 前后端全开源 (336个子文件)
azzara.min.css 192KB
materialdesignicons.min.css 181KB
bootstrap.min.css 156KB
bootstrap.min.css 114KB
style.min.css 104KB
animate.min.css 56KB
main.css 26KB
bootstrap-datepicker3.css 22KB
jquery-confirm.min.css 22KB
bootstrap-datepicker3.min.css 21KB
main.min.css 14KB
bootstrap-select.css 12KB
bootstrap-colorpicker.css 11KB
bootstrap-select.min.css 11KB
bootstrap-table.min.css 10KB
bootstrap-table.css 10KB
bootstrap-colorpicker.min.css 9KB
bootstrap-datetimepicker.css 9KB
bootstrap-datetimepicker.min.css 8KB
main.css 7KB
bootstrap-clockpicker.css 4KB
main.min.css 3KB
bootstrap-clockpicker.min.css 3KB
multitabs.min.css 2KB
main.css 2KB
main.css 2KB
main.min.css 1KB
main.min.css 1004B
jquery.tagsinput.min.css 886B
main.css 813B
bootstrap-table-cell-input.min.css 605B
bootstrap-table-filter-control.min.css 429B
main.min.css 416B
jquery.treegrid.min.css 175B
materialdesignicons-webfont.eot 684KB
刀客源码网.html 6KB
3c12882625802123971e7c13182291df631d3b6c19d23bbf6e00da6bb850e1ea8c30451e2db2d392498fd4ef59d02fea.jpeg 102KB
1.jpg 2.43MB
76.jpg 2.07MB
2.jpg 1.33MB
65.jpg 1.17MB
3.jpg 1.16MB
4.jpg 941KB
59.jpg 875KB
60.jpg 796KB
20.jpg 707KB
bj2.jpg 599KB
img-slide-1.jpg 37KB
img-slide-4.jpg 33KB
img-slide-5.jpg 25KB
img-slide-3.jpg 24KB
img-slide-2.jpg 11KB
avatar.jpg 3KB
main.js 364KB
main.esm.js 326KB
bootstrap-table.js 247KB
Chart.min.js 173KB
moment.js 170KB
bootstrap-table.min.js 168KB
bootstrap-colorpicker.js 159KB
main.min.js 123KB
main.js 100KB
bootstrap-colorpicker.min.js 95KB
jquery-ui.min.js 93KB
main.esm.js 92KB
vue.min.js 91KB
jquery.min.js 86KB
jquery.min.js 85KB
jquery.3.2.1.min.js 85KB
main.js 78KB
main.esm.js 72KB
main.js 67KB
main.esm.js 61KB
bootstrap.min.js 59KB
moment.min.js 58KB
bootstrap-datepicker.js 57KB
bootstrap-select.min.js 52KB
multitabs.js 51KB
bootstrap.min.js 48KB
bootstrap-datetimepicker.min.js 38KB
bootstrap-table-filter-control.min.js 37KB
locales-all.js 36KB
bootstrap.min_1.js 36KB
main.min.js 35KB
bootstrap-datepicker.min.js 33KB
bootstrap-table-export.min.js 31KB
bootstrap-table-accent-neutralise.min.js 30KB
bootstrap-table-cookie.min.js 30KB
chosen.jquery.min.js 28KB
jquery-confirm.min.js 28KB
bootstrap-table-cell-input.min.js 27KB
main.min.js 26KB
bootstrap-table-multiple-sort.js 26KB
main.min.js 23KB
bootstrap-table-treegrid.min.js 22KB
layer.js 22KB
popper.min.js 21KB
bootstrap-clockpicker.js 20KB
popper.min.js 19KB
bootstrap-maxlength.min.js 19KB
共 336 条
- 1
- 2
- 3
- 4
资源评论
weixin_42108761
- 粉丝: 1
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
- 基于哈希链表的简单人员信息管理系统
- 其他类别JdonFramework开源框架 v5.1 Build20071025-jdonframework-5.1.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功