garm/database/sql
Gabriel Adrian Samfira 73b330467b Use tmp storage while uploading, use tx where needed
Use temporary storage while the client is streaming the file to GARM.
This ensures that while uploading, we don't lock the blob database. On slow
connections this would mean that no readers would be able to access the db
while data was being written to it via the upload process.

By saving the file to a temporary location and only after we receive the
entire thing, add it to the DB, we significantly reduce the time we need to
keep the DB locked.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-10-08 22:22:58 +03:00
..
common_test.go Add copyright header 2025-05-20 09:43:29 +00:00
controller.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
controller_test.go Fix database tests 2025-10-07 21:01:40 +03:00
enterprise.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
enterprise_test.go Fix database tests 2025-10-07 21:01:40 +03:00
file_store.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
file_store_test.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
gitea.go Add the ability to set tools download source (Gitea) 2025-09-26 18:59:15 +03:00
gitea_test.go Fix database tests 2025-10-07 21:01:40 +03:00
github.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_test.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
instances.go Cache jobs in pool manager 2025-10-05 00:49:41 +03:00
instances_test.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
jobs.go Fix erroneous calls to Job related functions 2025-08-21 18:57:42 +00:00
models.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
organizations.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
organizations_test.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
pools.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
pools_test.go Cache jobs in pool manager 2025-10-05 00:49:41 +03:00
repositories.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
repositories_test.go Fix double creation of pools 2025-08-25 16:12:01 +00:00
scaleset_instances.go Cache improvements, db list improvements, cleanup 2025-09-09 20:52:01 +00:00
scalesets.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
scalesets_test.go Add copyright header 2025-05-20 09:43:29 +00:00
sql.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
templates.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
templates_test.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
users.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
users_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
util.go Add the ability to set tools download source (Gitea) 2025-09-26 18:59:15 +03:00