Good Practices - Flaarum Tutorials
-
For a write-heavy database like a mailbox; do not have a single table.
Splitting into many tables would improve the speed of the insertion.
This is due to mutexes (avoid race conditions in multithreaded environment) and
creation of indexes (indexes speed up searches).
-
Do your data validation on the front end (web app or GUI). This is because databases do not autoscale
and is a generally faster approach.
-
Put a limit of the number of rows on every search. This would reduce your RAM usage.
-
Backup your database as CSV or JSON files for safety sake.
-
To import into your flaarum installation use flaarum.prod. It results to alot of speed gain.
-
After long use of flaarum, it would need some cleanup of unnecessary data.
Use flaarum.prod trim