Skip to content
代码片段 群组 项目
未验证 提交 1c409f0b 编辑于 作者: Krasimir Angelov's avatar Krasimir Angelov 提交者: GitLab
浏览文件

Merge branch 'document-list-view-timeouts' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -73,3 +73,21 @@ In `psql`: ...@@ -73,3 +73,21 @@ In `psql`:
```sql ```sql
Buffers: shared hit=7202 read=121 Buffers: shared hit=7202 read=121
``` ```
## Slow list views and APIs
We often build filtered list views and APIs in GitLab which need to have many
different filter and sorting options. All these options are usually
encapsulated in finders and exposed by API/GraphQL arguments. While we have many possible
[pagination performance optimizations](pagination_performance_guidelines.md)
, there is
often no way to make all combinations of sorting and filtering performant.
Attempts to make many options performant might involve
[adding too many indexes](adding_database_indexes.md)
which sacrifices performance of our primary database. This is only justified
for common use cases and should not be considered as a way to make all
permutations of filter and sort performant. What this means practically is that
there will likely be filtered views and API requests that timeout when certain
sorting or filtering options are applied. We still allow them to be added by
teams where they benefit certain customers with specific combinations of
filtering/sorting, but we need to accept that they will timeout for some users.
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册