Feature: Indeterminate paginator

未关闭
#993 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php, postgresql
领域
backend, databases

调研方向

首先检查 datagrid 如何处理自定义 paginator,以及内部 DataModel 当前如何执行 COUNT 查询。定义使用 offset 和 limit 进行分页时的行为,包括将空结果视为结束,然后针对由 PostgreSQL 支持的大型表验证该设计。

由索引模型根据 Issue 内容生成。

描述

T: Feature

Hello,
I have a huge tables (10s of millions of rows) which I use for searching in using datagrid. How ever there is an issue, COUNT for paginator is awfully slow because of how PostgreSQL works with counting.

I'd like to switch to indeterminate paginator where total count is not known and next pages is loaded based just on offset and limit and if no more rows are returned, it would be considered the end.

What do you think of such feature?

Currently there would be few issues, mainly datagrid does not allow custom paginators, and also DataModel is internal class which will call for count every time.

主要语言
PHP
星标
297
派生
214
平均合并
3 天 23 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

contributte/datagrid 的其他 Issue

查看 contributte/datagrid 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。