diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-11 08:33:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 08:33:36 -0400 |
| commit | b198c6f4d16f3c9bf8b9f85cd3d020d6bdc39576 (patch) | |
| tree | ecf7354e65ce1c7ea9c8c1f76aec2e2664c71d29 /Emby.Server.Implementations/Security/AuthenticationRepository.cs | |
| parent | 1d633aac0a9c9b28c216dafe5b0180922f190cc6 (diff) | |
| parent | edbd4e0db6ba7e8ba08757f74274e5c83c9660e8 (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.cs | 5 |
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; } |
