Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 1d614a7

Browse files
Merge pull request #99 from akkadotnet/dev
v1.3.7 Akka.Persistence.SqlServer Release
2 parents 7bee7c5 + 25b96b9 commit 1d614a7

File tree

8 files changed

+37
-25
lines changed

8 files changed

+37
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ tools/
2727

2828
#VS
2929
.vs/
30+
.dotnet/
3031

3132
#MonoDevelop
3233
*.userprefs

RELEASE_NOTES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#### 1.3.7 June 04 2018 ####
2+
Upgrades to Akka.Persistence 1.3.7, which includes some major changes for SQL-based SnapShot stores, which you can read more about here: https://github.com/akkadotnet/akka.net/issues/3422
3+
4+
This should significantly improve the performance of SQL-based journals for loading large snapshots.
5+
6+
Also, removes the dependency on the Akka.TestKit for this package.
7+
8+
19
#### 1.3.2 October 29 2017 ####
210

311
Updated to Akka.Persistence v1.3.2. Fixed bug in SnapshotStore query.

src/Akka.Persistence.SqlServer.Tests/Akka.Persistence.SqlServer.Tests.csproj

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageTags>akka;actors;actor model;Akka;concurrency;SQL;SQL Server</PackageTags>
88
<Copyright>Copyright © 2013-2017 Akka.NET Team</Copyright>
99
<Authors>Akka.NET Team</Authors>
10-
<VersionPrefix>1.3.0</VersionPrefix>
10+
<VersionPrefix>1.3.7</VersionPrefix>
1111
<PackageIconUrl>http://getakka.net/images/akkalogo.png</PackageIconUrl>
1212
<PackageProjectUrl>https://github.com/akkadotnet/Akka.Persistence.SqlServer</PackageProjectUrl>
1313
<PackageLicenseUrl>https://github.com/akkadotnet/Akka.Persistence.SqlServer/blob/master/LICENSE</PackageLicenseUrl>
@@ -20,12 +20,12 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
24-
<PackageReference Include="Akka" Version="1.3.2" />
25-
<PackageReference Include="Akka.Persistence" Version="1.3.2" />
26-
<PackageReference Include="Akka.Persistence.Sql.Common" Version="1.3.2" />
27-
<PackageReference Include="Akka.Persistence.Sql.TestKit" Version="1.3.1" />
28-
<PackageReference Include="Akka.TestKit" Version="1.3.2" />
23+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
24+
<PackageReference Include="Akka" Version="1.3.7" />
25+
<PackageReference Include="Akka.Persistence" Version="1.3.7" />
26+
<PackageReference Include="Akka.Persistence.Sql.Common" Version="1.3.7" />
27+
<PackageReference Include="Akka.Persistence.Sql.TestKit" Version="1.3.7" />
28+
<PackageReference Include="Akka.TestKit" Version="1.3.7" />
2929
<PackageReference Include="Microsoft.Extensions.Configuration" Version="1.1.2" />
3030
<PackageReference Include="Microsoft.Extensions.Configuration.Xml" Version="1.1.2" />
3131
<PackageReference Include="xunit" Version="$(XunitVersion)" />
@@ -40,4 +40,8 @@
4040
<ItemGroup>
4141
<ProjectReference Include="..\Akka.Persistence.SqlServer\Akka.Persistence.SqlServer.csproj" />
4242
</ItemGroup>
43+
44+
<ItemGroup>
45+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
46+
</ItemGroup>
4347
</Project>

src/Akka.Persistence.SqlServer/Akka.Persistence.SqlServer.csproj

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88
<PackageTags>akka;actors;actor model;Akka;concurrency;SQL;SQL Server</PackageTags>
99
<Copyright>Copyright © 2013-2017 Akka.NET Team</Copyright>
1010
<Authors>Akka.NET Team</Authors>
11-
<VersionPrefix>1.3.1</VersionPrefix>
11+
<VersionPrefix>1.3.7</VersionPrefix>
1212
<PackageIconUrl>http://getakka.net/images/akkalogo.png</PackageIconUrl>
1313
<PackageProjectUrl>https://github.com/akkadotnet/Akka.Persistence.SqlServer</PackageProjectUrl>
1414
<PackageLicenseUrl>https://github.com/akkadotnet/Akka.Persistence.SqlServer/blob/master/LICENSE</PackageLicenseUrl>
15-
<PackageReleaseNotes>Support for Akka.NET 1.3, .NET Standard 1.6, and the first stable RTM release of Akka.Persistence.
16-
Migration from 1.1.1.7-beta Up**
17-
The event journal and snapshot store schema has changed with this release. In order to keep existing stores compatible with this release, you **must** add a column to both stores for `SerializerId` like so:
18-
```sql
19-
ALTER TABLE {your_journal_table_name} ADD COLUMN SerializerId INTEGER NULL
20-
ALTER TABLE {your_snapshot_table_name} ADD COLUMN SerializerId INTEGER NULL
21-
```</PackageReleaseNotes>
15+
<PackageReleaseNotes>Upgrades to Akka.Persistence 1.3.7, which includes some major changes for SQL-based SnapShot stores, which you can read more about here: https://github.com/akkadotnet/akka.net/issues/3422
16+
This should significantly improve the performance of SQL-based journals for loading large snapshots.
17+
Also, removes the dependency on the Akka.TestKit for this package.</PackageReleaseNotes>
2218
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2319
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.1</NetStandardImplicitPackageVersion>
2420
</PropertyGroup>
@@ -29,15 +25,11 @@ ALTER TABLE {your_snapshot_table_name} ADD COLUMN SerializerId INTEGER NULL
2925
<EmbeddedResource Include="sql-server.conf" />
3026
</ItemGroup>
3127
<ItemGroup>
32-
<PackageReference Include="Akka" Version="1.3.2" />
33-
<PackageReference Include="Akka.Persistence" Version="1.3.2" />
34-
<PackageReference Include="Akka.Persistence.Sql.Common" Version="1.3.2" />
35-
<PackageReference Include="Akka.TestKit" Version="1.3.2" />
28+
<PackageReference Include="Akka" Version="1.3.7" />
29+
<PackageReference Include="Akka.Persistence" Version="1.3.7" />
30+
<PackageReference Include="Akka.Persistence.Sql.Common" Version="1.3.7" />
3631
</ItemGroup>
3732
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
38-
<PackageReference Include="Akka.Persistence.Sql.TestKit">
39-
<Version>1.3.1</Version>
40-
</PackageReference>
4133
</ItemGroup>
4234
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
4335
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>

src/Akka.Persistence.SqlServer/Journal/BatchingSqlServerJournal.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public sealed class BatchingSqlServerJournalSetup : BatchingSqlJournalSetup
2424
orderingColumnName: "Ordering",
2525
serializerIdColumnName: "SerializerId",
2626
timeout: config.GetTimeSpan("connection-timeout", TimeSpan.FromSeconds(30)),
27-
defaultSerializer: config.GetString("serializer")))
27+
defaultSerializer: config.GetString("serializer"),
28+
useSequentialAccess: config.GetBoolean("sequential-access")))
2829
{
2930
}
3031

src/Akka.Persistence.SqlServer/Journal/SqlServerJournal.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public SqlServerJournal(Config journalConfig) : base(journalConfig)
3232
orderingColumnName: "Ordering",
3333
serializerIdColumnName: "SerializerId",
3434
timeout: config.GetTimeSpan("connection-timeout"),
35-
defaultSerializer: config.GetString("serializer")),
35+
defaultSerializer: config.GetString("serializer"),
36+
useSequentialAccess: config.GetBoolean("sequential-access")),
3637
Context.System.Serialization,
3738
GetTimestampProvider(config.GetString("timestamp-provider")));
3839
}

src/Akka.Persistence.SqlServer/Snapshot/SqlServerSnapshotStore.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public SqlServerSnapshotStore(Config config) : base(config)
2929
timestampColumnName: "Timestamp",
3030
serializerIdColumnName: "SerializerId",
3131
timeout: sqlConfig.GetTimeSpan("connection-timeout"),
32-
defaultSerializer: config.GetString("serializer")),
32+
defaultSerializer: config.GetString("serializer"),
33+
useSequentialAccess: config.GetBoolean("sequential-access")),
3334

3435
Context.System.Serialization);
3536
}

src/Akka.Persistence.SqlServer/sql-server.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
# metadata table
2929
metadata-table-name = Metadata
30+
31+
sequential-access = on
3032
}
3133
}
3234

@@ -53,6 +55,8 @@
5355

5456
# should corresponding journal table be initialized automatically
5557
auto-initialize = off
58+
59+
sequential-access = on
5660
}
5761
}
5862
}

0 commit comments

Comments
 (0)