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 a list of past crawl times to feed. #34

Open
supersam654 opened this issue Feb 26, 2016 · 0 comments
Open

Add a list of past crawl times to feed. #34

supersam654 opened this issue Feb 26, 2016 · 0 comments

Comments

@supersam654
Copy link
Contributor

It would be really nice to know when we last crawled feeds.

Requirements:

  • Add an array called crawlTimes to each feed.
  • Whenever we crawl a feed, push the current time into the front of the crawlTimes array for that feed.
  • Remove the last element from the array if there are more than 50 times in the array.

See https://docs.mongodb.org/manual/tutorial/limit-number-of-elements-in-updated-array/ for a way to get Mongo to shrink the array when it gets too big.

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

1 participant