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
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
Depends on your needs.
Do you need multiple things to access the same data at once?
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
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
Uh ? could you explain more, i'm triggerd now
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
Okay, for what kind of use Redis is good (true project / example)
Caching queries for example
Ok