Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 15331
Next
In Process

askthedev.com Latest Questions

Asked: September 27, 20242024-09-27T05:59:40+05:30 2024-09-27T05:59:40+05:30In: SQL

what database should i use mongodb or postgresql or mysql

anonymous user

I’m currently working on a web application project and I’m at a crossroads when it comes to choosing a database. I’ve done some research and I keep hearing about MongoDB, PostgreSQL, and MySQL, but I’m struggling to determine which one would be the best fit for my needs. My application will require a flexible schema since I expect to iterate and adapt the data model as the project evolves. I’ve heard MongoDB is great for this, as it’s document-based, but I’m concerned about how it handles complex queries or transactions.

On the other hand, PostgreSQL seems to be highly regarded for its advanced features like support for JSON data and powerful querying capabilities. I also read that it’s particularly good for complex analytical queries, which might come in handy. Then there’s MySQL, which I’ve used in the past and know it’s pretty reliable and easy to set up, but I wonder if it’s the right choice for scalability and flexibility.

Ultimately, I need a database that can handle a potentially high volume of data while also allowing me to evolve the schema without a lot of headaches. What do you all think? Which database should I choose and why?

MySQLPostgreSQL
  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-27T05:59:41+05:30Added an answer on September 27, 2024 at 5:59 am

      Choosing a Database: MongoDB vs PostgreSQL vs MySQL

      Okay, so you’re trying to pick a database and feeling a bit lost? No worries, I’ve been there!

      MongoDB

      So, MongoDB is like that flexible friend you have. It’s a NoSQL database, which means it stores data in a more relaxed format (like JSON), so you don’t have to worry too much about structure. If your data changes a lot and you need to scale quickly, it might be a good pick!

      PostgreSQL

      Now, PostgreSQL is like a super smart friend who’s really organized. It’s an SQL database and supports a lot of complex features like relationships and advanced queries. If you need your data to be super reliable and structured, this is a solid choice!

      MySQL

      MySQL is the classic one, kind of like the dependable buddy you can always count on. It’s super popular, has a lot of resources and tutorials, and is great for web applications. It’s pretty straightforward but might feel a bit limiting if you’re into complex data structures.

      Final Thoughts

      Honestly, it mostly depends on what you’re planning to build. If you want something quick and flexible, go with MongoDB. If you’re after something more structured and powerful, check out PostgreSQL. And if you want something tried and true, MySQL’s not a bad idea either!

      Just start with one and see how it goes! You’ll learn a ton along the way.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-27T05:59:41+05:30Added an answer on September 27, 2024 at 5:59 am


      When choosing between MongoDB, PostgreSQL, and MySQL, it’s essential to consider the specific use case and requirements of your application. MongoDB is a NoSQL database that excels in scenarios involving unstructured or semi-structured data and where you anticipate significant schema changes. Its flexible document-based model allows for rapid iterations and scalability, making it a preferred choice for applications that require high performance and dealing with large volumes of data, like real-time analytics or content management systems. However, if your application logic heavily relies on complex queries, transactions, or adherence to ACID properties, MongoDB may not be the best fit compared to the relational databases.

      On the other hand, PostgreSQL and MySQL are both mature relational databases, with PostgreSQL offering more advanced features such as support for complex queries, custom functions, and diverse data types, including GIS capabilities. If your application requires structured data, strong consistency, and robust transaction support, PostgreSQL is often recommended. MySQL, while slightly less feature-rich than PostgreSQL, remains one of the most popular choices and is particularly well-suited for read-heavy applications and when you need to integrate with various web frameworks. Ultimately, your decision should hinge on whether your application prioritizes flexibility (MongoDB) or structured data handling and complex queries (PostgreSQL/MySQL).

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble connecting my Node.js application to a PostgreSQL database. I've followed the standard setup procedures, but I keep encountering connection issues. Can anyone provide guidance on how to ...
    • How can I implement a CRUD application using Java and MySQL? I'm looking for guidance on how to set up the necessary components and any best practices to follow during ...
    • I'm having trouble connecting to PostgreSQL 17 on my Ubuntu 24.04 system when trying to access it via localhost. What steps can I take to troubleshoot this issue and establish ...
    • how much it costs to host mysql in aws
    • How can I identify the current mode in which a PostgreSQL database is operating?

    Sidebar

    Related Questions

    • I'm having trouble connecting my Node.js application to a PostgreSQL database. I've followed the standard setup procedures, but I keep encountering connection issues. Can anyone ...

    • How can I implement a CRUD application using Java and MySQL? I'm looking for guidance on how to set up the necessary components and any ...

    • I'm having trouble connecting to PostgreSQL 17 on my Ubuntu 24.04 system when trying to access it via localhost. What steps can I take to ...

    • how much it costs to host mysql in aws

    • How can I identify the current mode in which a PostgreSQL database is operating?

    • How can I return the output of a PostgreSQL function as an input parameter for a stored procedure in SQL?

    • What are the steps to choose a specific MySQL database when using the command line interface?

    • What is the simplest method to retrieve a count value from a MySQL database using a Bash script?

    • What should I do if Fail2ban is failing to connect to MySQL during the reboot process, affecting both shutdown and startup?

    • How can I specify the default version of PostgreSQL to use on my system?

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.