V
V
vasyan2019-08-04 12:54:08
MongoDB
vasyan, 2019-08-04 12:54:08

How to synchronize two MongoDB databases?

There are two databases with the same data, but different indexes and sharding. One is optimized for processing, the other for reading.
Is there a way to set up automatic database synchronization?
As I understand mongodb 4 does not support master-slave replication. Now I have a script that uses cron to transfer data from one database to another. Is it possible to do this with some standard MongoDB tools or a third-party tool?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Mashletov, 2017-12-06
@Crushing

var one = document.getElementById('one_block');
var two = document.getElementById('two_block');
if (one.offsetHeight != two.offsetHeight ) {
  one.style.height = two.offsetHeight + 'px';
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question