Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge two databases? #62

Open
wmayner opened this issue Jan 4, 2016 · 2 comments
Open

Merge two databases? #62

wmayner opened this issue Jan 4, 2016 · 2 comments

Comments

@wmayner
Copy link

wmayner commented Jan 4, 2016

Suppose I've created two different filesystem-backed databases. Is there a preferred, sanctioned way of merging them into one?

Thanks for this, it fills a useful niche!

@adewes
Copy link
Owner

adewes commented Jan 4, 2016

Actually there isn't right now, if your two databases are not extremely large the simplest way would be to simultaneously open them and copy the documents from one to the other.

Alternatively, you could possibly also copy the document files and rebuild the indexes for each collection using rebuild_indexes, although I don't have any reliable test data on this so if you go down this route make sure to make a backup copy of your data first.

@wmayner
Copy link
Author

wmayner commented Jan 5, 2016

Ok, that's what I figured, but I'll look into rebuild_indexes. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants