Database for plugin

What database system should i use for my plugin ? I heard about Redis, but idk if i should go for a SQL database or NoSQL database I'm waiting for your answer !
9 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by lesuisse#0
Discount Milk
Discount Milk2y ago
Depends on your needs. Do you need multiple things to access the same data at once?
LeSuisse
LeSuisseOP2y ago
No, there's gonna be a sort of log database, that count item minned and crafted and other stats of a player Yes I'm selfhosting So... doesnt matter because the host Yes Okay Thx Are you a plugin dev ? Oh thx What sort of plugin's have you modified ? Okay, impressive I'm new to plugin creations so that's sort of big for me lol I see Do u made this for free ? Okay
Nils
Nils2y ago
Don't use Redis, it's wasn't designed to act as a persistent database it's an in memory db just use mysql/postgres Or actually you could also get away with using something like mongo probably better for this usecase if all you need to do is increment a number
LeSuisse
LeSuisseOP2y ago
Uh ? could you explain more, i'm triggerd now
Nils
Nils2y ago
Redis is an in memory key value db designed for raw performance Sure it supports writing to disk But that's not what it's made for You should be using it as a caching layer for example Or maybe storing session data for users
LeSuisse
LeSuisseOP2y ago
Okay, for what kind of use Redis is good (true project / example)
Nils
Nils2y ago
Caching queries for example
LeSuisse
LeSuisseOP2y ago
Ok

Did you find this page helpful?