Skip to content

sqlcommenter: put the comment at the beginning of the query #3583

Open
@jakub-mikians-airspace-intelligence

Description

Hi!

sqlcommenter appends the comment to the end of the query. I would propose prepending the comment at the beginning of the query instead.

The comment at the end is problematic when the query is really long, and the comment is truncated from database query logs. The very long queries are often produced by Django, and the query logs (e.g. top slow queries) have limited length in AWS RDS.

What do you think?

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