aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-09-09 13:38:27 +0200
committerBond_009 <bond.009@outlook.com>2020-09-09 13:38:27 +0200
commit48e1cf9fd7e2e7f4821d1255e5943deb305ec0be (patch)
tree6ca07e846d547dbce6768bf0072f2c371b9a4e52 /Emby.Server.Implementations/Security/AuthenticationRepository.cs
parent46c8a6c1e832e00c4f9475f6dee980a515dc7e64 (diff)
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;
}