Hi there,

I have an existing database, nodes and fields saved on mysql.

I enabled and configured mongodb module on my site and check the database from the terminal, there are values saved.

show collections:

fields_current.node
fields_revision.node
system.indexes

Nodes are getting loaded well through views and everything.. but the question is how to tell if they are really pulled from mongodb or mysql?! Does the module work well with views?

I would appreciate any hints.. thanks

Comments

misc’s picture

If you only install your module, your fields are still stored in mysql. Also, if you could show your fields in Views, when you could be real sure that you are seeing fields from mysql - because Views does not work with MongoDB, Views 'only' makes sql-queries.

fgm’s picture

@MiSc: this just not true. Since Views 3, alternate query handlers exist, meaning Views is no longer strictly limited to SQL, although alternative query engines are (much) more limited feature-wise.

Look at the http://drupal.org/project/efq_views module, for example: it enables you to build queries accessing non-SQL field storage (although it is currently broken by recent Views versions).

misc’s picture

@fgm: I should not recommended to use EFQ Views in any way right now, as it says on the project page "should be considered unusable unless you're a developer intent on fixing it along the way" (If I had the time I really would dig into this, but I have not :-().

But I am really interested if you have examples on using Views with MongoDB, I have not seen examples on that for myself.

fgm’s picture

No idea which amount of work it needs, but there is also a DBTNG driver for MongoDB: http://drupal.org/project/mongodb_dbtng

Apparently good enough for /some of/ core to work ;-)

misc’s picture

@fgm, yeah but still that does not make Views working with MongoDB.

misc’s picture

Closing this one.

misc’s picture

Status: Active » Closed (won't fix)