Sign in to follow this  
olegZmemer

is mongodb good for main database?

Recommended Posts

Personally, I'm running MongoDB & Mongoose for my server's data. I've used it for web projects in the past, and it tends to be the first thing I reach for to manage persistent data. I don't think it's a bad choice for your server's data.

MongoDB could be considered overkill for a project at the scale of a RageMP gamemode, since some of its features are mainly targeted for scaling a large app, but I dont think there's any harm in using it. If you haven't used it before and aren't familiar with it, but do have experience with SQL databases, then something like PostgreSQL with Sequelize might be a better choice in terms of getting things done faster. If you want to learn MongoDB just to build that knowledge for use in other areas outside of RageMP, then I think a RageMP server is as good a place as any to learn about it.

  • Like 2

Share this post


Link to post
Share on other sites
Posted (edited)

I think that using MongoDB as 'main server database' is some risky. MongoDB has too bad performance while using it in full-persistance mode (by design). So, maybe better to use it like second db.

Of course, it's your decision to use or not to use some technologies in your project. Previous comments are right. But if you want to get strict answer, uses MongoDB as _main_ database it's bad idea. PostgreSQL or MySQL will be better. In addition, if you want to persists your JSONs, PostgreSQL provides some features to work with it (json's indexes).

Edited by SevDan
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.