• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Server Development Search performance improvements?

     
    • 0 Vote(s) - 0 Average

    Search performance improvements?

    Are there any planned improvements to how searching is handled?
    tomstephens89
    Offline

    Junior Member

    Posts: 23
    Threads: 10
    Joined: 2023 Aug
    Reputation: 0
    Country:United Kingdom
    #1
    2025-03-20, 07:38 AM
    Hi all,

    Before I go putting in a feature request, I wondered if there are already any planned improvements to how searching is handled, particularly for large libraries. I understand the index is housed in an SQLite DB which is directly queried as part of a search. I wouldn't say a couple of seconds is particularly 'slow' considering the size of my library, however it would be great to see if said index could be housed in a caching layer such as Redis or something in order to return results within ms. 

    I know there's an external search proxy available, but I don't like the idea of bolting on third party completely separate services to my set up.

    Thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-20, 01:11 PM
    With the EFCore migration, there is now the possibility of having an external DB provider for improved performance. Though that wouldn't necessarily increase performance as much as you'd hope without additional database refactoring, indexing, etc.

    AFAIK the only two major database changes on the roadmap are mentioned EFCore migration for the library database and the addition of external DB providers.

    There have been discussions here and there about some of the silly ways Jellyfin still does things that haven't been changed since the Emby fork. Some of them database and database optimization related. But "there are bigger fish to fry" is the current sentiment with the current level of manpower that is available to the project. So these kinds of efforts are still on the back burner slowly being worked.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    thornbill
    Offline

    Core Team

    Posts: 177
    Threads: 6
    Joined: 2023 Jun
    Reputation: 8
    Country:United States
    #3
    2025-03-20, 05:24 PM
    There are a few enhancements that are planned:
    1. Reduce the number of API requests made by web. There is an open PR for this that should land in the upcoming 10.11 release.
    2. Support for search provider plugins. This one has been discussed a good bit but likely won’t materialize for a few releases. 
    [Image: thornbill?style=flat&logo=github]
    tomstephens89
    Offline

    Junior Member

    Posts: 23
    Threads: 10
    Joined: 2023 Aug
    Reputation: 0
    Country:United Kingdom
    #4
    2025-03-23, 09:20 AM
    (2025-03-20, 05:24 PM)thornbill Wrote: There are a few enhancements that are planned:
    1. Reduce the number of API requests made by web. There is an open PR for this that should land in the upcoming 10.11 release.
    2. Support for search provider plugins. This one has been discussed a good bit but likely won’t materialize for a few releases. 

    Thanks for the detailed response. 

    As I say its not slow at the moment, but I have my instance on powerful hardware and the install on NVME... But it could definitely do with being more responsive, this is most noticeable if you're using a slow or high latency internet connection which I guess confirms that there's a significant number of API calls happening to serve up the results.
    Duvel
    Offline

    Member

    Posts: 69
    Threads: 9
    Joined: 2023 Jul
    Reputation: 3
    Country:Belgium
    #5
    2025-03-23, 09:43 AM (This post was last modified: 2025-03-23, 09:48 AM by Duvel. Edited 2 times in total.)
    (2025-03-20, 01:11 PM)TheDreadPirate Wrote: With the EFCore migration, there is now the possibility of having an external DB provider for improved performance.  Though that wouldn't necessarily increase performance as much as you'd hope without additional database refactoring, indexing, etc.
    AFAIK the only two major database changes on the roadmap are mentioned EFCore migration for the library database and the addition of external DB providers.
    There have been discussions here and there about some of the silly ways Jellyfin still does things that haven't been changed since the Emby fork.  Some of them database and database optimization related.  But "there are bigger fish to fry" is the current sentiment with the current level of manpower that is available to the project.  So these kinds of efforts are still on the back burner slowly being worked.
    Would it be possible that you finally share extensive information and road map about the Postgress/MariaDB ongoing PRs ?

    I opened a thread for it here : https://forum.jellyfin.org/t-the-externa...discussion

    And my subject has been ignored.

    I understand this one is touchy for the core team and as you mentioned it, all this is due to the emby fork legacy and all the the silly things in it.
    But to not say a word about it apart "we are working on it", is unfair for the community because this is a long expected feature, and you are obviously working on it. But it has been 6 years now.
    So why not just share the truths about it ?
    niels
    Online

    Core Team

    Posts: 262
    Threads: 4
    Joined: 2023 Jun
    Reputation: 14
    Country:Netherlands
    #6
    2025-03-23, 02:48 PM
    Information about the database efforts is available on our blog:

    https://jellyfin.org/posts/efcore-refactoring-incoming/

    https://jellyfin.org/posts/efcore-refactoring
    [Image: GitHub%20Sponsors-grey?logo=github] [Image: Buy%20Me%20a%20Coffee-grey?logo=buymeacoffee]
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,173
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #7
    2025-03-23, 03:46 PM (This post was last modified: 2025-03-23, 04:01 PM by Efficient_Good_5784. Edited 3 times in total.)
    (2025-03-23, 09:43 AM)Duvel Wrote: Would it be possible that you finally share extensive information and road map about the Postgress/MariaDB ongoing PRs ?

    I opened a thread for it here : https://forum.jellyfin.org/t-the-externa...discussion

    And my subject has been ignored.

    I understand this one is touchy for the core team and as you mentioned it, all this is due to the emby fork legacy and all the the silly things in it.
    But to not say a word about it apart "we are working on it", is unfair for the community because this is a long expected feature, and you are obviously working on it. But it has been 6 years now.
    So why not just share the truths about it ?
    Where did you get information that EFCore has been in the works for 6 years?

    Sure there have been discussions in the past to switch to something else, but EFCore was only seriously worked on like half a year back only.
    And maybe to your surprise, the main developer behind the EFCore rewrite was not present when Jellyfin forked from Emby.

    Your assumption is that we are keeping things hidden from the community.
    That's not true.

    In your other post you linked, you even linked the PRs themselves that bring this functionality.
    Quote:Looks like things are on the good path but unless I missed an announcement or forum thread, we dont have much official info about it.
    The Jellyfin Github repos have all the code public.
    It also has a timestamp of when PRs were submitted.

    There's also roadmaps on the Github repos for other things if you're interested.
    Like this one for example: https://github.com/orgs/jellyfin/projects/55

    Now, if you're criticizing that nobody responded to your original post, it's simply just that nobody had anything to respond with, or it was missed by people that did have things to add.
    It's easy to miss posts if you're not watching what is posted here regularly.
    Topomov
    Offline

    Junior Member

    Posts: 33
    Threads: 2
    Joined: 2023 Jul
    Reputation: 1
    #8
    2025-03-23, 07:22 PM
    (2025-03-23, 09:43 AM)Duvel Wrote:
    (2025-03-20, 01:11 PM)TheDreadPirate Wrote: With the EFCore migration, there is now the possibility of having an external DB provider for improved performance.  Though that wouldn't necessarily increase performance as much as you'd hope without additional database refactoring, indexing, etc.
    AFAIK the only two major database changes on the roadmap are mentioned EFCore migration for the library database and the addition of external DB providers.
    There have been discussions here and there about some of the silly ways Jellyfin still does things that haven't been changed since the Emby fork.  Some of them database and database optimization related.  But "there are bigger fish to fry" is the current sentiment with the current level of manpower that is available to the project.  So these kinds of efforts are still on the back burner slowly being worked.
    Would it be possible that you finally share extensive information and road map about the Postgress/MariaDB ongoing PRs ?

    I opened a thread for it here : https://forum.jellyfin.org/t-the-externa...discussion

    And my subject has been ignored.

    I understand this one is touchy for the core team and as you mentioned it, all this is due to the emby fork legacy and all the the silly things in it.
    But to not say a word about it apart "we are working on it", is unfair for the community because this is a long expected feature, and you are obviously working on it. But it has been 6 years now.
    So why not just share the truths about it ?

    You're right, all of this unfairness is very unprofessional. You should ask for a refund. (or help contribute one way or another)
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 381
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #9
    2025-03-23, 08:09 PM
    @Duvel the honest truth is that your post likely just fall though and nobody from the team read it.

    But as Niels already pointed out, our official info is in the blog posts josh and i wrote plus our open PRs on that topic.
    There isn't really much more i can say to this, its ongoing work but the basics are done. The PR is open but as i commented on it it will not happen on the next release but maybe the one after that. If you want to try it out, you can build a pgsql capable version for yourself though my branch but i have to warn you, it might brick your install.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode