Skip to content

Commit 57033c8

Browse files
committed
Shorter partition time span (10 minutes)
1 parent a353e0e commit 57033c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
db_pool = None
2424
DB_PREFIX = 'netflow_'
25-
S_PER_PARTITION = 3600
26-
LEAVE_N_PAST_PARTITIONS = 24 * 5 # 5 days
25+
S_PER_PARTITION = 600
26+
LEAVE_N_PAST_PARTITIONS = 6 * 24 * 5 # 5 days
2727

2828

2929
# https://medium.com/@thegavrikstory/manage-raw-database-connection-pool-in-flask-b11e50cbad3

0 commit comments

Comments
 (0)