A labs feature to add a SQL comment to the beginning of any outgoing query. This is useful for DB Admins who want to see which user ran which specific query.
This is great and something which we almost hacked together our self however it would have impacted caching as the comments were part of the query.
Does this new functionality get around this so that the comments are not involved in the cache hash comparison and the comments are also not saved in the application database so we wont see them in ilooker model/database?
@IanT - That’s correct, the Context Comments feature does not invalidate cache. Cached results are based on the raw SQL, which excludes the comments added through the Context Comments labs feature.
Only the user_id and history_id are included at the moment @jesko . Both can be looked up from within the i__looker and query metadata is retained in Looker’s internal database for 90 days. The history_id is unique for each query and can be used to look up more metadata through the i__looker models. This article has some great insights on how to leverage this model.
Perfect thanks @brecht , yes I’m familiar with i__looker (we use it quite a bit although we’d absolutely love to be able to manually query the underlying data or change the LookML for i__looker so it’s more comprehensive).
Ditto @IanT , i__looker has traditionally answered only around 20-40% of the questions we’ve had that can actually be answered with the underlying data.