zcourts
zcourts

Reputation: 5043

SQL parser for Wordpress NoSQL Fork

Call me crazy but I'm planning to Fork wordpress. I'm planning to swap out MySQL for Apache Cassandra. Call it ambitious but I'm planning to devote a chunk of time over the next few months.

In any case my question is: I'm trying to aim to keep plugins working... In essence any plugin that doesn't require their own table should be able to work. Thats the plan, can anyone suggest an approach to handling queries, effectively allowing me to parse queries from plugins.

Only plugins though, the plan is to have all wordpress core core queries removed for Cassandra api calls...

Upvotes: 3

Views: 1669

Answers (3)

Virtimus
Virtimus

Reputation: 21

Seems that after few days of coding I've just got something which could be roughly "proof of concept" for migrating Wordpress from MySQL to NoSQL (say Mongo). I think the same approach could be used also more in general (SQL to NoSQL translator).

The idea is to prepare additional declarative "tables to collections" mappings. Then use those mappings to process MySQL/SQL inserts into NoSQL/Mongo updates. Going further - the same mappings can be then used to translate also deletes and selects (joins also can be handled using some helper cache stored in nosql as a document).

The effect should be Wordpress going on SQL with no significant change (apart from adding some small SQL translator layer). Performance overhead could be minimized by creating additional SQL cache that will simplify SQL parsing.

Something similiar found here:

http://databasesincloud.wordpress.com/2011/05/25/talking-sql-to-nosql-data-stores-part-2/

Anyone interested ?

Upvotes: 0

Gareth Davies
Gareth Davies

Reputation: 453

Just to add to this as I randomly found this topic, there is this project:

http://www.mongopress.org/

I'm also very interested in this area as my problems with scaling WordPress ALWAYS come from MySQL.

Upvotes: 0

Gubatron
Gubatron

Reputation: 6479

how far along are you at with this effort? I'm thinking of doing the same thing, so I'm willing to help.

Def. not an experiment for us. My team needs to run wordpress on lots of computers and we really don't care about broken plugins, those can be fixed to implement a DB interface when it comes to creating their entities, the gains of being able to scale horizontally without dealing with mysql and configuration issues are enormous, no single poitn of failure, faster response times, and you have a platform on which you can think of more interesting services on top of wordpress.

I find it crazy that the automattic doesn't really show much interest about DB independence, maybe they have a deal with mysql that prevents them from this, but oh well, they're GPL nazis, if they're not with us, then we can fork them, I'm sure all the major plugins will be re-implemented aswell to be supported on noSQL dbs. http://wordpress.org/support/topic/suggestion-support-mongodb-hypertable-or-other-nosql-storage

Upvotes: 1

Related Questions