Do not query the history database by default

This commit is contained in:
Patrick Pacher
2023-08-01 14:08:15 +02:00
parent 6719449770
commit 9f9838b8a1
3 changed files with 4 additions and 7 deletions

View File

@@ -189,8 +189,9 @@ func (req *QueryRequestPayload) generateSQL(ctx context.Context, schema *orm.Tab
whereClause = "WHERE " + whereClause
}
// if no database is specified we default to LiveDatabase only.
if len(req.Databases) == 0 {
req.Databases = []DatabaseName{LiveDatabase, HistoryDatabase}
req.Databases = []DatabaseName{LiveDatabase}
}
sources := make([]string, len(req.Databases))