woodpecker/server/store/datastore
qwerty287 b82ed13586
Database migrations run in seperate sessions and commit on success right away (#1822)
This isolates single migration tasks from each other.
The migration itself is now not atomic anymore but each single migration
now on it's own.
This takes load away from databases, as new sessions have a committed
schema available.

We also disable xorm.cache, as the speed improvements are minor but
invalid cache caused by schema changes did happen already in the past.

---------
Reverts #1817
Closes #1821

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-06-06 03:27:17 +02:00
..
migration Database migrations run in seperate sessions and commit on success right away (#1822) 2023-06-06 03:27:17 +02:00
agent.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
config.go Migrate sql querys to xorm query builder (#1356) 2022-10-31 16:08:57 +01:00
config_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
cron.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
cron_test.go Add cron feature (#934) 2022-09-01 00:36:32 +02:00
engine.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
engine_test.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
errors.go Check if repo exists before creating pipeline (#1297) 2022-10-22 01:34:11 +02:00
feed.go Fix pipeline feed not updated by new events (#1424) 2022-11-18 10:59:24 +01:00
feed_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
helper.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
init.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
init_cgo.go Add linter revive (#554) 2021-12-01 14:22:06 +01:00
log.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
log_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
permission.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
permission_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
pipeline.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
pipeline_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
redirection.go Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
redirection_test.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
registry.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
registry_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
repo.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
repo_test.go Remove unused file system api (#1791) 2023-05-31 18:03:03 +02:00
secret.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
secret_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
server_config.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
server_config_test.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
step.go Remove unused file system api (#1791) 2023-05-31 18:03:03 +02:00
step_test.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
task.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
task_test.go Add queue details UI for admins (#1632) 2023-03-20 04:50:56 +01:00
user.go Identify users using their remote ID (#1732) 2023-05-11 05:19:35 +02:00
users_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00