Skip to content

timeout on logidze_compact_history #257

@bf4

Description

@bf4

just added --limit 10 to a model

and now we're getting

ActiveRecord::QueryCanceled PG::QueryCanceled: ERROR:  canceling statement due to statement timeout
CONTEXT:  PL/pgSQL function logidze_compact_history(jsonb,integer) line 29 at assignment
PL/pgSQL function logidze_logger() line 172 at assignment

It's not obvious to me from the code why this could possibly be so slow

It's running in an 'upsert_all' in groups of 50 🤷

Starting an issue to start a discussion

  • logidze 1.3.1
  • Rails 7.0.8.7
  • Ruby 3.3.6p108

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions