Channel Apps

navigation

BlogAnleitungen/TutorialsLese-Log
Es gibt gesamt 11 Artikel
Du bist in Kategorie Tutorials
📊 Artikel pro Kategorie: - Android: 1 Artikel - Datenbank: 5 Artikel - Fediverse: 1 Artikel - GrapheneOS: 1 Artikel - Hubzilla: 11 Artikel - Nextcloud: 1 Artikel - Tutorials: 11 Artikel

Da Hubzilla ja alles, auch Bilder, Videos, Dokumente als Blob (Binary Large OBject) in der Datenbank ablegt schwillt die in kurzer Zeit ziemlich an. Meine z.B. hat nach 4 Tagen eine Größe von 1,2Gb. Ich hab 2 Wege gefunden das Problem zu lösen:

Administration - Seite - ganz nach unten scrollen:

Setze den Zeitraum (in Tagen), ab wann importierte (aus dem Netzwerk) Inhalte ablaufen sollen

und

Lass keine Beiträge verfallen die Kommentare haben, die jünger als diese Anzahl von Tagen sind

Dabei werden Instanzfremde Inhalte mit denen deine Instsnz nicht agiert hat nach X Tagen gelöscht. Ich habe beide Werte auf 7 Tage eingestellt.

Translated with DeepL.com (free version)

Since Hubzilla stores everything, including images, videos, and documents, as blobs (Binary Large Objects) in the database, it swells up quite quickly. Mine, for example, has a size of 1.2 GB after 4 days. I have found two ways to solve the problem:

Administration - Page - scroll all the way down:

Set the period (in days) after which imported (from the network) content should expire

and

Do not let posts expire that have comments younger than this number of days

Content from other instances that your instance has not interacted with will be deleted after X days. I have set both values to 7 days.


Screenshoot aus dem Adminmenü

Außerdem kann man mit folgendem Befehl seine Datenbank optimieren:

You can also optimize your database with the following command:

mysqloptimize -A

Der Befehl ist ein praktisches Hilfsmittel, das alle Datenbanken deines MySQL‑Servers durchgeht und für jede Tabelle ein OPTIMIZE TABLE ausführt. Kurz gesagt:

Was passiert dabei?

Fragmentierte Daten‑ und Indexdateien werden neu angeordnet.

Nicht mehr genutzter Speicherplatz wird freigegeben.

Die Zugriffs‑Performance kann sich verbessern, weil die Daten jetzt kompakter liegen.

Warum ist das nützlich?

Wenn du häufig INSERT/UPDATE/DELETE‑Operationen hast, können Tabellen im Laufe der Zeit „ausgelutscht“ werden. Das Optimieren hilft, die Performance wieder zu stabilisieren. Es reduziert die Größe deiner Datenbank‑Dateien, was gerade bei begrenztem Speicher praktisch sein kann.

The command is a handy tool that goes through all the databases on your MySQL server and runs OPTIMIZE TABLE for each table. In short:

What happens?

Fragmented data and index files are reorganized.

Unused storage space is freed up.

Access performance may improve because the data is now more compact.

Why is this useful?

If you frequently perform INSERT/UPDATE/DELETE operations, tables can become “worn out” over time. Optimizing helps to stabilize performance again. It reduces the size of your database files, which can be useful, especially when memory is limited.


#Hubzilla #Datenbank #MySQL