Skip to content

Commit

Permalink
Reduce aggregate user full refresh frequency (#2061)
Browse files Browse the repository at this point in the history
* Reduce aggregate user full refreshes

* fix comment typo
  • Loading branch information
isaacsolo committed Nov 11, 2021
1 parent b848ab3 commit 1f78007
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion discovery-provider/src/tasks/index_aggregate_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
# Names of the aggregate tables to update
AGGREGATE_USER = "aggregate_user"
DEFAULT_UPDATE_TIMEOUT = 60 * 30 # 30 minutes
REFRESH_COUNTER = 100

# every ~1000 updates, refresh the entire table
# at 30 secs interval, this should happen ~twice a day
REFRESH_COUNTER = 1000

### UPDATE_AGGREGATE_USER_QUERY ###
# Get a lower bound blocknumber to check for new entity counts for a user
Expand Down

0 comments on commit 1f78007

Please sign in to comment.