Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-06-28 16:34:31 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2018-07-03 15:24:17 +0300
commitf30089075fabfbac45c6382c0a2717bbb682734e (patch)
tree8864a5843ed5f6d1e0e079194def14682b1a9824 /doc/administration/job_artifacts.md
parentf25cdea64d69a97f31719622f9dead3de1ea0e11 (diff)
Fixed pagination of web hook logs
For reasons unknown, the logs of a web hook were paginated in memory. This would result in the "Edit" page of a web hook timing out once it has more than a few thousand log entries. This commit makes the following changes: 1. We use LIMIT/OFFSET to paginate the data, instead of doing this in memory. 2. We limit the logs to the last two days, just like the documentation says (instead of retrieving everything). 3. We change the indexes on "web_hook_logs" so the query to get the data can perform a backwards index scan, without the need for a Filter. These changes combined ensure that Projects::HooksController#edit no longer times out.
Diffstat (limited to 'doc/administration/job_artifacts.md')
0 files changed, 0 insertions, 0 deletions