Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Created December 16, 2009 04:42
Show Gist options
  • Save bradfordw/257599 to your computer and use it in GitHub Desktop.
Save bradfordw/257599 to your computer and use it in GitHub Desktop.
Getting a non replicated mongo instance's operation log for indexing:
db.oplog.$main.find({ ts: { t: {gte: last_processed_time } } }).sort({$natural:1});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment