Skip to content

Conversation

@djmb
Copy link
Collaborator

@djmb djmb commented Sep 9, 2024

When a database is specified, we should always manage connections so that we can ensure the cache is writable.

But if you just use the default connection for the rest of the app, we won't attempt to manage that.

Fixes: #214

When a database is specified, we should always manage connections so
that we can ensure the cache is writable.

But if you just use the default connection for the rest of the app, we
won't attempt to manage that.

Fixes: #214
@djmb djmb merged commit f1d3f57 into main Sep 10, 2024
@djmb djmb deleted the manage-connections-for-single-database branch September 10, 2024 08:03
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 4, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 6, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 6, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 6, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 10, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 11, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 12, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
flavorjones added a commit to basecamp/fizzy that referenced this pull request Mar 12, 2025
Because solid cache started using shard swapping when given a
`database:` key in rails/solid_cache#219, and
Rails doesn't distinguish which database is being swapped and which
was locked.

Hopefully I can make a change upstream that will enable swap locking
only for a specific databases. Until then, let's just use a slightly
more verbose configuration to work around it.
monorkin added a commit to basecamp/fizzy that referenced this pull request Nov 14, 2025
flavorjones pushed a commit to basecamp/fizzy that referenced this pull request Nov 17, 2025
jzimdars pushed a commit to basecamp/fizzy that referenced this pull request Nov 17, 2025
kevinmcconnell pushed a commit to basecamp/fizzy that referenced this pull request Nov 18, 2025
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.

Issue with Multi-Shard Databases and Rails Database Selector in Read-Only Mode

2 participants