1var mongoose = require('mongoose')
2var conn = mongoose.createConnection('mongodb://localhost/db1');
3var conn2 = mongoose.createConnection('mongodb://localhost/db2');
4var Schema = new mongoose.Schema({})
5var model1 = conn.model('User', Schema);
6var model2 = conn2.model('Item', Schema);
7model1.find({}, function() {
8 console.log("this will print out last");
9});
10model2.find({}, function() {
11 console.log("this will print out first");
12});