Skip to content

Commit

Permalink
fix: added database name in the warning
Browse files Browse the repository at this point in the history
Issue #1940
  • Loading branch information
lvca committed Feb 2, 2025
1 parent a58ca3d commit 8c1db82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ else if (Boolean.FALSE.equals(ridOrder))
final Integer counter = WARNINGS.compute(typeName + ".scan", (k, v) -> v == null ? 1 : v + 1);
if (counter % WARNINGS_EVERY == 1)
LogManager.instance().log(this, Level.WARNING,
"Attempt to scan type '%s' of total size %s %d times. This operation is very expensive, consider using an index",
typeName, FileUtils.getSizeAsString(typeFileSize), counter);
"Attempt to scan type '%s' in database '%s' of total size %s %d times. This operation is very expensive, consider using an index",
typeName, context.getDatabase().getName(), FileUtils.getSizeAsString(typeFileSize), counter);
}
}

Expand Down

0 comments on commit 8c1db82

Please # to comment.