Commit Graph
952 Commits
Author SHA1 Message Date
Kenneth Skovhede 429bcd1f2d Include deleted blocks when recreating dindex files.
This fixes #6339
2025-07-11 15:55:36 +02:00
Kenneth Skovhede 32f0283097 Fix bugreport create
The new SQLite library does not like to do VACUUM within a transaction. This PR updates it to run VACUUM outside the transaction.
2025-07-08 14:37:49 +02:00
Kenneth SkovhedeandGitHub eb2bb571cf Merge pull request #6402 from carljohnsen/performance/list-root
Performance/List roots takes long time
2025-07-07 18:09:22 +02:00
Carl Johnsen 0a04d3e77e Moved filtering of common roots from the SQL query to C# 2025-07-07 17:09:29 +02:00
Kenneth Skovhede cb89572ef8 Setting DBNull.Value for null values 2025-07-07 17:04:07 +02:00
Carl Johnsen bb87e94ffa Post merge master fixes 2025-06-24 14:38:58 +02:00
Carl Johnsen e55c36081f Merge branch 'master' into performance/mssqlite-async 2025-06-24 14:24:09 +02:00
Carl Johnsen 79b63ee4b2 Fixed race condition on creating and disposing SqliteCommands from multiple threads sharing the same SqliteConnection 2025-06-24 12:04:31 +02:00
Kenneth Skovhede b7a0053e5b Rewrote function to return minimal unique prefixes instead 2025-06-23 17:40:28 +02:00
Kenneth Skovhede 67e431a715 Implemented new query to get root paths and their transitive virtual folders 2025-06-20 11:13:12 +02:00
Carl Johnsen 6460e33787 Added missing double quotes to the SQL queries in LocalRepairDatabase.FixEmptyMetadatasets() 2025-06-19 13:23:39 +02:00
Carl Johnsen 0a047a37e3 SQL query inside GetEmptyMetadataBlocksetId had not only moved files, but had also changed 2025-06-19 13:20:44 +02:00
Carl Johnsen f6ac30e831 Merge remote-tracking branch 'upstream/master' into performance/mssqlite-async 2025-06-19 12:17:30 +02:00
Carl Johnsen 2412800c0c Removed the sqlite page cache option. It should be set through the environment variable, or some other way of providing a custom database configurotion 2025-06-19 11:41:39 +02:00
Carl Johnsen 7e979a4e9b Found some methods in LocalBackupDatabase that didn't accept a cancellation token 2025-06-19 11:01:12 +02:00
Carl Johnsen 32efa4b845 Updated all of the handler calls to database methods to forward their cancellation token 2025-06-19 09:47:33 +02:00
Carl Johnsen 7c425c4649 Added some extra overloads to the async database extension methods 2025-06-19 08:08:17 +02:00
Carl Johnsen b9952281ed ReusableTransaction.RollbackAsync now also accepts cancellation tokens 2025-06-19 08:07:48 +02:00
Carl Johnsen 4f7760f092 Made the LocalTestDatabase methods accep a cancellation token 2025-06-19 08:04:20 +02:00
Carl Johnsen 488d531bd5 Made the LocalRestoreDatabase methods accept a cancellation token 2025-06-19 07:54:53 +02:00
Carl Johnsen 04c52010fe Made the LocalRepairDatabase methods accept a cancellation token 2025-06-19 07:26:54 +02:00
Carl Johnsen 1c103c18b8 Made the LocalRecreateDatabase methods accept a cancellation token 2025-06-19 07:15:28 +02:00
Carl Johnsen 736b52c2fb Made the LocalPurgeDatabase methods accept a cancellation token 2025-06-19 07:00:14 +02:00
Carl Johnsen 3ea8733a4d Made the LocalListDatabase methods accept a cancellation token 2025-06-19 06:54:24 +02:00
Kenneth SkovhedeandGitHub fa36b705cb Merge pull request #6356 from duplicati/feature/correct-version-number
Return version numbers, and not ids
2025-06-18 21:16:46 +02:00
Carl Johnsen 28ca30f617 Made the LocalListChangesDatabase methods accept a cancellation token 2025-06-18 16:28:23 +02:00
Carl Johnsen 42877ebf96 Made the LocalListBrokenFilesDatabase methods accept a cancellation token 2025-06-18 16:23:10 +02:00
Carl Johnsen 936742b586 Made the LocalListAffectedDatabase methods accept a cancellation token 2025-06-18 16:11:10 +02:00
Carl Johnsen c496d0bf8c Made the LocalDeleteDatabase methods accept a cancellation token 2025-06-18 16:07:46 +02:00
Carl Johnsen ccce18bb00 Made the LocalBugReportDatabase methods accept a cancellation token 2025-06-18 16:02:05 +02:00
Carl Johnsen 8039cbb0f6 Made the LocalBackupDatabase methods accept a cancellation token 2025-06-18 16:00:20 +02:00
Carl Johnsen 3b3a7801b8 Made the LocalDatabase methods accept a cancellation token 2025-06-18 15:36:10 +02:00
Carl Johnsen 87dc978425 Made the ChangeStatistics methods accept a cancellation token 2025-06-18 14:37:13 +02:00
Carl Johnsen da57bbae33 Made the TemporaryDbValueList methods accept a cancellation token 2025-06-18 14:21:57 +02:00
Carl Johnsen b9555cdcd4 Made all the async database extension methods accept a cancellation token 2025-06-18 14:21:35 +02:00
Carl Johnsen bc97eaf71b Removed redundant calls to a SqliteCommand.Parameters.Clear() 2025-06-18 12:06:20 +02:00
Carl Johnsen 9ac583db94 Made all relevant using statements use await to use DisposeAsync 2025-06-18 11:53:11 +02:00
Carl Johnsen 859b65054d Simplified using statements that uses databases or accesses their methods 2025-06-18 11:52:05 +02:00
Carl Johnsen f221098c28 Formatted SQL queries - mainly adding double quotes where they were missing. 2025-06-18 10:42:08 +02:00
Carl Johnsen ae633fe0e8 Added more docstrings 2025-06-18 07:42:57 +02:00
Carl Johnsen 224e883e8d Formatted SQL query strings 2025-06-18 07:30:39 +02:00
Carl Johnsen 20716e3fa6 Made some more of the internal classes in LocalTestDatabase implement IAsyncDisposable 2025-06-18 07:25:24 +02:00
Carl Johnsen eb4f763831 LocalTestDatabase.Basiclist now implements IAsyncDisposable 2025-06-18 06:59:57 +02:00
Carl Johnsen 86b75b395a LocalRestoreDatabase.IBlockMarker now implements IAsyncDisposable 2025-06-18 06:44:18 +02:00
Carl Johnsen 2296d040a2 LocalRestoreDatabase.IFilesAndMetadata now implements IAsyncDisposable 2025-06-17 22:15:57 +02:00
Carl Johnsen 273b0f093e Added more docstrings 2025-06-17 21:30:11 +02:00
Carl Johnsen b4e5f2739e Found incorrect type signature for DisposeAsync() methods 2025-06-17 21:05:34 +02:00
Carl Johnsen f167254efe LocalPurgeDatabase.ITemporaryFileset now implements IAsyncDisposable 2025-06-17 21:04:41 +02:00
Carl Johnsen 3c36e227ef LocalListDatabase.IFileSets now implements IAsyncDisposable 2025-06-17 21:03:41 +02:00
Carl Johnsen a32a5acaed Added more docstrings 2025-06-17 18:01:12 +02:00