harbor/src/controller/quota
Chenyu Zhang 70a95a9696
fix: reduce the high db cpu usage for tag retention (#17296)
1. Add two indexes to database migrations.
2. Skip refresh quota in middleware for requests from jobservice.
3. Refresh quota by self in the end of tag retention job.

Closes: #14708

Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-04 10:08:02 +08:00
..
driver lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
controller.go fix: reduce the high db cpu usage for tag retention (#17296) 2022-08-04 10:08:02 +08:00
controller_test.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
options.go fix: reduce the high db cpu usage for tag retention (#17296) 2022-08-04 10:08:02 +08:00
util.go refactor(api): generate project apis by go-swagger 2020-08-15 16:10:57 +00:00
util_test.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00