Skip to content

Log namespace function lookups

Jon Jenkins requested to merge 478868-log-namespace-lookups into master

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

  1. In the Rails console: Feature.enable(:log_sql_function_namespace_lookups); Feature.enable(:use_sql_functions_for_primary_key_lookups)
  2. Do a namespace lookup: Namespace.find_by_id(32)
  3. Observe the created sql_function_lookup.log file in the log directory.

Related to #478868

Edited by Sarah Yasonik

Merge request reports

Loading