Log namespace function lookups
What does this MR do and why?
Fulfills #478868. We are logging when we use function lookup on the namespaces table.
How to set up and validate locally
- In the Rails console:
Feature.enable(:log_sql_function_namespace_lookups); Feature.enable(:use_sql_functions_for_primary_key_lookups)
- Do a namespace lookup:
Namespace.find_by_id(32)
- Observe the created
sql_function_lookup.log
file in thelog
directory.
Related to #478868
Edited by Sarah Yasonik