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

Explore using FieldValue to count total URLs more efficiently. #24

Open
robdodson opened this issue Sep 1, 2019 · 0 comments
Open

Explore using FieldValue to count total URLs more efficiently. #24

robdodson opened this issue Sep 1, 2019 · 0 comments

Comments

@robdodson
Copy link
Contributor

To count the number of URLs in the system, lighthouse-keeper does a cron which queries the db in 5000 record chunks. It seems like a more efficient approach might be to use the FieldValue API to increment a counter whenever a record gets added, and to decrement the counter when old records get removed.

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