Kenneth Skovhede
b0bd9c121f
Fixed reading the size of files in restore
...
This significantly speeds up the restore file listing speed.
2025-09-26 13:54:06 +02:00
Kenneth Skovhede
230d80642a
Fixed invariant formatting helpers
...
This fixes an issue with formatting for invariant values that was caused by incrorrect function overload selection.
To avoid future issues, the two similar functions have been renamed to clarify what they are working for.
2025-09-25 11:14:54 +02:00
Carl Johnsen
7670ea9a58
Ensured that all values that are passed to interpolation strings have been passed through FormatInvariant to prevent SQLite errors related to string formatting cultures.
2025-09-05 14:11:05 +02:00
Carl Johnsen
b3fe276a13
Ensured that all temporary tables uset the same type of generated guid name
2025-09-05 14:06:55 +02:00
Carl Johnsen
0a04d3e77e
Moved filtering of common roots from the SQL query to C#
2025-07-07 17:09:29 +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
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
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
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
3ea8733a4d
Made the LocalListDatabase methods accept a cancellation token
2025-06-19 06:54:24 +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
273b0f093e
Added more docstrings
2025-06-17 21:30:11 +02:00
Carl Johnsen
3c36e227ef
LocalListDatabase.IFileSets now implements IAsyncDisposable
2025-06-17 21:03:41 +02:00
Kenneth Skovhede
460f60f61c
Return version numbers, and not ids
...
This fixes #6355
2025-06-17 11:56:12 +02:00
Carl Johnsen
3d11a05400
Added .ConfigureAwait(false) to all of the await statements
2025-06-12 08:34:29 +02:00
Carl Johnsen
ef5df3bd7a
Changed property accessing database to be an async method
2025-06-11 14:32:18 +02:00
Carl Johnsen
95dc884ab3
Removed unnecessary casts
2025-06-11 11:27:15 +02:00
Carl Johnsen
f373880c5a
Renamed ExpandInClauseParameterAsync, as one of them isn't actually async.
...
Postfix mssqlite has been added as well to not clash with the IDb implementation
2025-06-11 10:47:40 +02:00
Carl Johnsen
2cd1692532
Temporary fix to distinguish between new and legacy extension method
2025-05-22 13:25:42 +02:00
Carl Johnsen
d11b4e58e7
Reworked the factory construction chains to forward an instantiated object where applicable
2025-05-21 07:24:36 +02:00
Carl Johnsen
aa70a1e41c
Restructured SQL queries in LocalListDatabase
2025-05-20 09:28:52 +02:00
Carl Johnsen
e0dece7fab
Made LocalListDatabase async
2025-05-20 09:00:45 +02:00
Carl Johnsen
b15b1db333
Changed heavy async properties in LocalListDatabase.FileSets into methods
2025-05-20 08:49:32 +02:00
Carl Johnsen
af49f7332a
Removed FormatInvariant as it's now handled by the extension methods
2025-05-20 08:34:03 +02:00
Carl Johnsen
388ed0d2ea
Purged IDb from LocalListDatabase
2025-05-20 08:30:32 +02:00
Carl Johnsen
f1f6924fe0
Changed LocalListDatabase to use factory construction
2025-05-20 08:11:48 +02:00
Kenneth Skovhede
f533e3d300
Moved fragment back
2025-04-29 15:49:38 +02:00
Kenneth Skovhede
a3bc9b80ca
Implemented 4 new list methods that are optimized for a single operation
2025-04-29 10:03:57 +02:00
Kenneth Skovhede
0a7a1cd689
Added option to set the SQLite page cache
...
This adds an extra option to allow setting the SQLite page cache size as a regular option.
Prior to this commit it was only possible to set the SQLite page cache size via environment variables.
The option to use environment variables is preserved, and as options from the environment variable are applied after the new setting, environment variables take precedence.
The default value for the new option is to use 1% of the system memory for the page cache. For the restore process, a connection per worker may be made which defaults to half the number of cores, so the maximum amount of memory is 1% * half the CPU cores.
This is just the upper limit, and SQLite may choose not to use all of it.
This fixes #6178
2025-04-22 14:26:46 +02:00
Kenneth Skovhede
0b735d79ff
More cleanup and a few bug fixes
2025-04-03 16:38:51 +02:00
Kenneth Skovhede
2006556778
Fixed some more nullable support in the database layer
2025-04-03 15:46:20 +02:00
Kenneth Skovhede
c1d83a4e59
Removed unused parameters
2025-04-02 14:51:31 +02:00
Kenneth Skovhede
6a4e0a989d
Added LocalListDatabase
2025-04-02 14:46:38 +02:00
Kenneth Skovhede
bb1aa8e1f7
Cosmetic cleanup
...
Removed superfluous namespaces.
Using `var` most places.
Using extension methods for common setup of commands.
2025-03-14 14:34:56 +01:00
Kenneth Skovhede
7234d43961
Fixed all SQL strings to use interpolation and forced them into the FormattableString handler using the invariant formatting.
2025-03-14 12:13:17 +01:00
Kenneth Skovhede
f342d70819
Implemented forced invariant locale on all SQL strings.
...
This fixes #6023
2025-03-13 23:06:32 +01:00
Kenneth Skovhede and GitHub
9464caf622
Feature/update license 2025 ( #5851 )
...
* Fixed some minor whitespace issues
* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede
49fb45859c
Fixed some incorrectly quoted literals in SQL statements
2024-04-15 08:24:01 +02:00
Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
4950e7c225
Unhide partial filesets from Sets property getter.
...
This concerns issue #3982 .
2019-11-19 19:30:01 -08:00
Kenneth Hsu
c395e77bc2
Unhide partial filesets from QuickSets property getter.
...
This concerns issue #3982 .
2019-11-19 19:29:59 -08:00
drwtsn32x
dc87ca1873
remove namespace reference
2019-10-05 11:39:05 -07:00
drwtsn32x
176558d68d
roll back pr 3846
2019-10-05 11:34:49 -07:00
BlueBlock
5e2d4f789c
correct field id's
2019-08-31 18:44:07 -04:00
BlueBlock
653e687b0e
Merge remote-tracking branch 'upstream/master' into fix-stop-after-current-file
2019-08-25 14:19:00 -04:00