Memoize Gitlab::Database.version
What does this MR do?
This memoizes the result of Gitlab::Database.version
, removing the need for querying the database every time we want to check the version.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Conform by the code review guidelines
-
Has been reviewed by a Backend maintainer -
Has been reviewed by a Database specialist
-
-
Conform by the merge request performance guides -
Conform by the style guides -
End-to-end tests pass ( package-and-qa
manual pipeline job)