aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-09-11 08:33:36 -0400
committerGitHub <noreply@github.com>2020-09-11 08:33:36 -0400
commitb198c6f4d16f3c9bf8b9f85cd3d020d6bdc39576 (patch)
treeecf7354e65ce1c7ea9c8c1f76aec2e2664c71d29 /Emby.Server.Implementations/Security/AuthenticationRepository.cs
parent1d633aac0a9c9b28c216dafe5b0180922f190cc6 (diff)
parentedbd4e0db6ba7e8ba08757f74274e5c83c9660e8 (diff)
Merge pull request #4108 from Bond-009/PERFORMANCE
Minor performance improvements to item saving
Diffstat (limited to 'Emby.Server.Implementations/Security/AuthenticationRepository.cs')
-rw-r--r--Emby.Server.Implementations/Security/AuthenticationRepository.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
index 4dfadc703..29393ae07 100644
--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs
+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
@@ -257,8 +257,7 @@ namespace Emby.Server.Implementations.Security
connection.RunInTransaction(
db =>
{
- var statements = PrepareAll(db, statementTexts)
- .ToList();
+ var statements = PrepareAll(db, statementTexts);
using (var statement = statements[0])
{
@@ -282,7 +281,7 @@ namespace Emby.Server.Implementations.Security
ReadTransactionMode);
}
- result.Items = list.ToArray();
+ result.Items = list;
return result;
}