
#DOWNLOAD MONGODB JAVA DRIVER 2.10.1 INSTALL#
When you are on Debian Linux you can simply run:Īpt -get install mongodbThis will automatically install and setup your database. The tutorial on Spigot can be found here: It is completely optional, but it makes the process of creating new collections from Java Objects a very streamline process. Morphia ( top)Besides just what is covered in this tutorial, there is another way to save and access data from MongoDB, and that is with an API called Morphia. You can still search for other values in the JSON object, but the search will not be as fast as a search for an index. This way, the DB only keeps these values (the UUID) in memory and searches only them before loading the rest of the objects. For faster searching you can define a field that can be found in every JSON object, for example the player UUID. The JSON objects can contain whatever fields they want, they don't have to have one field in common. Every collection is simply a list of little JSON objects. But these tables have no defined columns. In these databases there are things like tables, called collections. Like in SQL, you have databases in MongoDB. This article especially targets MongoDB, the database used by many Minecraft networks. Instead many use either a Document style format (see MongoDB, etc.) or a key->value structure (see Aerospike, Redis, etc) NoSQL Databases don't follow a table-like structure of the SQL databases.
#DOWNLOAD MONGODB JAVA DRIVER 2.10.1 DRIVER#
Using the MongoDB driver in your server.
