[PR #13855] [MERGED] Optimize migrations #13742

Closed
opened 2026-02-07 07:18:24 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13855
Author: @Shadowghost
Created: 4/6/2025
Status: Merged
Merged: 4/26/2025
Merged by: @crobibero

Base: masterHead: misc


📝 Commits (5)

  • bcf8ac0 Optimize Directory.CreateDirectory usage
  • ce73edf Directly use database
  • 3699a09 Apply review suggestions
  • b78b5dc Apply review suggestion
  • 968b1c6 Apply review suggestions

📊 Changes

7 files changed (+129 additions, -154 deletions)

View changed files

📝 Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs (+19 -41)
📝 Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs (+79 -79)
📝 Jellyfin.Server/Migrations/Routines/MoveTrickplayFiles.cs (+20 -11)
📝 MediaBrowser.Common/Plugins/BasePluginOfT.cs (+1 -4)
📝 MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs (+6 -12)
📝 src/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs (+2 -2)
📝 src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs (+2 -5)

📄 Description

Directly access the database to fetch the necessary data. This speeds up the migrations significantly.

Changes

  • Optimize Directory.CreateDirectory usage
  • Directly access database within migrations

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13855 **Author:** [@Shadowghost](https://github.com/Shadowghost) **Created:** 4/6/2025 **Status:** ✅ Merged **Merged:** 4/26/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `misc` --- ### 📝 Commits (5) - [`bcf8ac0`](https://github.com/jellyfin/jellyfin/commit/bcf8ac02810de31887d7132502aee5a552799bff) Optimize Directory.CreateDirectory usage - [`ce73edf`](https://github.com/jellyfin/jellyfin/commit/ce73edf7b9b56975b401e46b41dbee703afb2578) Directly use database - [`3699a09`](https://github.com/jellyfin/jellyfin/commit/3699a09fb7c091b5fec12c8707774c33007a71fd) Apply review suggestions - [`b78b5dc`](https://github.com/jellyfin/jellyfin/commit/b78b5dc35b828de6f1cf9afbc979bf431928fb20) Apply review suggestion - [`968b1c6`](https://github.com/jellyfin/jellyfin/commit/968b1c6764b6eb587c103b5e26010528119a4ca6) Apply review suggestions ### 📊 Changes **7 files changed** (+129 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs` (+19 -41) 📝 `Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs` (+79 -79) 📝 `Jellyfin.Server/Migrations/Routines/MoveTrickplayFiles.cs` (+20 -11) 📝 `MediaBrowser.Common/Plugins/BasePluginOfT.cs` (+1 -4) 📝 `MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs` (+6 -12) 📝 `src/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs` (+2 -2) 📝 `src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs` (+2 -5) </details> ### 📄 Description Directly access the database to fetch the necessary data. This speeds up the migrations significantly. **Changes** * Optimize Directory.CreateDirectory usage * Directly access database within migrations --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:18:24 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13742