We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886370c commit 3ecf69aCopy full SHA for 3ecf69a
dbutils.py
@@ -147,6 +147,10 @@ def migration_step_2():
147
IPV4_SRC_ADDR TEXT
148
);
149
""")
150
+ c.execute(f'CREATE INDEX netflow_flows_record on netflow_flows (record);')
151
152
c.execute(f'CREATE TABLE {DB_PREFIX}bot_jobs (job_id TEXT NOT NULL PRIMARY KEY, last_used_seq BIGSERIAL);')
153
154
+ # slow db queries should be logged to help avoid performance problems:
155
+ database_name = os.environ.get('DB_DATABASE', 'grafolean')
156
+ c.execute(f'ALTER DATABASE %s SET log_min_duration_statement = 100;', (database_name,))
0 commit comments