You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make all my models not sharded by default with.
But it results in a weird behavior. on_shard call doesn't establish connection to shard because connection_specification_name calls is_sharded? on ActiveRecord::Base which is false.
The following code results in AR::ConnectionNotEstablished:
I am also facing this annoyance with gems that create AR models that aren't sharded. It would be great to be able to reverse the behaviour. Possibly through a config option?
I am trying to make all my models not sharded by default with.
But it results in a weird behavior.
on_shard
call doesn't establish connection to shard becauseconnection_specification_name
callsis_sharded?
on ActiveRecord::Base which isfalse
.The following code results in
AR::ConnectionNotEstablished
:While the following would work:
The text was updated successfully, but these errors were encountered: