<a href="http://www.mongodb.org/">MongoDB</a> integration for Drupal.

Submodules are:
<ul>
<li>mongodb_cache: Store cache items in mongodb.</li>
<li>mongodb_field_storage: Store the fields in mongodb.</li>
<li>mongodb_session: Store session in mongodb.</li>
<li>mongodb_watchdog: Store the watchdog messages in mongodb</li>
</ul>

Comments

damien tournoud’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

forestmars’s picture

Status: Closed (fixed) » Needs work

Sorry to reopen, but I'm still not seeing it. The project page currently says:

MongoDB integration for Drupal. This module is alpha quality. It provides:

* D7: mongodb_cache: Store cache items in mongodb.
* D7: mongodb_field_storage: Store the fields in mongodb.
* D7: mongodb_session: Store sessions in mongodb.
* D6/D7: mongodb_watchdog: Store the watchdog messages in mongodb
* D6/D7: mongodb: support library for the other modules
* D7: mongodb_block: Store block information in mongodb. Very close to the core block API.
* D7: mongodb_queue: DrupalQueueInterface implementation using mongodb.

Perhaps a note indicating the current beta only contains the session submodule? Sorry to be nitpickety...

dawehner’s picture

This module is for drupal7. The drupal6 backport has limited features.

Perhaps you could write a text for it.

forestmars’s picture

I could definitely write that text; what I meant though was that the drupal7 beta only has the session sub-module in it. So the description should probably read, instead:

MongoDB integration for Drupal. The dev version of this module is alpha quality. It provides:

* D7: mongodb_cache: Store cache items in mongodb.
* D7: mongodb_field_storage: Store the fields in mongodb.
* D7: mongodb_session: Store sessions in mongodb.
* D6/D7: mongodb_watchdog: Store the watchdog messages in mongodb
* D6/D7: mongodb: support library for the other modules
* D7: mongodb_block: Store block information in mongodb. Very close to the core block API.
* D7: mongodb_queue: DrupalQueueInterface implementation using mongodb.

Only the sessions submodule is included in the beta release.

As I said, nitpickety, but I did mean 7, not 6.

Howev. I would like to see a bit more information about 6- I understand mikeryan's patches were for node_save in 6, so that suggests that other submodules not yet in the 7 beta may be nearly ready for production in 6…?

jason ruyle’s picture

It would be helpful to have an actual "default" example.

/**
 * Mongodb Configuration:
 */
/*
$conf['mongodb_connections'] = array(
  //'logginghost' => array('host' => 'log.local', 'db' => 'drupalogs'),
  'watchdog' => 'logginghost',
);
*/
//$conf['page_cache_without_database'] = TRUE;
//$conf['session_inc'] = 'sites/all/modules/contrib/mongodb/mongodb_session/mongodb_session.inc';
//$conf['field_storage_default'] = 'mongodb_field_storage';

This code is wrong btw. But hoping someone can provide a better example.

jspapas’s picture

Issue tags: +mongodb

Hi Jason, did you manage to find any information regarding how to use this module? I've installed it but there is no documentation and nothing shows up in the admin pages.

How can I make my sessions be stored in MongoDB???

Ben Howes’s picture

I dunno if this will be any use to anyone, but I bothered to look at how it works and did the following:

  1. run pecl install mongo to get mongo installed. This might vary on your system, but should be good for most linux distros I think.
  2. Enable at least the mongo session module.
  3. Put the following at the end of settings.php:
    <?php
    
    $conf['mongodb_connections'] = array(
      'session' => array(
        'host' => 'mongodb://user:pass@host', //set to your host and omit the user:pass if you dont have authentication
        'db' => 'drupal_sessions'
       ),
      'default' => array(
        'host' => 'mongodb://user:pass@host',  //set to your host and omit the user:pass if you dont have authentication
        'db' => 'drupal_default'
       ),
    );
    $conf['mongodb_collections'] = array(
      'session' =>  'session'
    );
    
    # session inc
    $conf['session_inc'] = 'sites/all/modules/mongodb/mongodb_session/mongodb_session.inc
    
    ?>
    

This should put sessions in one db and everything else in a separate DB, which suits my application, but if you want it all in the same db you can remove the $conf['mongo_collections'] section.

This seems to work fine for me!

Ben

verta’s picture

Just a comment, I'd appreciate seeing some text in the main module page/documentation that explains what this module is and does from the perspective of someone who knows how to install a module but does not know when or why this module should be used.

I just got here, I read what is online now, and I still have no idea.

Sometimes you have to start at the beginning ...

chx’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -mongodb

Automatically closed -- issue fixed for 2 weeks with no activity.