Closed (won't fix)
Project:
MongoDB
Version:
7.x-1.x-dev
Component:
Field storage
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2012 at 19:48 UTC
Updated:
21 Apr 2012 at 14:34 UTC
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
Comment #1
misc commentedIf 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.
Comment #2
fgm@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).
Comment #3
misc commented@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.
Comment #4
fgmNo 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 ;-)
Comment #5
misc commented@fgm, yeah but still that does not make Views working with MongoDB.
Comment #6
misc commentedClosing this one.
Comment #7
misc commented