I had some time to try out more stuff. Just for reference, this is my config file for MariaDB 10.3:
Code:
[mysqld]
datadir=C:/Program Files/MariaDB 10.3/data
port=3306
# general stuff
# skip_name_resolve=1
optimizer_search_depth=0
character_set_server=utf8
key_buffer_size=16k
host_cache_size=16
# InnoDb optimizations
innodb_buffer_pool_chunk_size=1G
# innodb_buffer_pool_size=4G
innodb_buffer_pool_instances=4
innodb_adaptive_hash_index=OFF
innodb_doublewrite=0
innodb_buffer_pool_dump_at_shutdown=ON
innodb_buffer_pool_load_at_startup=ON
innodb_compression_default=ON
innodb_compression_algorithm=zlib
# innodb_use_trim=ON
# innodb_use_fallocate=ON
innodb_page_cleaners=1
[client]
port=3306
plugin-dir=C:/Program Files/MariaDB 10.3/lib/plugin
The lines starting with # are either deprecated or don't work (yet). Your mileage may vary. Explanations for new stuff:
Code:
# skip_name_resolve=1
My mail server complained that some stuff could not be resolved so I switched off this line and activated name resolving again. I was quite surprised to find that everything, including KODI, seemed to run faster after as a result. The original hints for setting up the KODI with SQL still apply though, insofar that you should use IP addresses instead of names in advancedsettings.
Code:
innodb_compression_default=ON
innodb_compression_algorithm=zlib
innodb_page_cleaners=1
MariaDB supports compression in INNODB tables as of 10.1. This can potentially reduce wear and tear of your SSDs. However, keep in mind that compression and decompression is done by the CPU so if you use a weak machine like a NAS or an old NUC you should probably stay away from this if you're after the ultimate millisecond in performance.
There is a vast range of compression algorithms available but not on all platforms. ZLIB is the one that is pre-installed on all platforms. For more details on compression, consult the
MariaDB reference. If you want to use ZLIB compression you need to access the database with a tool like HeidiSQL (comes with MariaDB) and set each table from ROW FORMAT: DEFAULT to ROW FORMAT: COMPRESSED like so:
This will reduce the database size by 50%!