I am trying to use a NoSQL database instead of a relational database such as MySQL in WordPress, but I am not sure if it is possible or not.
Any suggestion is very welcome.
Primarily, WordPress provides support for MySQL databases, and since MongoDB is a NoSQL database, it can not be directly integrated. However, there are a few methods that allow users to set up WordPress MongoDB Integration.
You should also avoid NoSQL if your application needs run-time flexibility. If consistency is a must and if there aren't going to be any large-scale changes in terms of the data volume, then going with the SQL database is a better option.
What are the drawbacks of NoSQL databases? One of the most frequently cited drawbacks of NoSQL databases is that they don't support ACID (atomicity, consistency, isolation, durability) transactions across multiple documents. With appropriate schema design, single-record atomicity is acceptable for lots of applications.
Wordpress only supports MySQL, so no, you cannot use a NoSQL DB. See https://codex.wordpress.org/Using_Alternative_Databases
Currently, the official WordPress distribution only supports the MySQL database engine. A number of people have requested support for other database engines, particularly the open-source PostgreSQL
... Current codebase is very MySQL-centric. While WordPress does use the ezSQL class to implement database calls, this cannot properly be called an abstraction layer.
Somebody working on this already here.
Mongopress looks interesting.. Also found some wordpress devs also working on this... right now waiting for some of them to come up with a solution...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With