Lunny Xiao
fbe6d9dc6b
Use batch database operations instead of one by one to optimze api pulls ( #32680 )
...
Resolve #31492
The response time for the Pull Requests API has improved significantly,
dropping from over `2000ms` to about `350ms` on my local machine. It's
about `6` times faster.
A key area for further optimization lies in batch-fetching data for
`apiPullRequest.ChangedFiles, apiPullRequest.Additions, and
apiPullRequest.Deletions`.
Tests `TestAPIViewPulls` does exist and new tests added.
- This PR also fixes some bugs in `GetDiff` functions.
- This PR also fixes data inconsistent in test data. For a pull request,
the head branch's reference should be equal to the reference in
`pull/xxx/head`.
2024-12-11 05:15:06 +08:00
..
2023-09-26 12:56:42 -04:00
2024-03-04 08:16:03 +00:00
2024-11-01 10:29:54 +08:00
2024-03-02 09:12:17 +00:00
2024-03-02 09:12:17 +00:00
2023-10-19 07:24:24 +00:00
2024-11-20 15:24:09 +00:00
2023-04-07 18:08:36 +08:00
2023-10-01 10:41:52 +00:00
2024-05-21 17:00:35 +00:00
2024-03-04 08:16:03 +00:00
2024-10-01 01:58:55 +00:00
2023-09-26 12:56:42 -04:00
2017-04-21 19:32:31 +08:00
2018-01-07 00:55:53 +02:00
2024-02-24 12:38:43 +00:00
2022-02-01 13:20:28 -05:00
2022-09-20 15:59:20 +08:00
2019-04-14 12:43:56 -04:00
2023-08-30 02:27:53 +00:00
2024-03-07 23:18:38 +01:00
2024-03-04 08:16:03 +00:00
2024-05-21 17:00:35 +00:00
2020-04-01 01:14:46 -03:00
2021-06-16 18:33:37 -04:00
2019-11-20 22:50:54 +08:00
2024-02-24 12:38:43 +00:00
2023-08-14 11:56:14 +02:00
2024-11-12 05:41:22 +00:00
2018-05-11 15:55:32 +08:00
2022-10-18 00:23:27 +08:00
2023-07-01 10:52:52 +08:00
2017-01-09 21:49:51 +01:00
2020-01-09 11:56:32 +00:00
2022-10-24 15:59:24 +08:00
2022-10-24 15:59:24 +08:00
2022-10-24 15:59:24 +08:00
2024-11-12 03:44:24 +00:00
2024-03-27 20:54:32 +00:00
2020-08-16 23:07:38 -04:00
2024-03-27 20:54:32 +00:00
2017-05-11 23:32:43 +08:00
2024-05-14 06:48:21 +00:00
2023-09-26 12:56:42 -04:00
2024-04-27 08:03:49 +00:00
2023-09-26 12:56:42 -04:00
2023-10-01 10:41:52 +00:00
2021-10-08 19:03:04 +02:00
2021-06-23 17:12:38 -04:00
2017-10-27 09:10:54 +03:00
2024-10-01 15:25:08 -04:00
2017-02-17 08:55:33 +08:00
2019-09-03 23:46:24 +08:00
2024-03-04 08:16:03 +00:00
2024-10-11 23:35:04 +00:00
2024-11-14 19:28:46 +00:00
2024-12-11 05:15:06 +08:00
2024-03-04 08:16:03 +00:00
2019-12-11 23:23:05 -05:00
2024-11-21 04:30:48 +00:00
2024-02-24 12:38:43 +00:00
2024-05-21 17:00:35 +00:00
2024-05-21 17:00:35 +00:00
2024-05-21 17:00:35 +00:00
2022-10-18 00:23:27 +08:00
2019-12-27 20:30:58 +00:00
2019-08-02 12:06:27 -04:00
2024-03-04 08:16:03 +00:00
2017-03-20 09:31:08 +01:00
2021-01-24 16:23:05 +01:00
2024-11-21 04:55:32 +00:00
2024-03-04 08:16:03 +00:00
2022-10-18 00:23:27 +08:00
2023-03-10 08:28:32 -06:00