You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/articles/configuration.md
+59-43Lines changed: 59 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,21 @@ title: Configuration
5
5
6
6
# Configuration
7
7
8
+
# Journal
9
+
8
10
Please note that you -must- provide a Connection String (`connection-string`) and Provider name (`provider-name`).
9
11
10
12
## `parallelism`
11
13
12
14
Controls the number of Akka.Streams Queues used to write to the DB. Default in JVM is `8`. We use `3`
13
15
14
-
- For SQL Server, Based on testing `3` is a fairly optimal number in .NET and and thus chosen as default. You may wish to adjust up if you are dealing with a large number of actors.
16
+
- For SQL Server, Based on testing `3` is a fairly optimal number in .NET and and thus chosen as default. You may wish to adjust up if you are dealing with a large number of actors.
15
17
16
-
Testing indicates that `2` will provide performance on par or better than both batching and non-batching journal.
18
+
Testing indicates that `2` will provide performance on par or better than both batching and non-batching journal.
17
19
18
-
- For SQLite, you may want to just put `1` here, because SQLite allows at most a single writer at a time even in WAL mode.
20
+
- For SQLite, you may want to just put `1` here, because SQLite allows at most a single writer at a time even in WAL mode.
19
21
20
-
Keep in mind there may be some latency/throughput trade-offs if your write-set gets large.
22
+
Keep in mind there may be some latency/throughput trade-offs if your write-set gets large.
21
23
22
24
Note that unless `materializer-dispatcher` is changed, by default these run on the thread pool, not on dedicated threads. Setting this number too high may steal work from other actors.
23
25
@@ -31,12 +33,7 @@ You can define a different dispatcher here if worried about stealing from the th
31
33
32
34
## `delete-compatibility-mode`
33
35
34
-
specifies to perform deletes in a way that is compatible with Akka.Persistence.Sql.Common. This will use a journal metadata table
35
-
36
-
## `use-clone-connection`
37
-
is a bit of a hack. Currently Linq2Db has a performance penalty for custom mapping schemas. Cloning the connection is faster but may not work for all scenarios.
38
-
39
-
tl;dr - If a password or similar is in the connection string, leave `use-clone-connection` set to `false`. If you don't have a password or similar, run some tests with it set to `true`. You'll see improved write and read performance.
36
+
specifies to perform deletes in a way that is compatible with `Akka.Persistence.Sql.Common`. This will use a journal metadata table
40
37
41
38
# Batching options
42
39
@@ -66,7 +63,7 @@ Note that Tables/Columns will be created with the casing provided, and selected
66
63
67
64
## Journal And Query
68
65
69
-
> [!NOTE]
66
+
> ### NOTE
70
67
> Please note that you -must- provide a Connection String and Provider name.
71
68
72
69
```hocon
@@ -75,16 +72,11 @@ akka.persistence {
75
72
sql {
76
73
class = "Akka.Persistence.Sql.Journal.SqlWriteJournal, Akka.Persistence.Sql"
0 commit comments