Skip to content

Default behavior of slow queries in stdout #6651

@havarddj

Description

@havarddj

Currently, it seems to me like slow queries are printed to stdout as well as slow_queries.log by default.

Question 1: Is this intended behavior, and if so, is there an easy way to turn it off? One cheap solution is to set slowcutoff = 1000 in config.ini, but that also affects what's put in the log file, which is sometimes undesirable.

The reason I'm asking is that I'm usually not interested in hundreds of lines of:

2025-08-22 15:08:46,742 - SELECT "Ciso", "Clabel", "Cnumber", "abc_quality", "absD", "adelic_genus", "adelic_index", "adelic_level", "ainvs", "analytic_rank", "bad_primes", "class_deg", "class_size", "cm", "conductor", "degree", "elladic_images", "faltings_height", "faltings_index", "faltings_ratio", "iso_nlabel", "isogeny_degrees", "jinv", "lmfdb_iso", "lmfdb_label", "lmfdb_number", "manin_constant", "min_quad_twist_ainvs", "min_quad_twist_disc", "modell_images", "modm_images", "nonmax_primes", "nonmax_rad", "num_bad_primes", "num_int_pts", "optimality", "potential_good_reduction", "rank", "regulator", "semistable", "serre_invariants", "sha", "sha_primes", "signD", "stable_faltings_height", "szpiro_ratio", "torsion", "torsion_primes", "torsion_structure" FROM "ec_curvedata" WHERE "lmfdb_label" = '11.a3' LIMIT 1 ran in  2.2378082275390625s 

whenever I run a request, and if I was, I would presumably find it appearing in slow_queries.log.

Question 2: Would it make sense to change the default behavior (to default: off?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions