I create a logical table named message, and use two underlying sharding tables: message_01 and message_02.
When using go-gorm/sharding plugin alone, everything works well, as in test case TestSharding.
However, after I added Clauses(hints.ForceIndex("idx_content")) in the query, the sharding plugin would fail, as in test case TestShardingAndForceIndex.
Explain your user case and expected results
I create a logical table named
message
, and use two underlying sharding tables:message_01
andmessage_02
. When usinggo-gorm/sharding
plugin alone, everything works well, as in test caseTestSharding
. However, after I addedClauses(hints.ForceIndex("idx_content"))
in the query, the sharding plugin would fail, as in test caseTestShardingAndForceIndex
.