The English and Chinese is not same question, and the title is not same
topic.
Cloud you sent a new email with correct english title? It is good to be
searched.

------------------

Liang Zhang (John)
Apache ShardingSphere & Dubbo


772826099 <[email protected]> 于2019年3月15日周五 上午9:28写道:

> I mean, separation, master-slave, speaking, reading and writing table
> depots, under the condition of the route query can be routed to the
> specific one from the table, now see your source code, is the only
> mandatory routing master database, to be honest is from library data
> consistent in all cases, how to manually assigned to specific from table
> rather than to change the configuration file and restart, are looking
> forward to your reply
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "[email protected]"<[email protected]>;
> 发送时间: 2019年3月14日(星期四) 晚上10:54
> 收件人: "dev"<[email protected]>;
>
> 主题: Re: 动弹建表问题
>
>
>
> For English only
>
> ------------------
>
> Liang Zhang (John)
> Apache ShardingSphere & Dubbo
>
>
> [email protected] <[email protected]> 于2019年3月14日周四 下午7:03写道:
>
> > 见信好:
> >     我通过配置项后,使用JPA方式连接数据库情况下,可以实现按照分片规则插入对应的表中,配置如下:
> >
> > server.port=8080
> > spring.jpa.hibernate.ddl-auto=update
> > spring.jpa.show-sql=true
> > spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
> >
> > sharding.jdbc.datasource.names=serverdb
> >
> >
> sharding.jdbc.datasource.serverdb.type=com.alibaba.druid.pool.DruidDataSource
> > sharding.jdbc.datasource.serverdb.driver-class-name=com.mysql.jdbc.Driver
> >
> >
> sharding.jdbc.datasource.serverdb.url=jdbc:mysql://localhost:3306/xxx?characterEncoding=utf8&useSSL=false
> > sharding.jdbc.datasource.serverdb.username=xxx
> > sharding.jdbc.datasource.serverdb.password=xxx
> >
> > sharding.jdbc.config.sharding.tables.config.dynamic=true
> > sharding.jdbc.config.sharding.tables.visit_api_log.config.dynamic=true
> >
> >
> sharding.jdbc.config.sharding.tables.visit_api_log.table-strategy.standard.sharding-column=date
> >
> >
> sharding.jdbc.config.sharding.tables.visit_api_log.table-strategy.standard.precise-algorithm-class-name=com.cong.testShardingSphere.algorithm.PreciseModuloShardingTableAlgorithm
> >
> >
> >
> PreciseModuloShardingTableAlgorithm类中会根据插入时间,数据插入时,进入对应的"visit_api_log_201901、visit_api_log_201902、visit_api_log_201903。。。”
> >
> >
> 但是现在有个问题,当我进行查询的时,因为对应的表“visit_api_log”目前为动态分表情况,查询数据时应该按照"visit_api_log_201901、visit_api_log_201902、visit_api_log_201903。。。”进行查询并统计结果返回。
> >     但是目前查询时不再查询根据动态生成的表名,仅查询visit_api_log原表数据。
> >     是有别的配置项需要配置,还是暂时不支持查询所有动态插入的表单库?这个问题请教下您,谢谢您的关注
> >
> >
> >
> >
> >
> >
> >
> >

Reply via email to