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

add --since and --until to "pg export" #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

msieger
Copy link
Contributor

@msieger msieger commented Jun 28, 2015

It is useful to have a postgres mirror, which reflects the current state of a geogig repo. This currently requires to do a complete export of the entire dataset after every change, which takes about 3/4 of a hour for our production datasets.

This pull request contains support for the two Parameters --since and --until. They take a commit references as argument. A diff between the commits is computed and respective inserts and deletes are done on the database(modify is done as delete followed by insert). The speed of the export only depends on the number of changed elements. For small changes the Export is nearly instant.

@dinizime
Copy link

Any progress? I have the same use case.

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

Successfully merging this pull request may close these issues.

2 participants