Skip to content

Conversation

@BuonOmo
Copy link
Collaborator

@BuonOmo BuonOmo commented Jan 10, 2025

Following the lead of rails/rails#47499 we ensure tables are always unlogged, and we dump only necessary parts of the schema. This should gain ~7mn

# Cockroachdb ignores the UNLOGGED specifier.
# https://github.com/cockroachdb/cockroach/issues/56827
def test_unlogged_in_test_environment_when_unlogged_setting_enabled
@original_create_unlogged_tables = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables
Copy link
Contributor

Choose a reason for hiding this comment

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

unfortunately, UNLOGGED does not have any effect in CRDB, but the rest of this change does seem helpful. thanks!

https://www.cockroachlabs.com/docs/stable/create-table#parameters

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok so maybe I'll just remove unlogged related tests and configurations!

@BuonOmo BuonOmo merged commit c02cf48 into master Jan 21, 2025
4 checks passed
@BuonOmo BuonOmo deleted the faster-tests branch January 21, 2025 14:25
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