Performance of two meteor apps on one database


#1

I’ve created simple todo app from meteor.com website. Let’s call it ‘project A’.
Then duplicated directory with project. Let’s call it ‘project B’.
I’ve started project A normally.
After that I’ve started project B on port 3456 and connect to project’s A database through env variables.

The problem is, when I add todo in project B, changes appears immidietly in project A.
When I add todo in project A, in project B changes appears after few seconds.
Question is: Why?

There are two equally the same projects connected to the same database…


#2

For the project B, you may need to setup the oplog.
See: https://meteorhacks.com/mongodb-oplog-and-meteor


#3

Thank you! Really helpfull :smile: