I hear people say that about Nextcloud often, which is part of why I haven’t bothered setting it up yet.

Is there a technical reason why it’s slow and clunky? Any problematic choices with how it was built?

  • nbailey@lemmy.ca
    link
    fedilink
    English
    arrow-up
    58
    ·
    8 months ago

    It needs some tweaks to be snappy. The defaults are really bad.

    • change database from SQLite to a proper database like MySQL or Postgres, and configure the database server to use your memory fully
    • increase the PHP memory limit from the default (128M on many distros) to >1G, the more the better
    • install APCu in-memory cache for PHP
    • add Redis as additional cache
    • turn off the antivirus extension, if installed (ClamAV is useless)
    • use http/2 on Apache/nginx to increase performance with multiple connections

    https://docbot.onetwoseven.one/services/nextcloud/

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    English
    arrow-up
    27
    ·
    8 months ago

    Likely because it’s mainly written in PHP and the default database is SQLite, which is not great for large deployments.

    But I use Nextcloud daily on a low end machine and I don’t think it’s that bad.

  • GravitySpoiled@lemmy.ml
    link
    fedilink
    English
    arrow-up
    22
    ·
    8 months ago

    Nextcloud is slow and clunky if you run it on a banana.

    Run it on a “normal” server and everything is smooth.

    • muelltonne@feddit.de
      link
      fedilink
      English
      arrow-up
      12
      ·
      8 months ago

      Yeah, and don’t pretend that comparable software like Google Drive, Sharepoint or Dropbox is faster.

      • Björn Tantau@swg-empire.de
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 months ago

        I compare it to a samba or (s)ftp share. I wish it was similar in speed and ease of use.

        It’s become better since I migrated over to PostgreSQL. But it’s still not great.

          • Björn Tantau@swg-empire.de
            link
            fedilink
            English
            arrow-up
            5
            ·
            8 months ago

            I’d argue that the primary function of Nextcloud is to serve files. Of course the other services lack other stuff, which is why I’m still using Nextcloud. But I still wish its performance was similar to pure file servers.

            • cron@feddit.de
              link
              fedilink
              English
              arrow-up
              8
              ·
              8 months ago

              I think the file server analogy isn’t really fair. Nextcloud is better compared to Microsoft 365 or Google GSuite.

              All of these offer file storage, but also much more.

              • Björn Tantau@swg-empire.de
                link
                fedilink
                English
                arrow-up
                3
                ·
                8 months ago

                Sure. But serving files is the core functionality of Nextcloud. You can remove every other functionality. But the files app cannot be removed.

                • acockworkorange@mander.xyz
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  8 months ago

                  I disagree. The extras and modularity are the core functionality. If you’re just serving files, there’s SFTP, WebDAV, etc.

        • dust_accelerator@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 months ago

          PostgreSQL is definitely a boost to performance, especially if you offload the DB to a dedicated server (depending on load, can even be a cluster)

          Nevertheless, it probably has much to do with how it’s deployed and how many proxies are in front of it, and/or VPN. If you have large numbers of containers and small CPU/low memory hardware, and either running everything on one machine or have some other limitations, it’ll be slow.

          Admittedly, I’m not very familiar with the codebase, but I feel Apache isn’t improving the speed either. Not exactly sure how PHP is nowadays with concurrency and async, but generally a microservice type architecture is nice because you can add more workers/instances wherever a bottleneck emerges.

    • jr52@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      I tried running nextcloud on an allwinner RiscV chip and it was dead slow lol

    • rambos@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Im running it on celeron g3930 and its great. I did remove most extensions (this was the trick I believe) and using MySQL. I have only 2 users tho

  • MangoPenguin
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    8 months ago

    I assume it’s just not built to be fast, because it’s still slow even with MySQL, Redis, high PHP memory limits, a fast CPU and NVMe storage, and so on.

    Last time I tested it I had a load time of 1-2 seconds just to bring up the files interface, it feels laggy no matter what. And syncing a folder with ~50k files and 40GB or so in size takes a very long time compared to Syncthing or just syncing over SMB.

    • plasticcheese@lemmy.one
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 months ago

      Yep. When I first set up my instance, I couldn’t believe how slow it was. I set up redis using the Nextcloud documentation and its like butter now.

  • sardaukar@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 months ago

    I keep trying it every couple of years to see if it works better, but nah. Even with MySQL/PG + Redis, it’s still slow and clunky. Maybe in 2026

  • Matt The Horwood@lemmy.horwood.cloud
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

    I have been running nextcloud for some time, it was running very quickly. But the v28 update seems to have broke some of the extra apps, like groupfolders.

    That said, it’s very much a system that needs good hardware to run it well

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 months ago

    Nextcloud is fine. Use the All-in-One master container, it’s faster than any other way I’ve installed it. I’ve tried every method from bare metal to docker to NextcloudPi and it’s the fastest and easiest to maintain.

  • BrightCandle@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 months ago

    It has been slowly improving. It used to be a lot worse but I have a lot less issues with it now than I did before all the changes. Its not the fastest best way to do anything, there are better calendar, file sync, email etc etc applications out there in every category that run better but its also quite an easy way to make a lot of things happen.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    6 months ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    Git Popular version control system, primarily for code
    HTTP Hypertext Transfer Protocol, the Web
    NVMe Non-Volatile Memory Express interface for mass storage
    SSD Solid State Drive mass storage
    SSO Single Sign-On
    VPN Virtual Private Network
    nginx Popular HTTP server

    6 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.

    [Thread #580 for this sub, first seen 7th Mar 2024, 12:55] [FAQ] [Full list] [Contact] [Source code]

  • MTK@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    I run the official docker with mariadb and it was never an issue for me