Skip to content

Conversation

deployor
Copy link
Contributor

@deployor deployor commented Aug 8, 2025

#460 This time, the connection is cleared after every batch, which should resolve the issue that @3kh0 had.

ActiveRecord::Base.clear_active_connections! <---

Streaming should resolve performance issues.

@deployor deployor changed the title perf(heartbeats): stream heartbeat export data perf(export): stream heartbeat export data Aug 8, 2025
type: "application/json",
disposition: "attachment"
}
ActiveRecord::Base.clear_active_connections!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure you mean to do this?

Copy link
Contributor Author

@deployor deployor Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea? Thats the exact one change i made from before, Its not global no? It clears the connections from the where clause that are idle-

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if im wrong?

@deployor deployor marked this pull request as draft August 15, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants