Comments (5)
Hi @jonaskahn @airh2o, you can try config single rule to load related table metadata. For more details, you can refer this doc - https://shardingsphere.apache.org/document/current/cn/faq/#%E5%8D%95%E8%A1%A8-table-or-view-s-does-not-exist-%E5%BC%82%E5%B8%B8%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3.
from shardingsphere.
so do i
from shardingsphere.
I'll try in next week
from shardingsphere.
"I'm encountering the same issue when trying to implement sharding rules."
sharding version: 5.5.0
springboot version: 3.2.1
from shardingsphere.
Hi @jonaskahn @airh2o, you can try config single rule to load related table metadata. For more details, you can refer this doc - https://shardingsphere.apache.org/document/current/cn/faq/#%E5%8D%95%E8%A1%A8-table-or-view-s-does-not-exist-%E5%BC%82%E5%B8%B8%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3.
I confirmed this page will solve the issue.
If you're using Kotlin or Java, you can take a glance on my configuration:
private fun createRuleConfiguration(): Collection<RuleConfiguration> {
val result: MutableCollection<RuleConfiguration> = LinkedList()
// Add new configuration to load single rule
result.add(createSingleRuleConfiguration())
result.add(createReadwriteSplittingRuleConfiguration())
return result
}
private fun createSingleRuleConfiguration(): SingleRuleConfiguration {
val rule = SingleRuleConfiguration()
rule.tables = listOf("*.*")
return rule
}
Thanks @strongduanmu
from shardingsphere.
Related Issues (20)
- Refactor the acquisition of ContextManager in JDBC metrics
- Can not get 36 connections one time, partition succeed connection(10) have released HOT 2
- java.sql.SQLFeatureNotSupportedException: can't get index from columnLabel[field_2] HOT 2
- EXECUTE ENGINE question
- when i use shardingjdbc 5.3.2 i got a problem, org.hibernate.engine.jdbc.createBlob is not support? HOT 2
- Table or view `t_ent_order` does not exist HOT 5
- sharding table column field lose HOT 2
- Improve pointcut configuration for agent
- ShardingSphere and PostgreSQL rollback only issue
- Got a error: UnknownColumnException: Unknown column. Maybe a bug ? HOT 7
- NPE : Cannot invoke "javax.sql.DataSource.getConnection()" because "this.dataSource" is null when unregister storage unit
- [code conduct] There are a lot of indents in the g4 files that shouldn't be there HOT 4
- Support federated query mysql length function
- Support federated query mysql bit_length function
- Support federated query mysql LOCATE function
- change authority config and restart shardingsphere-proxy, not work HOT 2
- 自带的SnowflakeKeyGenerateAlgorithm id雪花生成器,批量多次调用 第一个一次调用永远是偶数的问题 HOT 1
- Improve the federated query MySQL function HOT 1
- Seems can't support order by after merge from multi tables HOT 2
- ERROR o.s.j.d.DataSourceTransactionManager-Commit exception overridden by rollback exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shardingsphere.