Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use NoSQL database in WordPress? [closed]

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.

like image 273
armeo Avatar asked Jan 17 '13 03:01

armeo


People also ask

Does WordPress support NoSQL?

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.

When should NoSQL not be used?

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 limitations of NoSQL?

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.


2 Answers

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.

like image 66
Rocklan Avatar answered Nov 03 '22 14:11

Rocklan


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...

like image 38
Shashank Agarwal Avatar answered Nov 03 '22 15:11

Shashank Agarwal