EctoSparkles.Log (ecto_sparkles v0.2.1) View Source

Log Ecto queries, and output warnings for slow or possible n+1 queries

To set up, simply add EctoSparkles.Log.setup(YourApp.Repo) in your app's main Application.start/2 module.

Link to this section Summary

Link to this section Functions

Link to this function

check_if_n_plus_1(query)

View Source
Link to this function

format_log(result_key, duration_in_ms, measurements, metadata)

View Source
Link to this function

handle_event(_, measurements, metadata, config)

View Source
Link to this function

inline_params(query, params, repo_adapter \\ Ecto.Adapters.SQL)

View Source
Link to this function

log_query(result_key, duration_in_ms, measurements, metadata)

View Source