Difference between revisions of "Database backends"

From Minetest Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
Minetest supports serveral database backends. This page provides a comparison of all three backends.
 
Minetest supports serveral database backends. This page provides a comparison of all three backends.
== Comparison ==
+
= Comparison table =
  
 
{| class="wikitable sortable" style="text-align: left; font-size: smaller"
 
{| class="wikitable sortable" style="text-align: left; font-size: smaller"
Line 34: Line 34:
 
|}
 
|}
  
=== SQLite3 ===
+
== SQLite3 ==
 
SQLite3 is the default backend for all Minetest worlds, it is supported by every Minetest builds and is therefore the standard database format that is used to distribute worlds.  
 
SQLite3 is the default backend for all Minetest worlds, it is supported by every Minetest builds and is therefore the standard database format that is used to distribute worlds.  
=== LevelDB ===
+
== LevelDB ==
 
LevelDB is mostly used on servers because of it's improved reliability and the ability to use more than 4GB space.
 
LevelDB is mostly used on servers because of it's improved reliability and the ability to use more than 4GB space.
=== Redis ===
+
== Redis ==
 
Redis support was added to Minetest in April 2014, redis is mainly useful for servers as it allows multiple worlds to be stored in one redis instance:
 
Redis support was added to Minetest in April 2014, redis is mainly useful for servers as it allows multiple worlds to be stored in one redis instance:
==== world.mt settings for redis ====
+
=== world.mt settings for redis ===
 
<code>redis_address</code> '''--''' The IP or hostname of the redis server.
 
<code>redis_address</code> '''--''' The IP or hostname of the redis server.
 +
 
<code>redis_port</code> '''--''' The port of the redis server. ''Optional, default: 6379''
 
<code>redis_port</code> '''--''' The port of the redis server. ''Optional, default: 6379''
 +
 
<code>redis_hash</code> '''--''' Hash where the MapBlocks are stored in, if you want multiple worlds in one redis instance this needs to be different for each world.
 
<code>redis_hash</code> '''--''' Hash where the MapBlocks are stored in, if you want multiple worlds in one redis instance this needs to be different for each world.

Revision as of 20:36, 16 April 2014

Minetest supports serveral database backends. This page provides a comparison of all three backends.

Comparison table

Backend Speed Reliability Compatibility with builds
SQLite3

Acceptable

Acceptable

Very good (supported by any Minetest version)

LevelDB

Good

Good

Acceptable

Redis

Very good

Good

None (needs redis server)

SQLite3

SQLite3 is the default backend for all Minetest worlds, it is supported by every Minetest builds and is therefore the standard database format that is used to distribute worlds.

LevelDB

LevelDB is mostly used on servers because of it's improved reliability and the ability to use more than 4GB space.

Redis

Redis support was added to Minetest in April 2014, redis is mainly useful for servers as it allows multiple worlds to be stored in one redis instance:

world.mt settings for redis

redis_address -- The IP or hostname of the redis server.

redis_port -- The port of the redis server. Optional, default: 6379

redis_hash -- Hash where the MapBlocks are stored in, if you want multiple worlds in one redis instance this needs to be different for each world.