Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cc8024f9
Commit
cc8024f9
authored
May 07, 2021
by
Adam Hegyi
Committed by
Achilleas Pipinellis
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pagination developer guide
parent
0a68a582
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
648 additions
and
0 deletions
+648
-0
doc/development/database/index.md
doc/development/database/index.md
+2
-0
doc/development/database/pagination_guidelines.md
doc/development/database/pagination_guidelines.md
+315
-0
doc/development/database/pagination_performance_guidelines.md
...development/database/pagination_performance_guidelines.md
+325
-0
doc/development/graphql_guide/pagination.md
doc/development/graphql_guide/pagination.md
+4
-0
doc/development/img/offset_pagination_ui_v13_11.jpg
doc/development/img/offset_pagination_ui_v13_11.jpg
+0
-0
doc/development/img/project_issues_pagination_v13_11.jpg
doc/development/img/project_issues_pagination_v13_11.jpg
+0
-0
doc/development/merge_request_performance_guidelines.md
doc/development/merge_request_performance_guidelines.md
+2
-0
No files found.
doc/development/database/index.md
View file @
cc8024f9
...
...
@@ -60,6 +60,8 @@ info: To determine the technical writer assigned to the Stage/Group associated w
-
[
Updating multiple values
](
setting_multiple_values.md
)
-
[
Constraints naming conventions
](
constraint_naming_convention.md
)
-
[
Query performance guidelines
](
../query_performance.md
)
-
[
Pagination guidelines
](
pagination_guidelines.md
)
-
[
Pagination performance guidelines
](
pagination_performance_guidelines.md
)
## Case studies
...
...
doc/development/database/pagination_guidelines.md
0 → 100644
View file @
cc8024f9
This diff is collapsed.
Click to expand it.
doc/development/database/pagination_performance_guidelines.md
0 → 100644
View file @
cc8024f9
This diff is collapsed.
Click to expand it.
doc/development/graphql_guide/pagination.md
View file @
cc8024f9
...
...
@@ -12,6 +12,10 @@ GitLab uses two primary types of pagination: **offset** and **keyset**
(sometimes called cursor-based) pagination.
The GraphQL API mainly uses keyset pagination, falling back to offset pagination when needed.
### Performance considerations
See the
[
general pagination guidelines section
](
../database/pagination_guidelines.md
)
for more information.
### Offset pagination
This is the traditional, page-by-page pagination, that is most common,
...
...
doc/development/img/offset_pagination_ui_v13_11.jpg
0 → 100644
View file @
cc8024f9
4.91 KB
doc/development/img/project_issues_pagination_v13_11.jpg
0 → 100644
View file @
cc8024f9
50.2 KB
doc/development/merge_request_performance_guidelines.md
View file @
cc8024f9
...
...
@@ -426,6 +426,8 @@ Take into consideration the following when choosing a pagination strategy:
The database has to sort and iterate all previous items, and this operation usually
can result in substantial load put on database.
You can find useful tips related to pagination in the
[
pagination guidelines
](
database/pagination_guidelines.md
)
.
## Badge counters
Counters should always be truncated. It means that we don't want to present
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment