Skip to content

Commit

Permalink
Auto merge of #3611 - jtgeibel:filter-db-dump-to-90-days-of-downloads…
Browse files Browse the repository at this point in the history
…, r=pietroalbini

Include only the last 90 days of downloads in our database dumps

In #3479 we plan to drop old entries and archive them in some other way, so old entries will eventually disappear from dumps anyway. This should make use of the database dumps much more practical for daily use. I think it would be reasonable to even limit this to the past week of data.

r? `@pietroalbini`
cc `@kornelski,` #2078
  • Loading branch information
bors committed May 14, 2021
2 parents e421caa + c38a5f5 commit 99ef346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tasks/dump_db/dump-db.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ gh_access_token = "''"

[version_downloads]
dependencies = ["versions"]
filter = "date > current_date - interval '90 day'"
[version_downloads.columns]
version_id = "public"
downloads = "public"
Expand Down

0 comments on commit 99ef346

Please sign in to comment.